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)
Asked By: user11866502

||

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 🙂

Answered By: FishMonkey

For chatterbot-1.0.5 I had to do the following:

from chatterbot.chatterbot import ChatBot
Answered By: John Keyes

In my case:
Capitalize the C and B made solved this error issue:

from chatterbot import ChatBot
Answered By: Hassan Al Shekha