In [1]: from chatterbot import ChatBot
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-22d2a9e85e25> in <module>
----> 1 from chatterbot import ChatBot
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/__init__.py in <module>
2 ChatterBot is a machine learning, conversational dialog engine.
3 """
----> 4 from .chatterbot import ChatBot
5
6 __version__ = '1.0.5'
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/chatterbot.py in <module>
1 import logging
----> 2 from chatterbot.storage import StorageAdapter
3 from chatterbot.logic import LogicAdapter
4 from chatterbot.search import IndexedTextSearch
5 from chatterbot import utils
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/storage/__init__.py in <module>
----> 1 from chatterbot.storage.storage_adapter import StorageAdapter
2 from chatterbot.storage.django_storage import DjangoStorageAdapter
3 from chatterbot.storage.mongodb import MongoDatabaseAdapter
4 from chatterbot.storage.sql_storage import SQLStorageAdapter
5
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/storage/storage_adapter.py in <module>
1 import logging
2 from chatterbot import languages
----> 3 from chatterbot.tagging import PosHypernymTagger
4
5
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/tagging.py in <module>
2 from chatterbot import languages
3 from chatterbot import utils
----> 4 from chatterbot.tokenizers import get_sentence_tokenizer
5 from nltk import pos_tag
6 from nltk.corpus import wordnet, stopwords
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/tokenizers.py in <module>
2 from nltk.tokenize.punkt import PunktSentenceTokenizer, PunktTrainer
3 from nltk.tokenize import _treebank_word_tokenizer
----> 4 from chatterbot.corpus import load_corpus, list_corpus_files
5 from chatterbot import languages
6
~/.local/share/virtualenvs/chatterbot-test-H1-ATVUx/lib/python3.7/site-packages/chatterbot/corpus.py in <module>
3 import glob
4 import yaml
----> 5 from chatterbot_corpus.corpus import DATA_DIRECTORY
6
7
ModuleNotFoundError: No module named 'chatterbot_corpus'
Installing chatterbot_corpus…
Collecting chatterbot-corpus
Using cached https://files.pythonhosted.org/packages/ed/19/f8b41daf36fe4b0f43e283a820362ffdb2c1128600ab4ee187e84262fa4d/chatterbot_corpus-1.2.0-py2.py3-none-any.whl
Collecting PyYAML<4.0,>=3.12 (from chatterbot-corpus)
Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz
Building wheels for collected packages: PyYAML
Building wheel for PyYAML (setup.py): started
Building wheel for PyYAML (setup.py): finished with status 'done'
Stored in directory: /home/jonas/.cache/pipenv/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
Successfully built PyYAML
Installing collected packages: PyYAML, chatterbot-corpus
Found existing installation: PyYAML 5.1
Uninstalling PyYAML-5.1:
Successfully uninstalled PyYAML-5.1
Successfully installed PyYAML-3.13 chatterbot-corpus-1.2.0
Adding chatterbot_corpus to Pipfile's [packages]…
Pipfile.lock (6f58d5) out of date, updating to (2ccbda)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pyyaml<4.0,<5.2,>=3.12,>=5.1
Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1, 5.1
Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 5.1b1, 5.1b3, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b5, 5.1b7
There are incompatible versions in the resolved dependencies.
Notice how installing uninstalled the pyyaml version for chatterbot.
Running pipenv graph
show there's a conflict in dependencies:
ChatterBot==1.0.5
...
- pyyaml [required: >=5.1,<5.2, installed: 3.13]
...
chatterbot-corpus==1.2.0
- PyYAML [required: >=3.12,<4.0, installed: 3.13]