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

cannot import name 'DeclarativeBase' #8

Open
Mudary opened this issue Dec 28, 2024 · 0 comments
Open

cannot import name 'DeclarativeBase' #8

Mudary opened this issue Dec 28, 2024 · 0 comments

Comments

@Mudary
Copy link

Mudary commented Dec 28, 2024

Ubuntu 24.0.1

mudary1@mudary1:~/starlink-graph$ python3 starlink-graph.py
Traceback (most recent call last):
File "/home/mudary1/starlink-graph/starlink-graph.py", line 24, in
from history import History
File "/home/mudary1/starlink-graph/history/init.py", line 3, in
from sqlalchemy.orm import Mapped, DeclarativeBase
ImportError: cannot import name 'DeclarativeBase' from 'sqlalchemy.orm' (/usr/lib/python3/dist-packages/sqlalchemy/orm/init.py). Did you mean: 'declarative_base'?

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

1 participant