ImportError: cannot import name 'chatbot' from 'chatterbot'
Question:
hey guys I’m getting this error, trying to build a chatbot
Traceback (most recent call last):
File "C:UsersEdwrdAppDataLocalProgramsPythonPython37-32FRIDAY.py", line 2, in <module>
from chatterbot import Chatbot
ImportError: cannot import name 'Chatbot' from 'chatterbot' (C:UsersgabriAppDataLocalProgramsPythonPython37libsite-packageschatterbot__init__.py)
Answers:
You need to use from chatterbot import ChatBot
Instead of from chatterbot import Chatbot
like you have it
Just a heads up: generally with import errors like this, it’s a spelling issue 🙂
For chatterbot-1.0.5
I had to do the following:
from chatterbot.chatterbot import ChatBot
In my case:
Capitalize the C and B made solved this error issue:
from chatterbot import ChatBot
hey guys I’m getting this error, trying to build a chatbot
Traceback (most recent call last):
File "C:UsersEdwrdAppDataLocalProgramsPythonPython37-32FRIDAY.py", line 2, in <module>
from chatterbot import Chatbot
ImportError: cannot import name 'Chatbot' from 'chatterbot' (C:UsersgabriAppDataLocalProgramsPythonPython37libsite-packageschatterbot__init__.py)
You need to use from chatterbot import ChatBot
Instead of from chatterbot import Chatbot
like you have it
Just a heads up: generally with import errors like this, it’s a spelling issue 🙂
For chatterbot-1.0.5
I had to do the following:
from chatterbot.chatterbot import ChatBot
In my case:
Capitalize the C and B made solved this error issue:
from chatterbot import ChatBot