tactlabs / error-archive

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

2 #284

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/apscheduler/scheduler.py", line 512, in _run_job
    retval = job.func(*job.args, **job.kwargs)
  File "app.py", line 33, in job_function
    c_sched.run_site_collector_scheduler()
  File "/home/ubuntu/kwikee/projects/category_search/scheduler/collector_scheduler.py", line 50, in run_site_collector_scheduler
    exec_time_seconds, exec_time_minutes = bs.add_brands_from_search_links(category_id, limit, offset)
  File "/home/ubuntu/kwikee/projects/category_search/services/brand_service.py", line 57, in add_brands_from_search_links
    brand_id = dbs.add_brand_plain(b_link['name'], b_link['brand_name_part'], c_cagtegory_id, b_link['logo'], b_link['domain'])
  File "/home/ubuntu/kwikee/projects/category_search/services/db_service.py", line 333, in add_brand_plain
    log.info('Category['+str(c_category_id)+' - '+str(c_name)+' - brand_id['+str(new_brand.rowid)+'] ] added')
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", line 282, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", line 705, in get
    value = state._load_expired(state, passive)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/state.py", line 660, in _load_expired
    self.manager.deferred_scalar_loader(self, toload)
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 913, in load_scalar_attributes
    "attribute refresh operation cannot proceed" % (state_str(state))
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Brands at 0x7f615f976ef0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)

sqlalchemy.orm.exc.DetachedInstanceError: Instance <Brands at 0x7f6169d6f320> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)