its wont run
See original GitHub issueos: ubuntu 18.10 bot version 1.0.1 python : 3.6 error
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /home/ghost/nltk_data...
[nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package punkt to /home/ghost/nltk_data...
[nltk_data] Unzipping tokenizers/punkt.zip.
[nltk_data] Downloading package stopwords to /home/ghost/nltk_data...
[nltk_data] Unzipping corpora/stopwords.zip.
[nltk_data] Downloading package wordnet to /home/ghost/nltk_data...
[nltk_data] Unzipping corpora/wordnet.zip.
List Trainer: [####################] 100%
Traceback (most recent call last):
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
context)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 509, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: table statement has no column named search_text
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "index.py", line 12, in <module>
"Your flight has been booked."
File "/usr/local/lib/python3.6/dist-packages/chatterbot/trainers.py", line 120, in train
self.chatbot.storage.create_many(statements_to_create)
File "/usr/local/lib/python3.6/dist-packages/chatterbot/storage/sql_storage.py", line 264, in create_many
session.commit()
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 954, in commit
self.transaction.commit()
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 467, in commit
self._prepare_impl()
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 447, in _prepare_impl
self.session.flush()
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 2313, in flush
self._flush(objects)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 2440, in _flush
transaction.rollback(_capture_exception=True)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 249, in reraise
raise value
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 2404, in _flush
flush_context.execute()
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py", line 395, in execute
rec.execute(self)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py", line 560, in execute
uow
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 181, in save_obj
mapper, table, insert)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 872, in _emit_insert_statements
execute(statement, params)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute
return meth(self, multiparams, params)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context
context)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
exc_info
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
raise value.with_traceback(tb)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
context)
File "/home/ghost/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 509, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table statement has no column named search_text [SQL: 'INSERT INTO statement (text, search_text, conversation, created_at, in_response_to, search_in_response_to, persona) VALUES (?, ?, ?, ?, ?, ?, ?)'] [parameters: ('Hi, can I help you?', 'PRP:support', 'training', '2019-01-28 16:07:49.895579', None, '', '')] (Background on this error at: http://sqlalche.me/e/e3q8)
my bot code
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
# Create a new chat bot named Charlie
chatbot = ChatBot('Charlie')
trainer = ListTrainer(chatbot)
trainer.train([
"Hi, can I help you?",
"Sure, I'd like to book a flight to Iceland.",
"Your flight has been booked."
])
# Get a response to the input text 'I would like to book a flight.'
response = chatbot.get_response('I would like to book a flight.')
print(response)
why its happen any one here for help me?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Engine Cranks but Won't Start: 5 Reasons Your Car Fails to ...
If the car cranks when you turn the key, but the engine won't start, it could be because fuel isn't getting to the...
Read more >What to Do If Your Car Won't Start - The Family Handyman
If the light goes out, it's a sign the battery is really weak—almost dead. To heat up the battery, terminals and starter, try...
Read more >14 Reasons Why Your Car Won't Start (With Fixes) | RepairSmith
1. Dead Battery · During an engine crank, you won't hear the engine turning over · You don't see the instrument panel or...
Read more >4 Causes of a Car Engine That Cranks But Won't Start
For the engine to start normally, it requires sufficient fuel pressure, an appropriately timed spark ...
Read more >7 Reasons Why Your Car Won't Start - Erie Insurance
It's a beautiful day outside. The sun is shining and the weather is perfect. You slide into your car, ready to start your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @Ghost173 I can’t seem to recreate the error that you encountered. I’ll post the steps and details related to my test environment below. Perhaps there will be a detail in there that is of help.
testing.py
and saved the file.testing.py
and got the following output.I am using
Python 3.6.6
Okay, interesting. I will test out version 1.0.1 to try to recreate this issue.