square / PonyDebugger

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

Fix installation script and/or readme for ponyd (pybonjour==1.1.1 no matching distribution) #189

Open justinseanmartin opened 8 years ago

justinseanmartin commented 8 years ago

The instructions contained at https://github.com/square/PonyDebugger/blob/master/README_ponyd.rst don't currently work.

The current steps that are functioning locally for me are:

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

I'll either update the ponyd instructions to reflect this as the new installation steps, or fix the installation script hosted by GitHub.

orta commented 8 years ago

These instructions didn't work for me, I'm on a vanilla python install. Looking into the permissions things now, could be El Cap. I tried with sudo and got the same problem.

~/d/i/m/PonyDebugger (master) ⏛  python setup.py install
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-69714.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/2.7/site-packages/
orta commented 8 years ago

The solution here for me was to brew install python then re-run the installation script from @justinseanmartin, after removing a few files which were sudo'd to bad permissions.

Installed /usr/local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg
Finished processing dependencies for ponyd==1.0
AugustinChama commented 6 years ago

`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.13-intel/egg running install_lib running build_py creating build/bdist.macosx-10.13-intel/egg creating build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/gateway.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/command.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/downloader.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/constants.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/init.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/bonjour.py -> build/bdist.macosx-10.13-intel/egg/ponyd copying build/lib/ponyd/argbase.py -> build/bdist.macosx-10.13-intel/egg/ponyd byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/gateway.py to gateway.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/command.py to command.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/downloader.py to downloader.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/constants.py to constants.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/init.py to init.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/bonjour.py to bonjour.pyc byte-compiling build/bdist.macosx-10.13-intel/egg/ponyd/argbase.py to argbase.pyc creating build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/PKG-INFO -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/SOURCES.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/dependency_links.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/entry_points.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/not-zip-safe -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/requires.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO copying ponyd.egg-info/top_level.txt -> build/bdist.macosx-10.13-intel/egg/EGG-INFO creating 'dist/ponyd-1.0-py2.7.egg' and adding 'build/bdist.macosx-10.13-intel/egg' to it removing 'build/bdist.macosx-10.13-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 /var/folders/f0/hcjg644j1zbbk_8515ks1c9m0000gn/T/easy_install-XmeOSj/pybonjour-1.1.1/setup.cfg Running pybonjour-1.1.1/setup.py -q bdist_egg --dist-dir /var/folders/f0/hcjg644j1zbbk_8515ks1c9m0000gn/T/easy_install-XmeOSj/pybonjour-1.1.1/egg-dist-tmp-FtQjK1 error: dlopen(libSystem.B.dylib, 6): image not found`

I am getting this error. Re-installing python did not work for me. Any ideas?