Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2024-01-30 12:12:12.921
- 2024-01-30 12:12:12.921
- sqlalchemy.exc.InvalidRequestError: Mapper 'Mapper[Company(company)]' has no property 'dashboard_config'. If this property was indicated from other mappers or configure events, ensure registry.configure() has been called.
- 2024-01-30 12:12:12.921
- raise sa_exc.InvalidRequestError(
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2507, in get_property
- 2024-01-30 12:12:12.921
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.921
- other = self.mapper.get_property(key, _configure_mappers=False)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 1571, in _add_reverse_property
- 2024-01-30 12:12:12.921
- self._add_reverse_property(self.back_populates)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 2129, in _generate_backref
- 2024-01-30 12:12:12.921
- self._generate_backref()
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 1640, in do_init
- 2024-01-30 12:12:12.921
- self.do_init()
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/interfaces.py", line 579, in init
- 2024-01-30 12:12:12.921
- prop.init()
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2403, in _post_configure_properties
- 2024-01-30 12:12:12.921
- mapper._post_configure_properties()
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 4240, in _do_configure_registries
- 2024-01-30 12:12:12.921
- _do_configure_registries(registries, cascade)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 4199, in _configure_registries
- 2024-01-30 12:12:12.921
- _configure_registries({self.registry}, cascade=True)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2386, in _check_configure
- 2024-01-30 12:12:12.921
- self._check_configure()
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2707, in _post_inspect
- 2024-01-30 12:12:12.921
- ^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.921
- obj.__dict__[self.__name__] = result = self.fget(obj)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 1260, in __get__
- 2024-01-30 12:12:12.921
- insp._post_inspect
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/coercions.py", line 406, in expect
- 2024-01-30 12:12:12.921
- coercions.expect(
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 289, in <listcomp>
- 2024-01-30 12:12:12.921
- ^
- 2024-01-30 12:12:12.921
- self._raw_columns = [
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 288, in _set_entities
- 2024-01-30 12:12:12.921
- self._set_entities(entities)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 276, in __init__
- 2024-01-30 12:12:12.921
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.921
- return self._query_cls(entities, self, **kwargs)
- 2024-01-30 12:12:12.921
- File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2912, in query
- 2024-01-30 12:12:12.921
- ^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.921
- instance = session._db.query(model).filter_by(**kwargs).one_or_none()
- 2024-01-30 12:12:12.921
- File "/code/src/services/sql_service.py", line 49, in update_or_create
- 2024-01-30 12:12:12.921
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.920
- return self.sql_manager.update_or_create(
- 2024-01-30 12:12:12.920
- File "/code/src/seeds/seeds_loader.py", line 312, in update_or_create
- 2024-01-30 12:12:12.920
- ^^^^^^^^^^^^^^^^^^^^^^
- 2024-01-30 12:12:12.920
- instance, _ = self.update_or_create(
- 2024-01-30 12:12:12.920
- File "/code/src/seeds/seeds_loader.py", line 185, in load_country
- 2024-01-30 12:12:12.920
- self.load_country()
- 2024-01-30 12:12:12.920
- File "/code/src/seeds/seeds_loader.py", line 38, in load_seeders
- 2024-01-30 12:12:12.920
- SeedsCommand(db=next(get_db())).load_seeders()
- 2024-01-30 12:12:12.920
- File "/code/src/main.py", line 91, in startup_event
- 2024-01-30 12:12:12.920
- await handler()
- 2024-01-30 12:12:12.920
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 654, in startup
- 2024-01-30 12:12:12.920
- await self._router.startup()
- 2024-01-30 12:12:12.920
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 566, in __aenter__
- 2024-01-30 12:12:12.920
- async with self.lifespan_context(app) as maybe_state:
- 2024-01-30 12:12:12.920
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 677, in lifespan
- 2024-01-30 12:12:12.920
- Traceback (most recent call last):
- 2024-01-30 12:12:12.920
- 2024-01-30 12:12:12.920
- The above exception was the direct cause of the following exception:
- 2024-01-30 12:12:12.920
- 2024-01-30 12:12:12.920
- KeyError: 'dashboard_config'
- 2024-01-30 12:12:12.920
- ~~~~~~~~~~~^^^^^
- 2024-01-30 12:12:12.920
- return self._props[key]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement