Failed `CDLL(/opt/local/lib/libgeos_c.dylib)` message seems misplaced.
See original GitHub issuePlease note
Expected behavior and actual behavior.
Expected behavior is to NOT see this error message:
Failed CDLL(/opt/local/lib/libgeos_c.dylib)
While that load failed, a ‘fallback’ load succeeded.
Steps to reproduce the problem.
from shapely.geometry import Point
–
I am able to get around the issue with this patch to geos.py:
- warnList = [] # keep warn list
if not dll and fallbacks is not None:
for name in fallbacks:
try:
LOG.debug(“Trying
CDLL(%s)
”, name) dll = CDLL(name, mode=mode) except OSError: # move on to the next fallback
-
LOG.warn("Failed `CDLL(%s)`", name)
-
warnList.append(name) # do NOT warn, save them up
-
#LOG.warn("Failed `CDLL(%s)`", name) pass
if dll: LOG.debug(“Library path: %r”, lib or name) LOG.debug(“DLL: %r”, dll) return dll else:
-
for warn in warnList: # do warnings now
-
LOG.warn("Failed `CDLL(%s)`", warn)
Operating system
Mac OS 10.13.4 (High Sierra)
Shapely version and provenance
Shapely 1.6.1 (via PIP3)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With 1.6.4, the warning is gone. My python2 was using an old version of shapely (not sure which version). I would think that this problem could be closed out with 1.6.4 fixing the issue!
Thanks for the follow up @dxgeorge !