developmentseed / label-maker

Data Preparation for Satellite Machine Learning
http://devseed.com/label-maker/
MIT License
461 stars 110 forks source link

@rpath error on download #143

Open mapninja opened 5 years ago

mapninja commented 5 years ago

Anyone have advice on this error when I run label-maker download?

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/label-maker", line 6, in <module>
    from label_maker.main import cli
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/label_maker/main.py", line 13, in <module>
    from label_maker.download import download_mbtiles
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/label_maker/download.py", line 6, in <module>
    from homura import download
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homura.py", line 8, in <module>
    import pycurl
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycurl.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libssh2.1.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycurl.cpython-36m-darwin.so
  Reason: image not found

Something to do with dynamic linking. I'm reading up on how Conda and Homebrew hose each other's links, but it's all greek to me.

drewbo commented 5 years ago

Maybe conda install libssh2?