Skip to content
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

Continuously getting an sqlite error, help needed. #29

Open
umangnangal opened this issue Sep 9, 2020 · 1 comment
Open

Continuously getting an sqlite error, help needed. #29

umangnangal opened this issue Sep 9, 2020 · 1 comment

Comments

@umangnangal
Copy link

Traceback (most recent call last):
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
cursor, statement, parameters, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: model

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

Traceback (most recent call last):
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sanic/app.py", line 976, in handle_request
response = await response
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 166, in decorated_function
return await await_and_return_response(args, kwargs, request)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 142, in await_and_return_response
response = await response
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/blueprints/models.py", line 103, in get_model_for_tag
model = model_service(request).model_for_tag(project_id, tag)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/services/model_service.py", line 512, in model_for_tag
.filter(and
(ModelTag.tag == tag, Model.project_id == project))
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3402, in first
ret = list(self[0:1])
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3176, in getitem
return list(res)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3508, in iter
return self._execute_and_instances(context)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3533, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
return meth(self, multiparams, params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement
distilled_params,
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1317, in execute_context
e, statement, parameters, cursor, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1511, in handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from
=e
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 182, in raise

raise exception
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
cursor, statement, parameters, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: model
[SQL: SELECT model.id AS model_id, model.hash AS model_hash, model.name AS model_name, model.path AS model_path, model.project_id AS model_project_id, model.version AS model_version, model.trained_at AS model_trained_at
FROM model JOIN model_tag ON model.id = model_tag.model_id
WHERE model_tag.tag = ? AND model.project_id = ?
LIMIT ? OFFSET ?]
[parameters: ('production', 'default', 1, 0)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
2020-09-09 17:26:53 ERROR sanic.root - Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=af9c632e4e90b49276e8904bf61cf2e0'

@sara-tagger
Copy link

Thanks for the issue, @tttthomasssss will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants