Traceback (most recent call last):


 "/usr/local/lib/python3.9/runpy.py", line 193, in _run_module_as_main

return _run_code(code, main_globals, None,


 "/usr/local/lib/python3.9/runpy.py", line 86, in _run_code

exec(code, run_globals)


 "/poetry/poetry/__main__.py", line 5, in <module>

from .console import main


 "/poetry/poetry/console/__init__.py", line 1, in <module>

from .application import Application


 "/poetry/poetry/console/application.py", line 5, in <module>

from .commands.about import AboutCommand


 "/poetry/poetry/console/commands/__init__.py", line 4, in <module>

from .check import CheckCommand


 "/poetry/poetry/console/commands/check.py", line 1, in <module>

from poetry.factory import Factory


 "/poetry/poetry/factory.py", line 21, in <module>

from .repositories.pypi_repository import PyPiRepository


 "/poetry/poetry/repositories/pypi_repository.py", line 13, in <module>

from html5lib.html5parser import parse


 "/usr/local/lib/python3.9/site-packages/html5lib/__init__.py", line 25, in <module>

from .html5parser import HTMLParser, parse, parseFragment


 "/usr/local/lib/python3.9/site-packages/html5lib/html5parser.py", line 8, in <module>

from . import _tokenizer


 "/usr/local/lib/python3.9/site-packages/html5lib/_tokenizer.py", line 16, in <module>

from ._trie import Trie


 "/usr/local/lib/python3.9/site-packages/html5lib/_trie/__init__.py", line 3, in <module>

from .py import Trie as PyTrie


 "/usr/local/lib/python3.9/site-packages/html5lib/_trie/py.py", line 6, in <module>

from ._base import Trie as ABCTrie


 "/usr/local/lib/python3.9/site-packages/html5lib/_trie/_base.py", line 3, in <module>

from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/lib/python3.9/collections/__init__.py)

Traceback (most recent call last):


 "main.py", line 1, in <module>

from chatterbot.trainers import ListTrainer
#method to train the chatbot


 "/usr/local/lib/python3.5/dist-packages/chatterbot/__init__.py", line 4, in <module>

from .chatterbot import ChatBot


 "/usr/local/lib/python3.5/dist-packages/chatterbot/chatterbot.py", line 2, in <module>

from chatterbot.storage import StorageAdapter


 "/usr/local/lib/python3.5/dist-packages/chatterbot/storage/__init__.py", line 1, in <module>

from chatterbot.storage.storage_adapter import StorageAdapter


 "/usr/local/lib/python3.5/dist-packages/chatterbot/storage/storage_adapter.py", line 3, in <module>

from chatterbot.tagging import PosHypernymTagger


 "/usr/local/lib/python3.5/dist-packages/chatterbot/tagging.py", line 4, in <module>

from chatterbot.tokenizers import get_sentence_tokenizer


 "/usr/local/lib/python3.5/dist-packages/chatterbot/tokenizers.py", line 4, in <module>

from chatterbot.corpus import load_corpus, list_corpus_files


 "/usr/local/lib/python3.5/dist-packages/chatterbot/corpus.py", line 5, in <module>

from chatterbot_corpus.corpus import DATA_DIRECTORY
ImportError: No module named 'chatterbot_corpus'
