-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
"Shell is not a LinearRing" on OSX #34
Comments
@ffaristocrat To check this is indeed a shapely issue, could you try to read the file with just fiona? (in the environment where it is failing with geopandas). Then that should not involve shapely or geopandas, and we can see if that works. Something like
|
This works without any problems. Let me know if you need me to try out anything else. |
OK, that indeed confirms it is a shapely issue, as @ocefpaf also said here conda-forge/geopandas-feedstock#31 (comment) |
Note that we are seeing some incompatibilities in the latest OS X system and shapely. I cannot reproduce that using the OS X VM available in Travis-CI and I do not own a Mac to research this further. Using pip works b/c they are static linked, this suggests that latest OS X may have a system wide TL;DR I have no idea what the issue really is and I do not have the tools to fix it. |
+1, any solution found ? |
@ocefpaf I'll try to reproduce this on my machine at home tonight (US/Pacific time). |
Thanks @phobson! |
+1 |
Reinstalling only geopandas via pip (fiona and shapely are still installed by conda) solved the problem for me. |
same issue for me, & nothing seems to work :( |
Any update here for MacOS? I have reinstalled geopandas via pip and (fiona and shapely are still installed by conda) but still getting 'Shell is not a LinearRing' when trying to call define a shapely Polygon. |
I forgot to give a solution that worked for me, maybe it will help:
|
We cannot reproduce this issue and people that follow our instructions are reporting successful installations. I'm closing this. If you are still experiencing this issue please try to investigate if your OS X has a geos pre-installed and if shapely is picking that one up. |
Hi @ocefpaf , Thanks for the advice. I have applied the conda config instructions listed. I am still having issues unfortunately. Any pointers as to how I can verify/prevent shapely from using the system OSX geos? Does installing a conda-forge version of geos over ride the system installation? Perhaps removing the system version of geos from my Frameworks directory? |
I'm not even sure that is the problem. I don't have a Mac and our Mac-CI (Travis-CI OS X image) does not reproduce the problem. We would need a Mac users that is more comfortable with |
Just did the following on Mac OS 10.13.5:
And it printed |
I do not think there is a system-wide libgeos. At least I cannot find any libgeos* under /usr/lib and /System/Library. I solved my problem by reinstalling geopandas from pip. However, I have now tried |
Btw, I have tried both the default channel and conda-forge. No errors were encountered. |
While trying to resolve this issue over in conda-forge/geopandas(shapefile is from that thread), I traced the problem to the version (1.6.3-py36_0) conda-forge is installing for shapely.
Running this from a clean Anaconda install on OSX El Capitan 10.11.6:
results in repeated
Following on from a suggestion about removing geopandas and pip installing it instead, I repeated it with other libraries as I worked through code in the debugger. I discovered that removing shapely, fiona and geopandas from conda and reinstalling them with pip enables the little one liner test to work. Ditto for code using osmnx that sent me down this rabbit hole in the first place.
The versions being removed from conda:
The versions being installed by pip:
Which, uh, seems to be the same? So I'm not sure what's going on here.
The text was updated successfully, but these errors were encountered: