markuskiller / textblob-de

German language support for TextBlob.
https://textblob-de.readthedocs.org
MIT License
103 stars 12 forks source link

ModuleNotFoundError: No module named 'textblob.translate' #24

Open mhechthz opened 6 months ago

mhechthz commented 6 months ago

I'm currently running Python 3.12. The Git repository of textblob-de seems to be outdated.

When I run from textblob_de import TextBlobDE as TextBlob I get

Traceback (most recent call last):
  File "C:\Micha\Programming\Python\TextProcessing\nlp_test.py", line 1, in <module>
    from textblob_de import TextBlobDE as TextBlob
  File "C:\Python312\Lib\site-packages\textblob_de\__init__.py", line 9, in <module>
    from textblob_de.blob import TextBlobDE, BlobberDE, Word, WordList, Sentence
  File "C:\Python312\Lib\site-packages\textblob_de\blob.py", line 44, in <module>
    from textblob.translate import Translator
ModuleNotFoundError: No module named 'textblob.translate'

So I cannot use the package.

7o11n3r commented 6 months ago

Unfortunately I have the same problem here.

matthias-fbi commented 5 months ago

Same problem here.

gernhard1337 commented 5 months ago

Same problem here. You can downgrade the version textblob. I found it works with textblob version 0.15.2. Downgrade version with pip install textblob==0.15.2