Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'websocket' #28

Open
deemeetree opened this issue Jun 5, 2020 · 1 comment
Open

ModuleNotFoundError: No module named 'websocket' #28

deemeetree opened this issue Jun 5, 2020 · 1 comment

Comments

@deemeetree
Copy link

Followed your instructions and when I node index.js launch the index.js file with

const spacyNLP = require("spacy-nlp");
// default port 6466
// start the server with the python client that exposes spacyIO (or use an existing socketIO server at IOPORT)
var serverPromise = spacyNLP.server({ port: process.env.IOPORT });
// Loading spacy may take up to 15s

I get the following error:

[Fri Jun 05 2020 13:50:21 GMT+0200 (Central European Summer Time)] ERROR Traceback (most recent call last):
  File "/Users/deemeetree/Documents/Root/spacyorig/node_modules/spacy-nlp/src/client.py", line 12, in <module>
    import websocket
ModuleNotFoundError: No module named 'websocket'

Even though websocket was installed on my system.

Why is that?

@thomasrosen
Copy link

Installing the missing dependencies resolved it for me.

Is client.py maybe not finding websocket?

I don't know your environment but this article solved my path problems on mac: https://opensource.com/article/19/5/python-3-default-mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants