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
Without fixing the code to adjust for it, I'm getting the following error when I try to set up ps_alchemy models for sacrud.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/shadowkyogre/code/personal/mimepo/mimepo/__main__.py", line 14, in <module>
argh.dispatch_commands([main, initialize_db, scan_files])
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/argh/dispatching.py", line 328, in dispatch_commands
dispatch(parser, *args, **kwargs)
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/argh/dispatching.py", line 174, in dispatch
for line in lines:
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/argh/dispatching.py", line 277, in _execute_command
for line in result:
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/argh/dispatching.py", line 260, in _call
result = function(*positional, **keywords)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/mimepo/__init__.py", line 518, in main
app = app_factory(cfg=cfg_file)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/mimepo/__init__.py", line 373, in app_factory
config = config_factory(cfg=cfg)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/mimepo/__init__.py", line 368, in config_factory
config.include('.')
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/config/__init__.py", line 666, in include
c(configurator)
File "/home/shadowkyogre/code/personal/mimepo/mimepo/__init__.py", line 324, in includeme
config.include('ps_alchemy')
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/config/__init__.py", line 632, in include
c = self.maybe_dotted(callable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/config/__init__.py", line 740, in maybe_dotted
return self.name_resolver.maybe_resolve(dotted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/path.py", line 327, in maybe_resolve
return self._resolve(dotted, package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/path.py", line 334, in _resolve
return self._zope_dottedname_style(dotted, package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/pyramid/path.py", line 383, in _zope_dottedname_style
found = __import__(used)
^^^^^^^^^^^^^^^^
File "/home/shadowkyogre/code/personal/mimepo/.venv/lib/python3.11/site-packages/ps_alchemy/__init__.py", line 10, in <module>
from sqlalchemy.ext.declarative.api import DeclarativeMeta
ModuleNotFoundError: No module named 'sqlalchemy.ext.declarative.api'
The text was updated successfully, but these errors were encountered:
The declarative API for SQL Alchemy got inlined with the base ORM manager for it as mentioned on this page.
https://docs.sqlalchemy.org/en/20/orm/extensions/declarative/api.html
https://docs.sqlalchemy.org/en/20/orm/mapping_api.html#sqlalchemy.orm.DeclarativeBase
Without fixing the code to adjust for it, I'm getting the following error when I try to set up ps_alchemy models for sacrud.
The text was updated successfully, but these errors were encountered: