ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

chatterbot error

Open elieem7 opened this issue 1 year ago • 1 comments

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.

elieem7 avatar Mar 24 '24 13:03 elieem7

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 .

frozenproof avatar Apr 29 '24 05:04 frozenproof