You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: