question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed `CDLL(/opt/local/lib/libgeos_c.dylib)` message seems misplaced.

See original GitHub issue

Please 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dxgeorgecommented, May 31, 2018

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!

0reactions
sgilliescommented, Jun 1, 2018

Thanks for the follow up @dxgeorge !

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found