Issue #157 resolved

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

Anton Talevnin
created an issue

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.

Comments (6)

  1. Log in to comment