Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setuptools 32.1.1 brakes when bootstrapping with buildout #893

Closed
papachoco opened this issue Dec 18, 2016 · 8 comments
Closed

setuptools 32.1.1 brakes when bootstrapping with buildout #893

papachoco opened this issue Dec 18, 2016 · 8 comments

Comments

@papachoco
Copy link

papachoco commented Dec 18, 2016

Hello,

I am getting the error below while bootstrapping with zc.buildout (zc.buildout-2.5.3). setuptools-32.1.0 works fine

Thanks

Carlos

Downloading https://pypi.io/packages/source/s/setuptools/setuptools-32.1.1.zip
Extracting in /tmp/tmpiaJsLJ
Traceback (most recent call last):
  File "./bootstrap.py", line 117, in <module>
    ez['use_setuptools'](**setup_args)
  File "<string>", line 179, in use_setuptools
  File "<string>", line 130, in _do_download
  File "<string>", line 70, in _build_egg
  File "/home/ntiuser/.local/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "<string>", line 109, in archive_context
  File "<string>", line 93, in __new__
  File "/home/ntiuser/.local/lib/python2.7/zipfile.py", line 756, in __init__
    self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: '/tmp/bootstrap-sdYL4z/setuptools-32.1.1.zip'
@myw
Copy link

myw commented Dec 18, 2016

this also breaks the bootstrap scripts on bootstrap.pypa.io, and, presumably, everyone and their mother's python Docker image builds. ಠ_ಠ

@eliaskousk
Copy link

Latest version 32.1.1 doesn't have a .zip archive to download (only tar.gz) and thus the ez_zetup.py fails to download the file. As @myw says this is serious and everything that relies on this is now broken.

@jaraco
Copy link
Member

jaraco commented Dec 18, 2016

Oh joy. I guess that's what I get for trusting the robots.

@jaraco
Copy link
Member

jaraco commented Dec 18, 2016

It appears to be a regression in pypi itself. It now only allows one sdist per release:

Uploading distributions to https://upload.pypi.org/legacy/

Uploading setuptools-32.1.1-py2.py3-none-any.whl

[================================] 492690/492690 - 00:00:02

Uploading setuptools-32.1.1.tar.gz

[================================] 671841/671841 - 00:00:02

Uploading setuptools-32.1.1.zip

[================================] 725633/725633 - 00:00:00

HTTPError: 400 Client Error: Only one sdist may be uploaded per release. for url: https://upload.pypi.org/legacy/

@jaraco
Copy link
Member

jaraco commented Dec 18, 2016

New release v32.1.2 drops tarball sdist, so should fix this issue.

@eliaskousk
Copy link

Thank you for the quick fix, everything seems fine now.

@papachoco
Copy link
Author

papachoco commented Dec 19, 2016

Sadly pypi still reports 32.1.1

(nti.dataserver) hnic:nti.dataserver csanchez$ easy_install-2.7 -U setuptools
Searching for setuptools
Reading https://pypi.python.org/simple/setuptools/
Best match: setuptools 32.1.1
Processing setuptools-32.1.1-py2.7.egg
setuptools 32.1.1 is already the active version in easy-install.pth
Installing easy_install script to /Users/csanchez/VirtualEnvs/nti.dataserver/bin
Installing easy_install-2.7 script to /Users/csanchez/VirtualEnvs/nti.dataserver/bin

Using /Users/csanchez/VirtualEnvs/nti.dataserver/lib/python2.7/site-packages/setuptools-32.1.1-py2.7.egg
Processing dependencies for setuptools
Finished processing dependencies for setuptools
(nti.dataserver) hnic:nti.dataserver csanchez$

@jaraco
Copy link
Member

jaraco commented Dec 19, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants