I have been using textblob
in Python 2.7.10 on Windows for quite some time, and unexpectedly, it stopped working. Testing with two independent virtual machines as well as on OS X produces the same error.
Testing a simple snippet from the docs:
from textblob import TextBlob
en_blob = TextBlob(u'Simple is better than complex.')
print(en_blob.translate(to='es'))
produces an error:
File "test.py", line 3, in <module> print(en_blob.translate(to='es')) File "C:\Python27\lib\site-packages\textblob\blob.py", line 509, in translate from_lang=from_lang, to_lang=to)) File "C:\Python27\lib\site-packages\textblob\translate.py", line 45, in translate raise NotTranslated('Translation API returned the input string unchanged.') textblob.exceptions.NotTranslated: Translation API returned the input string unchanged.
How can I debug this error?