python-shell icon indicating copy to clipboard operation
python-shell copied to clipboard

Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio

Results 77 python-shell issues
Sort by recently updated
recently updated
newest added

Is there a way to load the script that is stored inside an asar file? I am working with electron and I need to package everything into asar file (more...

question

Hi! we are launching several python processes using the python-shell module and we have been noticing that in some cases the processes do not finish properly (the expected output is...

question

I'm calling a python script that outputs JSON if everything goes right, but outputs an error message otherwise. When using `{mode: 'json'}`, a JSON parsing error is thrown instead of...

How to pass data when it request to input data and after that the script work, What i do, i m using telethon in node. is it possible to use??

question

Hello, I can't kill a script initiated via Node-Red function node in the following flow: `[{"id":"10ab142a.8ba58c","type":"function","z":"14e30967.8aa527","name":"wave.py","func":"var PythonShell = context.global.PythonShell;\nvar python = new PythonShell('wave.py');\n\nvar options = {\n mode: 'text',\n pythonPath: '/usr/bin/python',\n...

question

in order to run `python -m mymodule` using python shell I had to bend the expectations on how it is used. ``` python var shellOptions = { scriptPath: 'press', cwd:...

enhancement

It says that the version is a empty string. No idea why - passes locally. I should try using a different computer and seeing if it passes there. The other...

bug
help wanted

Many programs utilize carriage return in the output updates to the console without pushing a new line. It would be sweet if python-shell could handle these gracefully and fire a...

enhancement
help wanted

Is it possible to pass a `timeout` parameter? Once the time specified via `timeout` parameter is over, the process should automatically terminate and `PythonShell` invokes `timeoutError`?

enhancement
help wanted