I am using oct2py to call a octave function in my python code. The file is saved as .py file in the htdocs folder.
#!/usr/bin/python
import cgi
import oct2py
from oct2py import octave
print('Content-type:text/html\r\n\r\n')
print('<!DOCTYPE html>')
firnum='23'
secnum='33'
octave.addpath('/Applications/XAMPP/xamppfiles/htdocs/mypython/Octavemfiles/')
firnum=int(firnum)
secnum=int(secnum)
answer=octave.mymultfunct(firnum,secnum)
print(answer)
The code works well when executing from the terminal and gives the answer. But when I call it through the web, the oct2py gives an error stating
OSError: Octave Executable not found, please add to path or set"OCTAVE_EXECUTABLE" environment.
Please suggest a way out so I can call the function from octave. The octave function is just multiplying the numbers.