I'm running OS X 10.10.5 and python, GEOS and shapely from MacPorts:
from shapely.geometry import Point
FailedCDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)
Traceback (most recent call last):
File "", line 1, in
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geometry/init.py", line 4, in
from .base import CAP_STYLE, JOIN_STYLE
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geometry/base.py", line 9, in
from shapely.coords import CoordinateSequence
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/coords.py", line 8, in
from shapely.geos import lgeos
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geos.py", line 98, in
free = load_dll('c').free
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/shapely/geos.py", line 61, in load_dll
libname, fallbacks or []))
OSError: Could not find lib c or load any of its variants [].
I've also tried GEOS from homebrew and kyngchaos' framework (http://www.kyngchaos.com/software/frameworks), but the result is always the same.
Could you, please, advise? Thanks!!
OSError: Could not find lib c or load any of its variants [].
I'm so sorry, but I don't know how to help if ctypes can not find libc on your system.
Many thanks for the answer! It turns out that I needed to unset the environment variable DYLD_FALLBACK_LIBRARY_PATH, after which everything works just fine (the package is brilliant, by the way!). Maybe my experience can be of use to others, as well.
From: Sean Gillies [email protected]
Reply-To: Toblerity/Shapely [email protected]
Date: Tuesday 26 July 2016 07:04
To: Toblerity/Shapely [email protected]
Cc: Martino Romaniello [email protected], Author [email protected]
Subject: Re: [Toblerity/Shapely] OSX (10.10.5) fails to load GEOX framework (#394)
OSError: Could not find lib c or load any of its variants [].
I'm so sorry, but I don't know how to help if ctypes can not find libc on your system.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Toblerity/Shapely/issues/394#issuecomment-235163776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATqtY0rS878Xta3htNocrx0ttBEOdrdfks5qZZVjgaJpZM4JTiR2.
Your experience is definitely useful to others. I had the same problem (on OSX too), and the recommended solution of unsetting DYLD_FALLBACK_LIBRARY_PATH has worked for me too - thanks!
Most helpful comment
Many thanks for the answer! It turns out that I needed to unset the environment variable DYLD_FALLBACK_LIBRARY_PATH, after which everything works just fine (the package is brilliant, by the way!). Maybe my experience can be of use to others, as well.
From: Sean Gillies [email protected]
Reply-To: Toblerity/Shapely [email protected]
Date: Tuesday 26 July 2016 07:04
To: Toblerity/Shapely [email protected]
Cc: Martino Romaniello [email protected], Author [email protected]
Subject: Re: [Toblerity/Shapely] OSX (10.10.5) fails to load GEOX framework (#394)
OSError: Could not find lib c or load any of its variants [].
I'm so sorry, but I don't know how to help if ctypes can not find libc on your system.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Toblerity/Shapely/issues/394#issuecomment-235163776, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATqtY0rS878Xta3htNocrx0ttBEOdrdfks5qZZVjgaJpZM4JTiR2.