Skip to content

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

@ghost

Description

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.


Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions