tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

2 #227

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
Traceback (most recent call last):
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ubuntu/kwikee/projects/category_search/rest_api/category_controller.py", line 762, in migrate_brands_by_category_id_api
    dbs.migrate_brands_by_category_id(cid)
  File "/home/ubuntu/kwikee/projects/category_search/services/db_service.py", line 640, in migrate_brands_by_category_id
    brands_list = sqlite_session.query(Brands).filter_by(category_id = c_category_id).all()
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3174, in all
    return list(self)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3330, in __iter__
    return self._execute_and_instances(context)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3352, in _execute_and_instances
    querycontext, self._connection_from_session, close_with_result=True
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3367, in _get_bind_args
    mapper=self._bind_mapper(), clause=querycontext.statement, **kw
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3345, in _connection_from_session
    conn = self.session.connection(**kw)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1119, in connection
    bind = self.get_bind(mapper, clause=clause, **kw)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1537, in get_bind
    % (", ".join(context))
sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper mapped class Brands->brands, SQL expression or this Session
rajacsp commented 4 years ago

https://stackoverflow.com/questions/18445772/sqlalchemy-exc-unboundexecutionerror-could-not-locate-a-bind-configured-on-mapp