Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sqlalchemy>=2 #61

Closed
mgorny opened this issue Aug 10, 2023 · 0 comments
Closed

Support sqlalchemy>=2 #61

mgorny opened this issue Aug 10, 2023 · 0 comments

Comments

@mgorny
Copy link

mgorny commented Aug 10, 2023

When sqlalchemy==2.0.19 is installed, the relevant tests are skipped. When I try to import the relevant module, I'm getting the following ImportError:

>>> import sphinxcontrib.websupport.storage.sqlalchemy_db
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.11/site-packages/sphinxcontrib/websupport/storage/sqlalchemy_db.py", line 12, in <module>
    from sqlalchemy.orm import relation, sessionmaker, aliased
ImportError: cannot import name 'relation' from 'sqlalchemy.orm' (/usr/lib/python3.11/site-packages/sqlalchemy/orm/__init__.py)
mitya57 added a commit to mitya57/sphinxcontrib-websupport that referenced this issue Aug 11, 2023
@mitya57 mitya57 mentioned this issue Aug 11, 2023
mitya57 added a commit to mitya57/sphinxcontrib-websupport that referenced this issue Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants