Closed chrismatthieu closed 4 months ago
not new PythonShell.runString
,just PythonShell.runString
see @daizhengqing's answer. 谢谢!
For more context, runString is not a constructor. but you are calling it like it is a constructor.
When I remove new from the initial line, I get a subsequent error saying:
error TypeError: pyShell.on is not a function
I get the following error when running python strings: PythonShell.runString is not a constructor
Ubuntu NodeJS 22.3.0