gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots
https://chatterbot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14.04k stars 4.44k forks source link

chatterbot error #2357

Open elieem7 opened 6 months ago

elieem7 commented 6 months ago

i was working in a small chat bot project and i installed every packages and library but i have still getting an error. this is my code: from chatterbot import ChatBot from chatterbot.trainers import ListTrainer from sqlalchemy import create_engine

bot=ChatBot("Charly",read_only= False,logic_adapters=["chatterbot.logic.BestMatch"])

list_to_train=[ "hello", "how are you?", "i am fine and you", "just fine thanks" ]

list_trainer=ListTrainer(bot) list_trainer.train(list_to_train)

Créer un moteur sans l'argument convert_unicode

engine = create_engine('sqlite:///your_database.db')

this is the error that i still getting : TypeError: Invalid argument(s) 'convert_unicode' sent to create_engine(), using configuration SQLiteDialect_pysqlite/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of components.

frozenproof commented 5 months ago

You are supposed to use a virtual environment with python 3.7 specifically , this is due to the fact this library is virtually dead , and the packages are too upgraded to run this .