[Distutils] PyPI CDN issues
Donald Stufft
donald at stufft.io
Wed May 29 12:34:39 CEST 2013
On May 29, 2013, at 6:18 AM, Maurits van Rees <m.van.rees at zestsoftware.nl> wrote:
> Op 29-05-13 11:47, Donald Stufft schreef:
>> There was an issue with a missing Vary: Accept-Encoding and gzip pages
>> getting cached and served even for non gzip enabled clients. I've fixed
>> this and purged the cache. See if this fixes your issue.
>
> I have problems on and off.
>
> I have created a virtualenv with python 2.7 and try to install zc.buildout.
>
> 1. easy_install first fails:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/easy_install 'zc.buildout<2dev'
> Searching for zc.buildout<2dev
> Reading http://pypi.python.org/simple/zc.buildout/
> No local packages or download links found for zc.buildout<2dev
> error: Could not find suitable distribution for Requirement.parse('zc.buildout<2dev')
>
> 2. Pip now works:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/pip install 'zc.buildout<2dev'
> Downloading/unpacking zc.buildout<2dev
> Downloading zc.buildout-1.7.1.tar.gz (288kB): 288kB downloaded
> Running setup.py egg_info for package zc.buildout
>
> Requirement already satisfied (use --upgrade to upgrade): distribute in ./lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg (from zc.buildout<2dev)
> Installing collected packages: zc.buildout
> Running setup.py install for zc.buildout
>
> Skipping installation of /Users/mauritsvanrees/community/Products.Poi/src/collective.watcherlist/foo/lib/python2.7/site-packages/zc/__init__.py (namespace package)
> Installing /Users/mauritsvanrees/community/Products.Poi/src/collective.watcherlist/foo/lib/python2.7/site-packages/zc.buildout-1.7.1-py2.7-nspkg.pth
> Installing buildout script to /Users/mauritsvanrees/community/Products.Poi/src/collective.watcherlist/foo/bin
> Successfully installed zc.buildout
> Cleaning up...
>
> 3. Uninstall it again:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/pip uninstall zc.buildout
> Uninstalling zc.buildout:
> ...
> Successfully uninstalled zc.buildout
>
> 4. Give easy_install another failed chance:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/easy_install 'zc.buildout<2dev'
> Searching for zc.buildout<2dev
> Reading http://pypi.python.org/simple/zc.buildout/
> No local packages or download links found for zc.buildout<2dev
> error: Could not find suitable distribution for Requirement.parse('zc.buildout<2dev')
> mauritsvanrees at procyon:foo (git:master?) $ bin/easy_install 'zc.buildout==1.7.1'
> Searching for zc.buildout==1.7.1
> Reading http://pypi.python.org/simple/zc.buildout/
> error: Connection reset by peer
>
> 5. easy_install explicitly 1.7.1, now it works:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/easy_install zc.buildout==1.7.1
> Searching for zc.buildout==1.7.1
> Reading http://pypi.python.org/simple/zc.buildout/
> Reading http://buildout.org
> Best match: zc.buildout 1.7.1
> ...
> Processing dependencies for zc.buildout==1.7.1
> Finished processing dependencies for zc.buildout==1.7.1
>
> 6. Uninstall it again:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/pip uninstall zc.buildout
> Uninstalling zc.buildout:
> /Users/mauritsvanrees/community/Products.Poi/src/collective.watcherlist/foo/bin/buildout
> /Users/mauritsvanrees/community/Products.Poi/src/collective.watcherlist/foo/lib/python2.7/site-packages/zc.buildout-1.7.1-py2.7.egg
> Proceed (y/n)? y
> Successfully uninstalled zc.buildout
>
> 6. easy_install the same 1.7.1 again, now it fails:
>
> mauritsvanrees at procyon:foo (git:master?) $ bin/easy_install zc.buildout==1.7.1
> Searching for zc.buildout==1.7.1
> Reading http://pypi.python.org/simple/zc.buildout/
> No local packages or download links found for zc.buildout==1.7.1
> error: Could not find suitable distribution for Requirement.parse('zc.buildout==1.7.1')
>
> So: looks random to me.
>
> pip seems to do it good consistently, but that may be luck.
>
>
> Bootstrapping a buildout also fails, which is why I investigated:
>
Since My last email or prior to that?
I'm in the car on the way to my daughters surgery at CHOP so I don't know how much I'll be able to look today.
> $ curl -O http://downloads.buildout.org/1/bootstrap.py
> $ python2.7 bootstrap.py
> No local packages or download links found for zc.buildout<2dev
> error: Could not find suitable distribution for Requirement.parse('zc.buildout<2dev')
> An error occurred when trying to install zc.buildout. Look above this message for any errors that were output by easy_install.
>
> Same with latest version:
>
> $ curl -O http://downloads.buildout.org/2/bootstrap.py
> $ python2.7 bootstrap.py
> No local packages or download links found for zc.buildout
> error: Could not find suitable distribution for Requirement.parse('zc.buildout')
> Traceback (most recent call last):
> File "bootstrap.py", line 148, in <module>
> repr(cmd)[1:-1])
> Exception: ('Failed to execute command:\n%s', "'/Users/mauritsvanrees/py/bin/python2.7', '-c', 'from setuptools.command.easy_install import main; main()', '-mZqNxd', '/var/folders/b3/4fkrg4_17ms0pwmwh0xy41_w0000gn/T/tmpSgaQlF', 'zc.buildout'")
>
> If you do 'python2.7 bootstrap.py -h' you will see some ways around this by pointing to a different download location.
>
> --
> Maurits van Rees: http://maurits.vanrees.org/
> Zest Software: http://zestsoftware.nl
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
More information about the Distutils-SIG
mailing list