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

An error appears if you run ez_setup.py from command line #157

Closed
bb-migration opened this Issue Mar 6, 2014 · 3 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Mar 6, 2014

Originally reported by: talantr (Bitbucket: talantr, GitHub: talantr)


OS: CentOS 6.5/Debian 6.0.7;
Python: 2.6.6;
Setuptools 3.x;

Steps to reproduce:

Run the command from command line:

    curl -s https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo python

Actual result:

The console output:

    Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-3.0.zip
    Extracting in /tmp/tmpAKOE46

    Traceback (most recent call last):
      File "<stdin>", line 312, in <module>
      File "<stdin>", line 309, in main
      File "<stdin>", line 46, in _install
      File "/usr/lib64/python2.6/contextlib.py", line 16, in __enter__
        return self.gen.next()
      File "<stdin>", line 75, in archive_context
    AttributeError: ZipFile instance has no attribute '__exit__'

The package has not been installed.


@bb-migration

This comment has been minimized.

bb-migration commented Mar 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


I get the same error on Windows under Python 2.6.6.

@bb-migration

This comment has been minimized.

bb-migration commented Mar 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Restore support for Python 2.6 in bootstrap script. Fixes #157.

@bb-migration

This comment has been minimized.

bb-migration commented Mar 6, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


In order to prevent errors like this in the future, I've included an invocation of ez_setup.py in the continuous-integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment