-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run into an error when typing chinese #1020
Comments
@Pythonbotty I haven't hit this error before but it sounds like a possible error with the Sqlite storage. I'll see what I can do to recreate this error and correct it. |
Thanks Gunther. These are my codes if it helps in any way. I just have to type a chinese character into it and the error will show up. bot = ChatBot ("Charlie",trainer="chatterbot.trainers.ListTrainer", logic_adapters=[{ import pandas as pd for ab in test.itertuples():
logging.basicConfig(level=logging.INFO) while True: |
These are my last 2 lines of errors. File "C:\Users\USER\Anaconda\Lib\site-packages\sqlalchemy\engine\base.py", line 1182, in _execute_context |
Thank you! |
Does anybody else run into the following error when trying to type chinese character into the chatbot?
sqlalchemy.exc.ProgrammingError: (sqlite3.ProgrammingError) You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. [SQL: u'SELECT statement.id AS statement_id, statement.text AS statement_text, statement.extra_data AS statement_extra_data \nFROM statement \nWHERE statement.text = ?\n LIMIT ? OFFSET ?'] [parameters: ('\xe4\xbd\xa0\xe5\xa5\xbd\xe5\x90\x97', 1, 0)]
The text was updated successfully, but these errors were encountered: