You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running any of the db_* scripts causes the following error:
Traceback (most recent call last):
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: user
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./db_init.py", line 2, in <module>
from vuln_corp import db, models
File "/home/keane/dev/vuln-corp/vuln_corp/__init__.py", line 8, in <module>
from vuln_corp import views
File "/home/keane/dev/vuln-corp/vuln_corp/views.py", line 10, in <module>
from vuln_corp.choices import ISSUE_ASSIGNEES
File "/home/keane/dev/vuln-corp/vuln_corp/choices.py", line 9, in <module>
ISSUE_ASSIGNEES = [(g.username, g.username) for g in User.query.filter(User.group == 1).all()]
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2613, in all
return list(self)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2761, in __iter__
return self._execute_and_instances(context)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2776, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
context)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
exc_info
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 185, in reraise
raise value.with_traceback(tb)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/home/keane/dev/vuln-corp/env/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user [SQL: 'SELECT user.id AS user_id, user.username AS user_username, user.firstname AS user_firstname, user.lastname AS user_lastname, user.picture AS user_picture, user.bio AS user_bio, user.password AS user_password, user."group" AS user_group, user.email AS user_email, user.creation_date AS user_creation_date \nFROM us
The text was updated successfully, but these errors were encountered:
Running any of the
db_*
scripts causes the following error:The text was updated successfully, but these errors were encountered: