I am trying to run a python script from a node.js- cloud functions index file. in order to access python script, I am also using "python-shell" ... the problem is every time I run deploy my functions of the index.js file, it prints this error:
Error: python: can't open file '../Python36/fListener.py': [Errno 2]
No such file or directory
at PythonShell.parseError (/user_code/node_modules/python-
shell/index.js:190:17)
at terminateIfNeeded (/user_code/node_modules/python-shell/index.js:98:28)
at Socket.<anonymous> (/user_code/node_modules/python-shell/index.js:78:9)
at emitNone (events.js:91:20)
at Socket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
also, I tried to create python project in the node.js 'functions' folder but it's pointing me on different 'import' errors on libraries which I am trying to use on python's script.something like this:
File "py_project/fListener.py", line 1, in <module>
import sseclient
what is the correct way to execute python script via node.js cloud functions??
thanks.