Advertisement
Mochinov

Untitled

Jan 30th, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1.  
  2. 2024-01-30 12:12:12.921
  3.  
  4. 2024-01-30 12:12:12.921
  5. 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.
  6. 2024-01-30 12:12:12.921
  7. raise sa_exc.InvalidRequestError(
  8. 2024-01-30 12:12:12.921
  9. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2507, in get_property
  10. 2024-01-30 12:12:12.921
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12. 2024-01-30 12:12:12.921
  13. other = self.mapper.get_property(key, _configure_mappers=False)
  14. 2024-01-30 12:12:12.921
  15. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 1571, in _add_reverse_property
  16. 2024-01-30 12:12:12.921
  17. self._add_reverse_property(self.back_populates)
  18. 2024-01-30 12:12:12.921
  19. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 2129, in _generate_backref
  20. 2024-01-30 12:12:12.921
  21. self._generate_backref()
  22. 2024-01-30 12:12:12.921
  23. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/relationships.py", line 1640, in do_init
  24. 2024-01-30 12:12:12.921
  25. self.do_init()
  26. 2024-01-30 12:12:12.921
  27. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/interfaces.py", line 579, in init
  28. 2024-01-30 12:12:12.921
  29. prop.init()
  30. 2024-01-30 12:12:12.921
  31. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2403, in _post_configure_properties
  32. 2024-01-30 12:12:12.921
  33. mapper._post_configure_properties()
  34. 2024-01-30 12:12:12.921
  35. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 4240, in _do_configure_registries
  36. 2024-01-30 12:12:12.921
  37. _do_configure_registries(registries, cascade)
  38. 2024-01-30 12:12:12.921
  39. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 4199, in _configure_registries
  40. 2024-01-30 12:12:12.921
  41. _configure_registries({self.registry}, cascade=True)
  42. 2024-01-30 12:12:12.921
  43. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2386, in _check_configure
  44. 2024-01-30 12:12:12.921
  45. self._check_configure()
  46. 2024-01-30 12:12:12.921
  47. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/mapper.py", line 2707, in _post_inspect
  48. 2024-01-30 12:12:12.921
  49. ^^^^^^^^^^^^^^
  50. 2024-01-30 12:12:12.921
  51. obj.__dict__[self.__name__] = result = self.fget(obj)
  52. 2024-01-30 12:12:12.921
  53. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 1260, in __get__
  54. 2024-01-30 12:12:12.921
  55. insp._post_inspect
  56. 2024-01-30 12:12:12.921
  57. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/coercions.py", line 406, in expect
  58. 2024-01-30 12:12:12.921
  59. coercions.expect(
  60. 2024-01-30 12:12:12.921
  61. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 289, in <listcomp>
  62. 2024-01-30 12:12:12.921
  63. ^
  64. 2024-01-30 12:12:12.921
  65. self._raw_columns = [
  66. 2024-01-30 12:12:12.921
  67. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 288, in _set_entities
  68. 2024-01-30 12:12:12.921
  69. self._set_entities(entities)
  70. 2024-01-30 12:12:12.921
  71. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 276, in __init__
  72. 2024-01-30 12:12:12.921
  73. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  74. 2024-01-30 12:12:12.921
  75. return self._query_cls(entities, self, **kwargs)
  76. 2024-01-30 12:12:12.921
  77. File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2912, in query
  78. 2024-01-30 12:12:12.921
  79. ^^^^^^^^^^^^^^^^^^^^^^^^
  80. 2024-01-30 12:12:12.921
  81. instance = session._db.query(model).filter_by(**kwargs).one_or_none()
  82. 2024-01-30 12:12:12.921
  83. File "/code/src/services/sql_service.py", line 49, in update_or_create
  84. 2024-01-30 12:12:12.921
  85. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  86. 2024-01-30 12:12:12.920
  87. return self.sql_manager.update_or_create(
  88. 2024-01-30 12:12:12.920
  89. File "/code/src/seeds/seeds_loader.py", line 312, in update_or_create
  90. 2024-01-30 12:12:12.920
  91. ^^^^^^^^^^^^^^^^^^^^^^
  92. 2024-01-30 12:12:12.920
  93. instance, _ = self.update_or_create(
  94. 2024-01-30 12:12:12.920
  95. File "/code/src/seeds/seeds_loader.py", line 185, in load_country
  96. 2024-01-30 12:12:12.920
  97. self.load_country()
  98. 2024-01-30 12:12:12.920
  99. File "/code/src/seeds/seeds_loader.py", line 38, in load_seeders
  100. 2024-01-30 12:12:12.920
  101. SeedsCommand(db=next(get_db())).load_seeders()
  102. 2024-01-30 12:12:12.920
  103. File "/code/src/main.py", line 91, in startup_event
  104. 2024-01-30 12:12:12.920
  105. await handler()
  106. 2024-01-30 12:12:12.920
  107. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 654, in startup
  108. 2024-01-30 12:12:12.920
  109. await self._router.startup()
  110. 2024-01-30 12:12:12.920
  111. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 566, in __aenter__
  112. 2024-01-30 12:12:12.920
  113. async with self.lifespan_context(app) as maybe_state:
  114. 2024-01-30 12:12:12.920
  115. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 677, in lifespan
  116. 2024-01-30 12:12:12.920
  117. Traceback (most recent call last):
  118. 2024-01-30 12:12:12.920
  119.  
  120. 2024-01-30 12:12:12.920
  121. The above exception was the direct cause of the following exception:
  122. 2024-01-30 12:12:12.920
  123.  
  124. 2024-01-30 12:12:12.920
  125. KeyError: 'dashboard_config'
  126. 2024-01-30 12:12:12.920
  127. ~~~~~~~~~~~^^^^^
  128. 2024-01-30 12:12:12.920
  129. return self._props[key]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement