Closed SergioLopezJAAS closed 4 years ago
I'm having the same ERROR here! Can anyone help us?
Hello, try installing Chatterbot v1.0.2 pip install chatterbot==1.0.2
it worked tysm@mustious
Thanks you,
Really, that works
pip install chatterbot==1.0.2
Bye
thank you,it really worked for me
thank you so much
Thank you so much! Now it worked
thanks fam
thanks it worked
Hello, try installing Chatterbot v1.0.2 pip install chatterbot==1.0.2
thanks man it worked
Thank you so much!
Thank you very much, I solved the error.
@mustious so i tried using that and i got this error plss help:
Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partia l uninstall.
@mustious so i tried using that and i got this error plss help:
Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partia l uninstall.
I did not uninstall anything. Just install the version that says there (pip install chatterbot == 1.0.2) I had tried other versions and they also gave me an error. Maybe you can try other versions. Sorry, I'm new to python, I don't have a lot of knowledge yet.
thanks guys it worked ☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺
you are guru of every one
I'm using python 3.9.2 to install chatterbot but I recursively get this error: ERROR: Package 'chatterbot' requires a different Python: 3.9.2 not in '<=3.8,>=3.4'. Help
I'm using python 3.9.2 to install chatterbot but I recursively get this error: ERROR: Package 'chatterbot' requires a different Python: 3.9.2 not in '<=3.8,>=3.4'. Help
Hey Isaac. I think the best option is to downgrade to python 3.8 or less. If you don't want to downgrade your system python then try creating a python virtual environment which uses python version 3.8 or less too. It's also possible to bypass this by modifying the setup.py file in the chatterbot package tar.gz file which can be downloaded from https://pypi.org/project/ChatterBot/#files in order for it to run on python 3.92. Though this method often run into other errors.
Thanks man you saved my day
Thanks man you saved my day
welcome bro, but I would advise you to clone the Chatterbot module from git and install it via terminal rather than downloading it directly from pip if you don't want the pip downgrade. I say so because upon downgrading pip, it will frequently prompt you with pip updates while executing your tasks.
@mustious so i tried using that and i got this error plss help:
Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partia l uninstall.
Hello, try installing using 'pip install sugaroid-chatterbot'
You dawg... Thanks mate
It works, tks!
Hello, i have virtually tried everyone of this, the chatterbot installs but when i use it in my py i have errors
Hello, i have virtually tried everyone of this, the chatterbot installs but when i use it in my py i have errors
Hello Debby, Please mind sharing the errors you are having :)
Hello, This is my code:
from chatterbot import ChatBot from chatterbot.trainers import ListTrainer import time
bot = ChatBot("Michade Farms", read_only=False, logic_adapters=["chatterbot.logic.BestMatch"])
list_to_train = [ "Hi", "Hi there", "What's your name?", "I'm a Michade chatbot", "How old are you?", "I don't have an age" ]
list_trainer = ListTrainer(bot) list_trainer.train(list_to_train)
while True: user_input = input("User: ") response = bot.get_response(user_input) print("Bot:", response)
# Break the loop if the user enters 'bye'
if user_input.lower() == "bye":
break
And this is the error after install all different forms of chatterbot:
AttributeError Traceback (most recent call last) Input In [1], in <cell line: 7>() 4 import time 6 # Create a ChatBot instance ----> 7 bot = ChatBot("Michade Farms", read_only=False, logic_adapters=["chatterbot.logic.BestMatch"]) 9 # List of phrases to train the chatbot 10 list_to_train = [ 11 "Hi", 12 "Hi there", (...) 16 "I don't have an age" 17 ]
File ~\anaconda3\lib\site-packages\chatterbot\chatterbot.py:34, in ChatBot.init(self, name, kwargs) 31 # Logic adapters used by the chat bot 32 self.logic_adapters = [] ---> 34 self.storage = utils.initialize_class(storage_adapter, kwargs) 36 for adapter in logic_adapters: 37 utils.validate_adapter_class(adapter, LogicAdapter)
File ~\anaconda3\lib\site-packages\chatterbot\utils.py:54, in initialize_class(data, *args, *kwargs) 51 else: 52 Class = import_module(data) ---> 54 return Class(args, **kwargs)
File ~\anaconda3\lib\site-packages\chatterbot\storage\sql_storage.py:22, in SQLStorageAdapter.init(self, kwargs) 19 def init(self, kwargs): 20 super().init(**kwargs) ---> 22 from sqlalchemy import create_engine 23 from sqlalchemy.orm import sessionmaker 25 self.database_uri = kwargs.get('database_uri', False)
File ~\anaconda3\lib\site-packages\sqlalchemy__init.py:8, in
File ~\anaconda3\lib\site-packages\sqlalchemy\util__init__.py:14, in
I just did a quick check. This error might be caused by the current Python version you are using. Please try running the code with Python 3.7
how could i create an venv with another version in python?
how could i create an venv with another version in python?
Use 'altinstall' for alternative installation to not replace your default Python3 version.
tar zxvf Python-3.7.7.tgz cd Python-3.7.7 ./configure make make altinstall
Then use the version you need when creating (venv).
python3.7 -m venv 'example-project' source 'example-project'/bin/activate deactivate
This is the error display