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

fix: sqlalchemy dependencies #12760

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wiktorn
Copy link

@wiktorn wiktorn commented Nov 10, 2024

Description

SQLAlchemy v2.0.24 fails with Python 3.13 with error:

AssertionError: Class <class 'sqlalchemy.sql.elements.SQLCoreOperations'> directly inherits TypingOnly but has additional attributes {'__static_attributes__'}.

see bug #11334

Bumping version of SQLAlchemy and fixing Python to version 3.13 to avoid such problems in the future.

Checklist

SQLAlchemy v2.0.24 fails with Python 3.13 with error:
```
AssertionError: Class <class 'sqlalchemy.sql.elements.SQLCoreOperations'> directly inherits TypingOnly but has additional attributes {'__static_attributes__'}.
```
[see bug GoogleCloudPlatform#11334](sqlalchemy/sqlalchemy#11334)

Bumping version of SQLAlchemy and fixing Python to version 3.13 to avoid
such problems in the future.
@wiktorn wiktorn requested review from a team as code owners November 10, 2024 08:36
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: cloudsql labels Nov 10, 2024
@jackwotherspoon
Copy link
Contributor

@wiktorn
Copy link
Author

wiktorn commented Nov 11, 2024

@jackwotherspoon Actually, both MySQL and SQL Server pinned python:3.11 (though different flavors). I aligned Dockerfiles and requirements.txt across these three.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudsql samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants