-
Notifications
You must be signed in to change notification settings - Fork 144
AttributeError: 'function' object has no attribute '_yield_per' when upgrading to SQLAlchemy 1.4 #281
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
Comments
Hi @mvanbaak |
👋 Any updates? |
I did some digging and found out that SQLAlchemy is making some gradual changes for 2.0 starting in 1.4.0. The major change which is breaking the X-Ray SDK is the removal of the @mvanbaak @peterdeme Do you encouter this issue when using Flask SqlAlchemy or using SqlAlchemy alone? |
I haven't tested it with sqlalchemy alone, always in a flask_sqlalchemy context. |
@srprash I use plain SQLAlchemy. |
Upon further investigation, i can say that the root cause of this issue is in the method However, the problem started with v1.4.0 of sqlalchemy where the To test this I modified the check to |
Any ETA now that a PR is out there? |
Hey, is this released? |
Hey @peterdeme |
Versions:
I get the same error with SQLAlchemy 1.4.0 and 1.4.1, things work fine with 1.3.23.
Confirmed it's an xray issue with the following change to my code which made things work again:
The text was updated successfully, but these errors were encountered: