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

Error importing TextBlob due to nltk #34

Closed
csastry12 opened this issue Oct 4, 2013 · 4 comments
Closed

Error importing TextBlob due to nltk #34

csastry12 opened this issue Oct 4, 2013 · 4 comments

Comments

@csastry12
Copy link

I am running Python 3.3.2, and installed TextBlob 0.7.1. However, I am not able to import TextBlob, and it seems the problem is with nltk. Please see the error below

from text.blob import TextBlob
Traceback (most recent call last):
File "<pyshell#6>", line 1, in
from text.blob import TextBlob
File "C:\Python33\lib\site-packages\text\blob.py", line 28, in
from text.packages import nltk
File "C:\Python33\lib\site-packages\text\packages.py", line 12, in
import nltk
File "C:\Python33\lib\site-packages\text\nltk__init__.py", line 116, in
from . import ccg
ImportError: cannot import name ccg

I know TextBlob does a nltk installation, but it seems to be an import error from nltk because when I import nltk, I get the same error

import nltk
Traceback (most recent call last):
File "<pyshell#10>", line 1, in
import nltk
File "C:\Python33\lib\site-packages\text\nltk__init__.py", line 116, in
from . import ccg
ImportError: cannot import name ccg

Appreciate any thoughts you might have on how I can fix this.

Cheers
Ram

@sloria
Copy link
Owner

sloria commented Oct 5, 2013

Do you have your own version of NLTK installed? If so, which version?

@sloria
Copy link
Owner

sloria commented Oct 6, 2013

Also, does this occur when you install TextBlob in a fresh virtualenv?

@euphwes
Copy link

euphwes commented Oct 6, 2013

For what it's worth, I just pip installed TextBlob in a fresh Py3.3 virtualenv, and didn't experience this issue. I could import TextBlob without issue, and import nltk itself without issue.

@sloria
Copy link
Owner

sloria commented Oct 15, 2013

Closing for now. Please let me know if the issue comes up again.

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

3 participants