square / PonyDebugger

Remote network and data debugging for your native iOS app using Chrome Developer Tools
Other
5.86k stars 595 forks source link

error: dlopen(libSystem.B.dylib, 6): image not found when executing "sudo python setup.py install" #192

Closed mlostekk closed 8 years ago

mlostekk commented 8 years ago

I have followed this part

git clone git@github.com:square/PonyDebugger.git
cd PonyDebugger
python setup.py install

because i got the same error and are getting this error.

sudo python setup.py install

running install
Checking .pth file support in /Library/Python/2.7/site-packages/
/usr/bin/python -E -c pass
TEST PASSED: /Library/Python/2.7/site-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to ponyd.egg-info/requires.txt
writing ponyd.egg-info/PKG-INFO
writing top-level names to ponyd.egg-info/top_level.txt
writing dependency_links to ponyd.egg-info/dependency_links.txt
writing entry points to ponyd.egg-info/entry_points.txt
reading manifest file 'ponyd.egg-info/SOURCES.txt'
writing manifest file 'ponyd.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.11-intel/egg
running install_lib
running build_py
creating build/bdist.macosx-10.11-intel/egg
creating build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/__init__.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/argbase.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/bonjour.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/command.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/constants.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/downloader.py -> build/bdist.macosx-10.11-intel/egg/ponyd
copying build/lib/ponyd/gateway.py -> build/bdist.macosx-10.11-intel/egg/ponyd
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/argbase.py to argbase.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/bonjour.py to bonjour.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/command.py to command.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/constants.py to constants.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/downloader.py to downloader.pyc
byte-compiling build/bdist.macosx-10.11-intel/egg/ponyd/gateway.py to gateway.pyc
creating build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/PKG-INFO -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/SOURCES.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/dependency_links.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/entry_points.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/not-zip-safe -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/requires.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
copying ponyd.egg-info/top_level.txt -> build/bdist.macosx-10.11-intel/egg/EGG-INFO
creating 'dist/ponyd-1.0-py2.7.egg' and adding 'build/bdist.macosx-10.11-intel/egg' to it
removing 'build/bdist.macosx-10.11-intel/egg' (and everything under it)
Processing ponyd-1.0-py2.7.egg
removing '/Library/Python/2.7/site-packages/ponyd-1.0-py2.7.egg' (and everything under it)
creating /Library/Python/2.7/site-packages/ponyd-1.0-py2.7.egg
Extracting ponyd-1.0-py2.7.egg to /Library/Python/2.7/site-packages
ponyd 1.0 is already the active version in easy-install.pth
Installing ponyd script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/ponyd-1.0-py2.7.egg
Processing dependencies for ponyd==1.0
Searching for pybonjour==1.1.1
Best match: pybonjour 1.1.1
Downloading https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pybonjour/pybonjour-1.1.1.tar.gz
Processing pybonjour-1.1.1.tar.gz
Writing /tmp/easy_install-WJfKGj/pybonjour-1.1.1/setup.cfg
Running pybonjour-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WJfKGj/pybonjour-1.1.1/egg-dist-tmp-rIbCcj
error: dlopen(libSystem.B.dylib, 6): image not found

any idea how to fix the error: dlopen(libSystem.B.dylib, 6): image not found?

Thanks

mlostekk commented 8 years ago

well, okay i had to do a brew install python

AugustinChama commented 6 years ago

I am having the exact same problem. I am running on MacOS HighSierra 10.13.2.

brew install python did not solve it for me.

Any ideas?

tomtclai commented 6 years ago

Disabling SIP worked for me. https://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html