-
Notifications
You must be signed in to change notification settings - Fork 370
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
OS X 10.10 cartopy installation produces segmentation fault when calling shapely-geos #615
Comments
Hi @carlschleussner. The installation recipes you referenced are starting to get a little dated - though they are still a very useful source of information. If you want to see how we are building cartopy and its dependencies on all operating systems, the first port of call should be to look at the build.sh of each package in https://github.com/SciTools/conda-recipes-scitools. One area which has caused a lot of grief on OSX is having two versions of GEOS available (typically one via brew/ports and the other compiled by hand). This stems from a problem with shapely, which might even trickle down to a bug with CPython's find_module implementation on OSX. (see the shapely conda recipe for details). Let me know how you get on, and if I can provide any more advice. |
Hi @pelson , I have a similar issue, which I brought up in the shapely issues. Do you mean that Shapely is installing its own version of GEOS parallel to the one I installed using Homebrew? All seemed fine until I updated my system recently. Thanks for the help! |
It seems likely, though it is hard to be certain. I'm reluctant to suggest it, as I don't especially like the "use this tool" type answers, but I myself have had a lot of success with conda as a tool for managing my environments - if you are not fixed in your workflow, I'd certainly encourage you to consider looking at it. Ok, back to the issue. Provided you are not getting seg faults with shapely (test with this code), the problem is probably related to cartopy picking up the wrong GEOS at compile time. It is possible to override the lib path when calling setup.py. If you can confirm if shapely is shipping a GEOS, then you could link to that with |
I solved the issue and it definitely seems to be related to the wheeled version, which includes its own GEOS. See the discussion here |
Hi,
I installed cartopy on Max OS X 10.9 following the guidelines on
https://github.com/SciTools/installation-recipes/tree/master/osx10.9
and it used to work fine. Now after upgrading to 10.10 and revisiting some of my old code, I'm getting a
segmentation fault (sigsev 11) in the libgeos_c.1.dylib for cartopy examples like
http://scitools.org.uk/cartopy/docs/latest/examples/feature_creation.html
Note that this issue does not arise from cartopy directly, but likely from shapely.
However, apparently the installer doesn't work anymore (tried setting up a new virtualenv several times). Same for installing via pip.
System details:
Python 2.7.9, gcc-4.9.2_1, geos-3.4.2, shapely 1.5.8, Cython 0.22
Any ideas or suggestion of how to get this up and running again?
Thanks,
Carl
The text was updated successfully, but these errors were encountered: