chatterbot_corpus module not found after installing chatterbot

Asked

Viewed 888 times

-1

Does anyone know what these mistakes can be?

C:\Python37_64\venv\Scripts\python.exe C:/Python37_64/chat.py
Traceback (most recent call last):
  File "C:/Python37_64/chat.py", line 1, in <module>
    from chatterbot.trainers import ListTrainer
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\__init__.py", line 4, in <module>
    from .chatterbot import ChatBot
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\chatterbot.py", line 2, in <module>
    from chatterbot.storage import StorageAdapter
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\storage\__init__.py", line 1, in <module>
    from chatterbot.storage.storage_adapter import StorageAdapter
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\storage\storage_adapter.py", line 3, in <module>
    from chatterbot.tagging import PosHypernymTagger
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\tagging.py", line 4, in <module>
    from chatterbot.tokenizers import get_sentence_tokenizer
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\tokenizers.py", line 4, in <module>
    from chatterbot.corpus import load_corpus, list_corpus_files
  File "C:\Python37_64\venv\lib\site-packages\chatterbot\corpus.py", line 5, in <module>
    from chatterbot_corpus.corpus import DATA_DIRECTORY
ModuleNotFoundError: No module named 'chatterbot_corpus'
  • https://answall.com/q/377449/5878

1 answer

0

Error says that the module chatterbot_corpus is not installed. Try to update chatterbot:

pip install --upgrade chatterbot

Or install the chatterbot_corpus individually:

pip install --upgrade chatterbot_corpus

Note: if it is python3, right is pip3

  • 1

    It is recommended to execute instead of pip, the command python3 -m pip, because it is explicit in the command the version used, but more indicated is still using virtualenvs.

  • try the upgrade and still the error continues, very strange this

  • Take a look here: https://github.com/gunthercox/ChatterBot/issues/826

  • c: test>Pip Freeze Blis==0.2.4 certifi==2019.3.9 chardet=3.0.4 Chatterbot==1.0.5 chatterbot-corpus=1.2.0 cymem==2.0.2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.