-
Notifications
You must be signed in to change notification settings - Fork 366
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
BUG: incompatibility with scipy 1.11.0 #2199
Comments
I was able to reproduce this error with the cartopy example for plotting images (link) for a number of projection choices: Mollweide, Orthographic, LambertAzimuthalEqualArea, LambertCylindrical all result in the same error as above (simply changing the |
So I think the issue is simply that previously cartopy didn't worry if the proj4 projection returned invalid
In my limited testing that seems to fix the problem, but I'm not familiar enough with the cartopy codebase to feel comfortable submitting this as PR. Still, thought it might be helpful for you all. |
Temporary ceil on scipy to avoid SciTools/cartopy#2199
Temporary ceil on scipy to avoid SciTools/cartopy#2199
@chrishavlin there is only one way to get comfortable and that is to contribute :) Your PR would be more than welcome! Seems like a pretty reasonable fix, and may even be appropriate to put above that block and use it regardless of whether we are using scipy or pykdtree. We might need to update the |
well I was worried about having the bandwidth in the short term to work out the related |
+1 for a fix on this; it's affecting the Pyleoclim package, which has both scipy and cartopy as dependencies. |
I was all weekend with the same error. I also think it is due to some incompatibilities of some packages. Basically, I'm transforming a geostationary projection image to PlateCarreee (for example), it was working fine until a few days ago (today is July 2nd), now I get this error (in the last line). Just in case, I also indicate the versions of some of my packages``` (satimg) C:\Users\germa>conda list | findstr "numpy matplotlib scipy cartopy" cartopy 0.21.1 py311h178a126_1 conda-forge matplotlib 3.7.1 py311h1ea47a8_0 conda-forge matplotlib-base 3.7.1 py311h6e989c2_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge numpy 1.25.0 py311h0b4df5a_0 conda-forge scipy 1.11.1 py311h37ff6ca_0 conda-forge ```SolutionIf you need to run your code and this new scipy version is the problem, install: |
To add to @GermainRV 's comment -- if there are reasons you need scipy>=1.11.0, you can also install pykdtree and cartopy will not use scipy for the kdtree (which is what is causing the error). |
Description
Scipy 1.11.0 (released yesterday) appear to break use cases exercised in yt's CI
More specifically the breaking change seems to be scipy/scipy#18502
Code to reproduce
Traceback
Full environment definition
Operating system
Discovered in CI on Ubuntu, and reproduced on macOS
Cartopy version
0.21.1
pip list
The text was updated successfully, but these errors were encountered: