easy_install crashed with ZipImportError in egg_distribution()

Bug #225027 reported by Germán Poo-Caamaño
6
Affects Status Importance Assigned to Milestone
python-setuptools (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: python-setuptools

It fails with the package hgsvn-0.1.5-py2.5.egg available at http://pypi.python.org/packages/2.5/h/hgsvn/

gpoo@calcifer:~$ file hgsvn-0.1.5-py2.5.egg
hgsvn-0.1.5-py2.5.egg: Zip archive data, at least v2.0 to extract
gpoo@calcifer:~$ unzip -t hgsvn*egg
Archive: hgsvn-0.1.5-py2.5.egg
    testing: EGG-INFO/zip-safe OK
    testing: EGG-INFO/SOURCES.txt OK
    testing: EGG-INFO/top_level.txt OK
    testing: EGG-INFO/entry_points.txt OK
    testing: EGG-INFO/PKG-INFO OK
    testing: EGG-INFO/dependency_links.txt OK
    testing: hgsvn/common.py OK
    testing: hgsvn/svnclient.pyc OK
    testing: hgsvn/__init__.pyc OK
    testing: hgsvn/__init__.pyo OK
    testing: hgsvn/svnclient.py OK
    testing: hgsvn/svnclient.pyo OK
    testing: hgsvn/errors.pyc OK
    testing: hgsvn/errors.pyo OK
    testing: hgsvn/common.pyc OK
    testing: hgsvn/errors.py OK
    testing: hgsvn/__init__.py OK
    testing: hgsvn/common.pyo OK
    testing: hgsvn/run/hgimportsvn.py OK
    testing: hgsvn/run/common.py OK
    testing: hgsvn/run/hgimportsvn.pyo OK
    testing: hgsvn/run/hgimportsvn.pyc OK
    testing: hgsvn/run/__init__.pyc OK
    testing: hgsvn/run/__init__.pyo OK
    testing: hgsvn/run/hgpullsvn.pyc OK
    testing: hgsvn/run/hgpullsvn.py OK
    testing: hgsvn/run/common.pyc OK
    testing: hgsvn/run/__init__.py OK
    testing: hgsvn/run/hgpullsvn.pyo OK
    testing: hgsvn/run/common.pyo OK
    testing: hgsvn/unittests/test_common.pyo OK
    testing: hgsvn/unittests/test_common.py OK
    testing: hgsvn/unittests/__init__.pyc OK
    testing: hgsvn/unittests/__init__.pyo OK
    testing: hgsvn/unittests/test_common.pyc OK
    testing: hgsvn/unittests/test_svnclient.py OK
    testing: hgsvn/unittests/_test.py OK
    testing: hgsvn/unittests/_test.pyo OK
    testing: hgsvn/unittests/test_svnclient.pyo OK
    testing: hgsvn/unittests/__init__.py OK
    testing: hgsvn/unittests/_test.pyc OK
    testing: hgsvn/unittests/test_svnclient.pyc OK
No errors detected in compressed data of hgsvn-0.1.5-py2.5.egg.

ProblemType: Crash
Architecture: i386
Date: Wed Apr 30 22:16:55 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/easy_install
InterpreterPath: /usr/bin/python2.5
Package: python-setuptools 0.6c8-0ubuntu2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/easy_install -n -d /home/username/lib/python hgsvn-0.1.5-py2.5.egg
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/username/bin:/home/username/code/bzr/postr.dev:/home/username/code/pgsql/settings/bin
 LC_COLLATE=C
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/easy_install', '-n', '-d', '/home/username/lib/python', 'hgsvn-0.1.5-py2.5.egg']
SourcePackage: python-setuptools
Title: easy_install crashed with ZipImportError in egg_distribution()
Uname: Linux 2.6.24-16-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse kvm lpadmin plugdev video

Tags: apport-crash
Revision history for this message
Germán Poo-Caamaño (gpoo) wrote :
Revision history for this message
Germán Poo-Caamaño (gpoo) wrote :

If I try:

gpoo@calcifer:~$ easy_install -n -d /home/gpoo/lib/python hgsvn
Creating /home/gpoo/lib/python/site.py
Searching for hgsvn
Best match: hgsvn 0.1.4
Adding hgsvn 0.1.4 to easy-install.pth file
Installing hgimportsvn script to /home/gpoo/lib/python
Installing hgpullsvn script to /home/gpoo/lib/python

Using /home/gpoo/lib/python
Processing dependencies for hgsvn
Finished processing dependencies for hgsvn

However, If I try:
$ easy_install -n -d /home/gpoo/lib/python --upgrade hgsvn
Creating /home/gpoo/lib/python/site.py
Searching for hgsvn
Reading http://pypi.python.org/simple/hgsvn/
Best match: hgsvn 0.1.5
Downloading http://pypi.python.org/packages/2.5/h/hgsvn/hgsvn-0.1.5-py2.5.egg#md5=5fccc189bb3c06243a7aaaa89752e347
Processing hgsvn-0.1.5-py2.5.egg
Moving hgsvn-0.1.5-py2.5.egg to /home/gpoo/lib/python
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c8', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1671, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1659, in with_ei_usage
    return f()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1675, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 476, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 619, in install_eggs
    return [self.install_egg(dist_filename, tmpdir)]
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 696, in install_egg
    return self.egg_distribution(destination)
  File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 661, in egg_distribution
    metadata = EggMetadata(zipimport.zipimporter(egg_path))
zipimport.ZipImportError: not a Zip file

Revision history for this message
Matthias Klose (doko) wrote :

confimed with 0.6c9.

Changed in python-setuptools (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Zubin Mithra (zubin-mithra) wrote :

problem does not exist for ubuntu karmic, however.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.