On Mon, Sep 8, 2014 at 7:44 AM, Piotr Dobrogost <p...@lists-2014.dobrogost.net> wrote: > Jim, thanks for taking time to reply. > > On Sun, Sep 7, 2014 at 4:09 PM, Jim Fulton <j...@zope.com> wrote: >> >> Wow. That's really old and not really supported any more. >> >> It also uses very old and unsupported versions of setuptools. >> > (...) >> >> Buildout uses setuptools, which is what easy_install uses. (Buildout >> originally >> used easy_install more or less directly and still does in some narrow cases.) >> >> Please upgrade to buildout 2. > > Ok, I tried with current bootstrap.py from > http://downloads.buildout.org/2/bootstrap.py and got the same error. > This time when running bootstrap itself (not buildout): > > pdobrogost@host:~/projects/ > projectx/projectx_buildout$ python bootstrap.py > Downloading > https://pypi.python.org/packages/source/s/setuptools/setuptools-5.7.zip > Extracting in /tmp/tmpj6ZiDN > Now working in /tmp/tmpj6ZiDN/setuptools-5.7 > Building a Setuptools egg in /tmp/tmpF9r1g6 > /tmp/tmpF9r1g6/setuptools-5.7-py2.7.egg > Download error on https://pypi.python.org/simple/zc.buildout/: > hostname 'proxy.site.local' doesn't match either of > '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', > '*.snappytv.com', '*.atlassian.net', 'secure.lessthan3.com', > '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', > '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', > '*.theverge.com', '*.sbnation.com', '*.polygon.com', > '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', > 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', > '*.aticpan.org', 'stream.svc.7digital.net', > 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', > 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', > 'www.turn.com', 'rivergathering.org', > 'social.icfglobal2014-europe.org', '*.innogamescdn.com', > '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', > 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', > 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', > 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', > 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.pypa.io', > 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', > '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', > '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', > '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', > 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', > '*.fxcm.co.jp', 'listora.com', '*.listora.com', 'blendle.nl', > '*.blendle.nl', '*.modeanalytics.com', 'modeanalytics.com', > 'krux.com', '*.krux.com', '*.udemy.com', '*.1stdibs.com', > 'api.keep.com', 'www.piriform.com', '*.ustream.tv', 'www.zimbio.com', > 'm.zimbio.com', 'www.stylebistro.com', 'm.stylebistro.com', > 'm.lonny.com', 'www.lonny.com', 'assets.trabiancdn.com', > '*.socialchorus.com', '*.heritagestatic.com', '*.theoutbound.com', > 'img.rakuten.com', 'images.rakuten.com', 'img1.r10.io', 'ast1.r10.io', > 'scribd.com' -- Some packages may not be found! > Couldn't find index page for 'zc.buildout' (maybe misspelled?) > Download error on https://pypi.python.org/simple/: hostname > 'proxy.site.local' doesn't match either of '*.c.ssl.fastly.net', > 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', > '*.atlassian.net', 'secure.lessthan3.com', '*.atlassian.com', > 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', > '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', > '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', > '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', > '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', > 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', > 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', > 'www.turn.com', 'rivergathering.org', > 'social.icfglobal2014-europe.org', '*.innogamescdn.com', > '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', > 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', > 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', > 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', > 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.pypa.io', > 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', > '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', > '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', > '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', > 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', > '*.fxcm.co.jp', 'listora.com', '*.listora.com', 'blendle.nl', > '*.blendle.nl', '*.modeanalytics.com', 'modeanalytics.com', > 'krux.com', '*.krux.com', '*.udemy.com', '*.1stdibs.com', > 'api.keep.com', 'www.piriform.com', '*.ustream.tv', 'www.zimbio.com', > 'm.zimbio.com', 'www.stylebistro.com', 'm.stylebistro.com', > 'm.lonny.com', 'www.lonny.com', 'assets.trabiancdn.com', > '*.socialchorus.com', '*.heritagestatic.com', '*.theoutbound.com', > 'img.rakuten.com', 'images.rakuten.com', 'img1.r10.io', 'ast1.r10.io', > 'scribd.com' -- Some packages may not be found! > No local packages or download links found for zc.buildout==2.2.1 > error: Could not find suitable distribution for > Requirement.parse('zc.buildout==2.2.1') > Traceback (most recent call last): > File "bootstrap.py", line 161, in <module> > "Failed to execute command:\n%s" % repr(cmd)[1:-1]) > Exception: Failed to execute command: > '/opt/python/2.7/bin/python', '-c', 'from > setuptools.command.easy_install import main; main()', '-mZqNxd', > '/tmp/tmpF9r1g6', 'zc.buildout==2.2.1' > > This time however, there's a traceback and one can see it's > easy_install invocation that fails. > > I was going to run easy_install with the same options as bootstrap > passes (trying to repeat the error) but before this I upgraded > setuptools from 3.6 which I had to the current version 5.7. After this > easy_install run without problems: > > pdobrogost@host:~$ easy_install -mZNxd /tmp/1 zc.buildout==2.2.1 > Searching for zc.buildout==2.2.1 > Reading https://pypi.python.org/simple/zc.buildout/ > Best match: zc.buildout 2.2.1 > Downloading > https://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-2.2.1.tar.gz#md5=476a06eed08506925c700109119b6e41 > Processing zc.buildout-2.2.1.tar.gz > Writing /tmp/easy_install-wQGE2_/zc.buildout-2.2.1/setup.cfg > Running zc.buildout-2.2.1/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-wQGE2_/zc.buildout-2.2.1/egg-dist-tmp-7a53i0 > > Installed > /home/users/pdobrogost/.local/lib/python2.7/site-packages/zc.buildout-2.2.1-py2.7.egg > > Because this distribution was installed --multi-version, before you can > import modules from this package in an application, you will need to > 'import pkg_resources' and then use a 'require()' call similar to one of > these examples, in order to select the desired version: > > pkg_resources.require("zc.buildout") # latest installed version > pkg_resources.require("zc.buildout==2.2.1") # this exact version > pkg_resources.require("zc.buildout>=2.2.1") # this version or higher > > > (Curiously it installed buildout into my local site-packages instead > of folder which was passed to easy_install as the value of -d option – > /tmp/1). > > After this when I run bootstrap again the original problem was gone. > Out of curiosity I downgraded setuptools to version 3.6 which I had > originally installed and run bootstrap again. No problem this time. I > have no idea what happened as upgrading and downgrading setuptools > should not have any effect... > > Thank you for help.
This is why I *always* use a clean python built from source. I recommend people do the same, or use a virtualenv. Anyway, I'm glad you got past the problem. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig