0
from chatterbot import ChatBot
ModuleNotFoundError: No module named 'chatterbot'
I’ve updated the library chatterbot
and the pip
, I’ve also changed the address of path for C:\Users\Vinic\AppData\Local\Programs\Python\Python37-32\Scripts
and C:\Users\Vinic\AppData\Local\Programs\Python\Python37
which is a newer version of Python 3.7.3 and the code for chatterbot
It’s pretty basic because I can’t move forward from that
from chatterbot import ChatBot
bot = ChatBot(
'Terminal',
storage_adapter='chatterbot.storage.MongoDatabaseAdapter',
logic_adapters=[
'chatterbot.logic.BestMatch'
],
database_uri='mongodb://localhost:27017/chatterbot-database'
)
print('Type something to begin...')
while True:
try:
user_input = input()
bot_response = bot.get_response(user_input)
print(bot_response)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
How did you install? What is the result of
pip show chatterbot
?– Woss
Of a read on
requirements.txt
ofchatterbot
and make sure your system has all dependencies installed.– Augusto Vasques
Anderson Carlos Woss and Augusto Vasques managed to solve the problem, had not updated Pip nor chatterbot, was trying to update the chatterbot first before Pip.....
– Vinicius Nascimento
Only now I have the following problem 'database_url='C: Users Vinic Onedrive Desktop python db.sqlite3' is giving error (Unicode error) in this character =
– Vinicius Nascimento
I’m using IDLE 3.7.3
– Vinicius Nascimento