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

[GCP] ImportError: No module named nltk.stem.wordnet #35

Closed
nihalsoans91 opened this issue Jan 30, 2018 · 4 comments
Closed

[GCP] ImportError: No module named nltk.stem.wordnet #35

nihalsoans91 opened this issue Jan 30, 2018 · 4 comments
Assignees

Comments

@nihalsoans91
Copy link
Contributor

The error occurs only on GCP even though nltk is there .

@nihalsoans91
Copy link
Contributor Author

Tried going to python shell and importing nltk.stem.wordnet and it works

@nihalsoans91
Copy link
Contributor Author

tried going into the pyspark shell and importing nltk.stem.wordnet and it works

@nihalsoans91
Copy link
Contributor Author

My only doubt is that the pyspark is spooling out of my environment , will try shh into each worker and try

@nihalsoans91
Copy link
Contributor Author

  1. Installed pip using sudo apt-get install python-pip
  2. Imported nltk on workers pip install nltk

Worked

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

No branches or pull requests

1 participant