Skip to content

PythonShell is not a constructor (v1.0.4) #154

@surfaceowl

Description

@surfaceowl

After upgrading from "python-shell": "0.5.0" to "python-shell": "1.0.4", a previously working link that invokes a python script now returns the error "PythonShell is not a constructor"

The previously working code included:

...
const PythonShell = require("python-shell");
...
let pyshell = new PythonShell(script, options);

I noticed that this recent commit mentions constructors, but does not seem to change the API. There is also this change in the Readme.md
image

... but the examples below in same the Readme appear to be the same as before v1.0.4.
image

Should I configure something differently, or is this a potential bug?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions