Open zettlunic opened 7 years ago
I encounter the same issue. ProductName: Mac OS X ProductVersion: 10.12.3 Python: 2.7.10
Installation of ponyd is a mess, I've fixed it with next steps:
mkdir ponyd
cd ponyd
curl -O https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
curl -O https://pypi.python.org/packages/25/5d/cc55d39ac39383dd6e04ae80501b9af3cc455be64740ad68a4e12ec81b00/setuptools-0.6c11-py2.7.egg
curl -O https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pybonjour/pybonjour-1.1.1.tar.gz
tar xvf pybonjour-1.1.1.tar.gz
mv pybonjour-1.1.1 pybonjour
curl -O https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py
Add command to install pybonjour to bootstrap-ponyd.py
subprocess.check_call([join(home_dir, 'bin', 'python'), join('pybonjour', 'setup.py'), 'install'])
ex.:
def after_install(options, home_dir):
subprocess.check_call([join(home_dir, 'bin', 'python'), join('pybonjour', 'setup.py'), 'install'])
subprocess.check_call([join(home_dir, 'bin', 'pip'),
'install', '-U', '-e', 'git+https://github.com/square/PonyDebugger.git#egg=ponydebugger'])
cat ./bootstrap-ponyd.py | python - --never-download --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/backports-abc/ -U backports_abc
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/certifi -U certifi
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/six/ -U six
sudo ~/Library/PonyDebugger/bin/easy_install -U pybonjour
ponyd update-devtools
@yevgeniy-logachev tried your solution, but I get this error on step 7
Traceback (most recent call last):
File "/usr/local/bin/ponyd", line 8, in <module>
load_entry_point('ponyd==1.0', 'console_scripts', 'ponyd')()
File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load
File "/Users/****/Library/PonyDebugger/src/ponydebugger/ponyd/__init__.py", line 4, in <module>
import gateway
File "/Users/****/Library/PonyDebugger/src/ponydebugger/ponyd/gateway.py", line 19, in <module>
import bonjour
File "/Users/****/Library/PonyDebugger/src/ponydebugger/ponyd/bonjour.py", line 3, in <module>
import pybonjour
ImportError: No module named pybonjour
@rcorrie, I found issue and fixed some steps above. Please remove content of your ~/Library/PonyDebugger/ direcory and try all these steps again
@yevgeniy-logachev thank you, I will give it a shot today.
@yevgeniy-logachev Hello, I would like to ask you what is the meaning of the first four steps I do not quite understand what to say thank you
@yevgeniy-logachev Your solution works great =]
@yevgeniy-logachev you made my day!
@yevgeniy-logachev thank you!
I still have problem with installation. I tried with @yevgeniy-logachev instructions, but have problem with 6th step. Only pybonjour have successfully installed.
Searching for backports-abc
Reading http://pypi.python.org/simple/backports_abc/
Reading http://pypi.python.org/simple/backports-abc/
Couldn't find index page for 'backports_abc' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for backports-abc
Best match: None
Traceback (most recent call last):
File "/Users/herman/Library/PonyDebugger/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
Searching for certifi
Reading http://pypi.python.org/simple/certifi/
Couldn't find index page for 'certifi' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for certifi
Best match: None
Traceback (most recent call last):
File "/Users/herman/Library/PonyDebugger/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/Users/herman/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
I tried instruction from here https://github.com/square/PonyDebugger/issues/188#issuecomment-199333060 but after install and start ponyd server I always have 404 status code.
Having exactly error as @gentoo-pl said:
AttributeError: 'NoneType' object has no attribute 'clone'
Any idea? @yevgeniy-logachev Thanks! Env: MacOS 10.12.6 Python 2.7.10
I updated step 6, if you have errors like:
_AttributeError: 'NoneType' object has no attribute 'clone'_
use these actions in step 6
cmd$ ~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/backports-abc/ -U backports_abc
cmd$ ~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/certifi -U certifi
cmd$ ~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/six/ -U six
cmd$ sudo ~/Library/PonyDebugger/bin/easy_install -U pybonjour
For others coming here, I encountered this when I did ponyd update-devtools
in the end:
ponyd update-devtools
Traceback (most recent call last):
File "/usr/local/bin/ponyd", line 5, in <module>
from pkg_resources import load_entry_point
File "/Users/jyoti/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module>
File "/Users/jyoti/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
File "/Users/jyoti/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: singledispatch
which i fixed by doing
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/singledispatch/ -U singledispatch
and then running ponyd update-devtools
again
@methodiva that is awesome.
@yevgeniy-logachev little update:
step 2: add -L to fix "301 Moved Permanently" redirect issue, or just download them manually.
curl -O -L https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
curl -O -L https://pypi.python.org/packages/25/5d/cc55d39ac39383dd6e04ae80501b9af3cc455be64740ad68a4e12ec81b00/setuptools-0.6c11-py2.7.egg
step 3: remove "cloud" subdomain
curl -O -L https://github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py
and, thanks for your info.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cloud.github.com
@yevgeniy-logachev
I encountered this when I did ponyd update-devtools
in the end
Traceback (most recent call last): File "/usr/local/bin/ponyd", line 5, in <module> from pkg_resources import load_entry_point File "/Users/deepbhai/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module> File "/Users/deepbhai/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require File "/Users/deepbhai/Library/PonyDebugger/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve pkg_resources.DistributionNotFound: futures
Hi there. I tried to install ponyd on my mac but the script seems to fail while installing
setuptools
. I tried to install setuptools manually via pip or easy_install, both worked but didn't fix the issue. I'm using homebrew's python 2.7.13 on macOS 10.12.2Thanks in advance.