question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sqlite3.OperationalError: table statement has no column named search_text

See original GitHub issue

I have already the gone through the issue stated here ( https://github.com/gunthercox/ChatterBot/issues/1493 ), but it didn’t work for me. I am using chatterbot of version = 1.0.0.a2

Can anyone provide any help to fix this issue. Sorry, for stating the whole error list.

`List Trainer: [##                  ] 10%Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x037F5B28>
Traceback (most recent call last):
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 1230, in _execute_context
    cursor, statement, parameters, context
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\default.py", line 536, in do_execute
    cursor.execute(statement, parameters)
sqlite3.OperationalError: table statement has no column named conversation

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
    self.check(display_num_errors=True)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py", line 379, in check
    include_deployment_checks=include_deployment_checks,
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py", line 366, in _run_checks
    return checks.run_checks(**kwargs)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\checks\registry.py", line 71, in run_checks
    new_errors = check(app_configs=app_configs)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
    return check_method()
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\urls\resolvers.py", line 396, in check
    for pattern in self.url_patterns:
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\functional.py", line 37, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\urls\resolvers.py", line 533, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\functional.py", line 37, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\urls\resolvers.py", line 526, in urlconf_module
    return import_module(self.urlconf_name)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "E:\Final Thesis work\targeted\chat_app\chat_app\urls.py", line 21, in <module>
    url(r'^', include('alpha.urls')),
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\urls\conf.py", line 34, in include
    urlconf_module = import_module(urlconf_module)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "E:\Final Thesis work\targeted\chat_app\alpha\urls.py", line 3, in <module>
    from . import views
  File "E:\Final Thesis work\targeted\chat_app\alpha\views.py", line 17, in <module>
    trainer.train(conv)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\chatterbot\trainers.py", line 97, in train
    tags=statement.tags
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\chatterbot\storage\sql_storage.py", line 189, in create
    session.flush()
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\session.py", line 2424, in flush
    self._flush(objects)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\session.py", line 2562, in _flush
    transaction.rollback(_capture_exception=True)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\util\langhelpers.py", line 67, in __exit__
    compat.reraise(exc_type, exc_value, exc_tb)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\util\compat.py", line 277, in reraise
    raise value
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\session.py", line 2522, in _flush
    flush_context.execute()
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 416, in execute
    rec.execute(self)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 583, in execute
    uow,
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\persistence.py", line 245, in save_obj
    insert,
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\orm\persistence.py", line 1116, in _emit_insert_statements
    statement, params
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 974, in execute
    return meth(self, multiparams, params)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\sql\elements.py", line 273, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 1093, in _execute_clauseelement
    distilled_params,
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 1234, in _execute_context
    e, statement, parameters, cursor, context
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 1452, in _handle_dbapi_exception
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\util\compat.py", line 296, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\util\compat.py", line 276, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\base.py", line 1230, in _execute_context
    cursor, statement, parameters, context
  File "C:\Users\QA System\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\engine\default.py", line 536, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table statement has no column named conversation [SQL: 'INSERT INTO statement (text, conversation, in_response_to, persona) VALUES (?, ?, ?, ?)'] [parameters: ('\ufeffকেউ কি কখনো চাঁদের মালিক হতে পারবে?', 'training', None, None)] (Background on this error at: http://sqlalche.me/e/e3q8)`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sarangjain40commented, Jan 25, 2019

Its working for me. Uninstalled, removed sqlite3.file and reinstalled 1.0.0 build and its working. Thankx

0reactions
lock[bot]commented, Nov 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python\SQLite: table A has no column named X - Stack Overflow
However, the last column in the table isn't being found by SQLite for some reason. Error: OperationalError: table A has no column named...
Read more >
sqlite3.OperationalError: table answers has no column named
I'm trying to insert some values into a table. Here's my tables: CREATE TABLE user ( id INTEGER PRIMARY KEY AUTOINCREMENT, email TEXT...
Read more >
SQLite FTS5 Extension
It is an error to add types, constraints or PRIMARY KEY declarations to a CREATE VIRTUAL TABLE statement used to create an FTS5...
Read more >
Error "table users has no column named has_invite" when ...
This is due to missing column data in the /home/<user>/.subaccounts/storage.sqlite database. Below is how this can be corrected. Workaround.
Read more >
OperationalError -- Table has no column named ..
Hello, I'm running OpenSuSE-11.0 with the lastest version of django and sqlite3. When I enter the admin interface to enter data into my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found