Skip to content

AttributeError: module 'sqlalchemy' has no attribute '__all__' #1122

@iROCKBUNNY

Description

@iROCKBUNNY

I suspect that there is compatibility issue with SQLAlchemy 2.0.

File "/.../venv/lib/python3.9/site-packages/flask_sqlalchemy/extension.py", line 982, in __getattr__
    if name in mod.__all__:
AttributeError: module 'sqlalchemy' has no attribute '__all__'

Environment:

  • Python version: 3.9.6
  • Flask-SQLAlchemy version: 3.0.1
  • SQLAlchemy version: 2.0.0b1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions