-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Deprecation Warning: The Connection.run_callable() method is deprecated #40825
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
Can you please paste your pd.show_versions? IIRC, this was patched on master for sqlalchemy >= 1.4, and was backported for the upcoming pandas 1.2.4 release? EDIT: Small Typo. Meant >= 1.4 not > 1.4. |
@lithomas1 I appear to be using the latest release of pandas (and the code is still in the master branch as showed above) when you say > 1.4, do you mean >=1.5 or >1.4.0? It would appear I am using 1.4.6 of SA.
|
pls try on master |
@jreback we get from pip; as a pip dependency. AFAIK we pip the latest. I think the answer I've heard here is "this is fixed in a currently-unreleased pandas". |
Yeah, the code path on master should be only exectued for sqlalchemy < 1.4. |
@lithomas1 so when 1.2.4 is released, these deprecation warnings should go away after pipping 1.2.4, given any SA 1.4.0 or greater? |
Yes. There is still some work to be done to be compatible with the upcoming sqlalchemy 2.0(#40686), but the SADeprecationWarnings should go away. |
Thank you. |
I have checked that this issue has not already been reported.
(I tried searching all issues for SADeprecationWarning but didn't find this particular issue)
I have confirmed this bug exists on the latest version of pandas.
We pin to:
"pandas>=1.2.0, <2.0.0"
(optional) I have confirmed this bug exists on the master branch of pandas.
Yes it's on master: https://github.com/pandas-dev/pandas/blob/master/pandas/io/sql.py#L1644
Code Sample, a copy-pastable example
It is hard to show a pastable example because it relies on a connection to a database. Basically any usage of:
Note that the code surrounding pandas is using a context manager (conn)
Problem description
It reports:
Looking at that file, at that line, shows:
Which is a different line number than master, bnut its still there on master: https://github.com/pandas-dev/pandas/blob/master/pandas/io/sql.py#L1644
The text was updated successfully, but these errors were encountered: