Replies: 6 comments
-
I've found this is sensitive to the order that you install things. If you install geopandas first (via I suggest |
Beta Was this translation helpful? Give feedback.
-
@brendan-ward yes I had a hunch that something like this could be a factor which is why I uninstalled all three packages and reinstalled them as you described but to no avail. That's why I as a last resort open this issue ;-). What makes me curious is that |
Beta Was this translation helpful? Give feedback.
-
Are you using a virtual environment as well? Is it possible there is a mixup between packages installed into your base Python vs your specific Python environment? |
Beta Was this translation helpful? Give feedback.
-
Yes I am using a virtual environment but without using system site packages. I also already checked for mixups too and that's not it either. Are there maybe any other packages which install GEOS as a binary? |
Beta Was this translation helpful? Give feedback.
-
One thing to try would be to uninstall |
Beta Was this translation helpful? Give feedback.
-
Ok so I think I have figured out what is going on. I think me getting the warning is a bug which might be very specific to the "setup" I am working with. I have a GEOS version 3.4.2 on the system which I can "override" with a newer version 3.8.1 by loading an environment module.
As I said I get the "incompatible version" warning even though So what is going on? After loading the environment module with the newer GEOS version I installed shapely and pygeos with Now on import the compatibility is checked based on the version reported by geopandas/geopandas/_compat.py Line 105 in ee8adfb While the version reported by geopandas/geopandas/tools/_show_versions.py Lines 48 to 49 in ee8adfb The difference is that the first is using the On the other hand As a sidenote; I think the reason for this is that Sorry for the lengthy comment. I admit this might be a rather special situation but I hope this explanation makes sense. It would be nice if someone can confirm that this is indeed the correct explanation. |
Beta Was this translation helpful? Give feedback.
-
Question about geopandas
This question has been asked and I have read the conversations in the respective issues as well as on stackoverflow. I get the
python3.8/site-packages/geopandas/_compat.py:111: UserWarning: The Shapely GEOS version (3.9.1-CAPI-1.14.2) is incompatible with the GEOS version PyGEOS was compiled with (3.8.1-CAPI-1.13.3). Conversions between both will be slow.
warning.I installed shapely and pygeos via pip in a pyenv environment and used the
--no-binary
flag in order to use the system GEOS version which is 3.8.1 (provided by an environment module).geopandas.show_versions()
reports version 3.8.1 and the correct GEOS lib path.I don't know what I am missing. Any hint is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions