Repository navigation
bootstrap-ponyd.py fails at setuptools install #198
Copy link
Copy link
Open
Labels
ponydIssues affecting the `ponyd` python serverIssues affecting the `ponyd` python server
Description
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.2
Thanks in advance.
marcels-mbp:Downloads marcel$ curl -s https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
New python executable in /Users/marcel/Library/PonyDebugger/bin/python2.7
Not overwriting existing python script /Users/marcel/Library/PonyDebugger/bin/python (you must use /Users/marcel/Library/PonyDebugger/bin/python2.7)
Installing setuptools..........................................
Complete output from command /Users/marcel/Librar...bugger/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools:
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Best match: setuptools 33.1.1
Downloading https://pypi.python.org/packages/dc/8c/7c9869454bdc53e72fb87ace63eac39336879eef6f2bf96e946edbf03e90/setuptools-33.1.1.zip#md5=7963d41d97b94e450e3f8a217be06ffe
Processing setuptools-33.1.1.zip
Running setuptools-33.1.1/setup.py -q bdist_egg --dist-dir /var/folders/mk/m88t169s3kd9pqw735_2wd7r0000gp/T/easy_install-GW0gfl/setuptools-33.1.1/egg-dist-tmp-8BN1Ev
/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'src_root'
warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 279, in <module>
File "<string>", line 214, in main
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/Users/marcel/Downloads/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/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
File "setup.py", line 181, in <module>
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 264, in __init__
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 297, in finalize_options
File "/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1959, in load
ImportError: <module 'setuptools.dist' from '/Users/marcel/Downloads/setuptools-0.6c11-py2.7.egg/setuptools/dist.py'> has no 'check_specifier' attribute
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
File "<stdin>", line 2462, in <module>
File "<stdin>", line 944, in main
File "<stdin>", line 1054, in create_environment
File "<stdin>", line 600, in install_setuptools
File "<stdin>", line 572, in _install_req
File "<stdin>", line 1022, in call_subprocess
OSError: Command /Users/marcel/Librar...bugger/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools failed with error code 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ponydIssues affecting the `ponyd` python serverIssues affecting the `ponyd` python server
Activity
[-]bootstrap-ponyd.py is failing at `setuptools` install[/-][+]bootstrap-ponyd.py fails at `setuptools` install[/+][-]bootstrap-ponyd.py fails at `setuptools` install[/-][+]bootstrap-ponyd.py fails at setuptools install[/+]ebaujard commentedon Feb 7, 2017
I encounter the same issue.
ProductName: Mac OS X
ProductVersion: 10.12.3
Python: 2.7.10
nextgeniuspro commentedon Feb 10, 2017
Installation of ponyd is a mess, I've fixed it with next steps:
curl -O https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.pysubprocess.check_call([join(home_dir, 'bin', 'python'), join('pybonjour', 'setup.py'), 'install'])ex.:
cat ./bootstrap-ponyd.py | python - --never-download --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebuggerponyd update-devtoolsrcorrie commentedon Feb 14, 2017
@yevgeniy-logachev tried your solution, but I get this error on step 7
nextgeniuspro commentedon Feb 14, 2017
@rcorrie, I found issue and fixed some steps above. Please remove content of your ~/Library/PonyDebugger/ direcory and try all these steps again
zettlunic commentedon Feb 16, 2017
@yevgeniy-logachev thank you, I will give it a shot today.
CoderZbf commentedon Mar 6, 2017
@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
roblav96 commentedon Apr 18, 2017
@yevgeniy-logachev Your solution works great =]
diegomazzone commentedon Jun 23, 2017
@yevgeniy-logachev you made my day!
rivalnhwc commentedon Aug 28, 2017
@yevgeniy-logachev thank you!
gentoo-pl commentedon Oct 31, 2017
I still have problem with installation. I tried with @yevgeniy-logachev instructions, but have problem with 6th step. Only pybonjour have successfully installed.
I tried instruction from here #188 (comment)
but after install and start ponyd server I always have 404 status code.
firstim commentedon Nov 7, 2017
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
nextgeniuspro commentedon Nov 17, 2017
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_abccmd$
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/certifi -U certificmd$
~/Library/PonyDebugger/bin/easy_install --find-links https://pypi.python.org/simple/six/ -U sixcmd$
sudo ~/Library/PonyDebugger/bin/easy_install -U pybonjourmethodiva commentedon Nov 19, 2017
For others coming here, I encountered this when I did
ponyd update-devtoolsin the end:which i fixed by doing
and then running
ponyd update-devtoolsagainfirstim commentedon Nov 19, 2017
@methodiva that is awesome.
bluekurk commentedon Aug 31, 2018
@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.gzcurl -O -L https://pypi.python.org/packages/25/5d/cc55d39ac39383dd6e04ae80501b9af3cc455be64740ad68a4e12ec81b00/setuptools-0.6c11-py2.7.eggstep 3: remove "cloud" subdomain
curl -O -L https://github.com/downloads/square/PonyDebugger/bootstrap-ponyd.pyand, thanks for your info.
jbarros35 commentedon Dec 13, 2019
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: cloud.github.com
deependrag commentedon Mar 5, 2020
@yevgeniy-logachev
I encountered this when I did
ponyd update-devtoolsin the endTraceback (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