You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default python environment on Kaggle includes incompatible versions of pandas and SQLAlchemy. Namely, SQLAlchemy is 2.x while pandas is 1.5.x, and there is no intention to ever support SQLAlchemy 2.x with pandas 1.5.x See this discussion
Interesting, it looks like we don't explicitly install sqlalchemy, it must be being installed by one of our other packages in the image. We also don't pin pandas so our pandas version is dependent currently on what works with the other packages we do specify in the image.
We can keep an eye on this though and see if a newer version of the image upgrades pandas and hopefully fixes this.
In the pandas 1.5.3 tag it looks like they are requiring sqlalchemy<1.4.46 in the environment.yml and requirements-dev.txt, but I'm not seeing where the required versions for "extras" in the deployed package are defined.
But it would seem weird if the package didn't also have those version requirements embedded within it, which makes it seem weird that conda is allowing these incompatible versions of pandas and sqlalchemy to be installed together.
Unfortunately this means one can't easily read data out of SQLite DBs into pandas, e.g. this dataset.
@zaneselvans Can you just fork an older Kaggle notebook in the meantime and wait for a pandas fix that we can hopefully upgrade to in a future image release?
since this post, pandas and sqlalchemy in our image have been updated (2.2.1 and 2.0.25 respectively), reproducing the script above no longer produces an error:
🐛 Bug
The default python environment on Kaggle includes incompatible versions of pandas and SQLAlchemy. Namely, SQLAlchemy is 2.x while pandas is 1.5.x, and there is no intention to ever support SQLAlchemy 2.x with pandas 1.5.x See this discussion
To Reproduce
Expected behavior
If the pandas and SQLAlchemy versions are compatible, the code above should print out the package versions and the assertion should succeed.
For reasons I don't understand, running
or
don't seem to affect the version of the package that's installed, and so don't fix the incompatibility.
The text was updated successfully, but these errors were encountered: