Open Girraj236 opened 5 years ago
Chatterbot is not installed
hi dipzzz,
It is installed. even chatbot also install. still facing the issue.
hi dipzzz, See below Requirement already satisfied: chatterbot in c:\python37\lib\site-packages (1.0.5) Requirement already satisfied: pymongo<4.0,>=3.3 in c:\python37\lib\site-packages (from chatterbot) (3.8.0) Requirement already satisfied: mathparse<0.2,>=0.1 in c:\python37\lib\site-packages (from chatterbot) (0.1.2) Requirement already satisfied: pint>=0.8.1 in c:\python37\lib\site-packages (from chatterbot) (0.9) Requirement already satisfied: nltk<4.0,>=3.2 in c:\python37\lib\site-packages (from chatterbot) (3.4.1) Requirement already satisfied: sqlalchemy<1.3,>=1.2 in c:\python37\lib\site-packages (from chatterbot) (1.2.19) Requirement already satisfied: pyyaml<5.2,>=5.1 in c:\python37\lib\site-packages (from chatterbot) (5.1) Requirement already satisfied: pytz in c:\python37\lib\site-packages (from chatterbot) (2019.1) Requirement already satisfied: python-dateutil<2.8,>=2.7 in c:\python37\lib\site-packages (from chatterbot) (2.7.5) Requirement already satisfied: spacy<2.2,>=2.1 in c:\python37\lib\site-packages (from chatterbot) (2.1.4) Requirement already satisfied: six in c:\python37\lib\site-packages (from nltk<4.0,>=3.2->chatterbot) (1.12.0) Requirement already satisfied: numpy>=1.15.0 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (1.16.3) Requirement already satisfied: requests<3.0.0,>=2.13.0 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (2.22.0) Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (1.0.2) Requirement already satisfied: srsly<1.1.0,>=0.0.5 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (0.0.5) Requirement already satisfied: thinc<7.1.0,>=7.0.2 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (7.0.4) Requirement already satisfied: jsonschema<3.1.0,>=2.6.0 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (3.0.1) Requirement already satisfied: cymem<2.1.0,>=2.0.2 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (2.0.2) Requirement already satisfied: blis<0.3.0,>=0.2.2 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (0.2.4) Requirement already satisfied: plac<1.0.0,>=0.9.6 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (0.9.6) Requirement already satisfied: wasabi<1.1.0,>=0.2.0 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (0.2.2) Requirement already satisfied: preshed<2.1.0,>=2.0.1 in c:\python37\lib\site-packages (from spacy<2.2,>=2.1->chatterbot) (2.0.1) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\python37\lib\site-packages (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) (1.25.2) Requirement already satisfied: idna<2.9,>=2.5 in c:\python37\lib\site-packages (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) (2.8) Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) (2019.3.9) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) (3.0.4) Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in c:\python37\lib\site-packages (from thinc<7.1.0,>=7.0.2->spacy<2.2,>=2.1->chatterbot) (4.32.1) Requirement already satisfied: attrs>=17.4.0 in c:\python37\lib\site-packages (from jsonschema<3.1.0,>=2.6.0->spacy<2.2,>=2.1->chatterbot) (19.1.0) Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from jsonschema<3.1.0,>=2.6.0->spacy<2.2,>=2.1->chatterbot) (39.0.1) Requirement already satisfied: pyrsistent>=0.14.0 in c:\python37\lib\site-packages (from jsonschema<3.1.0,>=2.6.0->spacy<2.2,>=2.1->chatterbot) (0.15.2)
Hello All,
I am trying to run below code but getting error below.
""ImportError: cannot import name 'chatBot' from 'chatterbot' (C:\Users\saket\AppData\Local\Programs\Python\Python37\lib\site-packages\chatterbot__init__.py)"
from chatterbot import chatBot from chatterBot.trainers import ListTrainer import os
Bot = chatBot('Bot') bot.set_trainer(ListTrainer)
for files in os.listdir('C:/Users/girraj.gandhi\chatterbot_corpus\data\english/'): data = open('C:/Users/girraj.gandhi\chatterbot_corpus\data\english/' + files,'r').readlines() bot.train(data)
while true: message = input('you:') if message.strip() != 'Bye': reply = bot.get_response(message) print('chatbot:', reply) if message.strip() == 'Bye': print('chatbot: Bye') Break