[Debian-med-packaging] Bug#639995: epigrass does not start on GNOME

Jakub Wilk jwilk at debian.org
Fri Sep 2 10:54:38 UTC 2011


clone 639995 -1
retitle -1 epigrass: missing dependency on python-pkg-resources
severity -1 important
submitter -1 !
reassign 639995 python-networkx 1.5-2
retitle 639995 python-networkx: spurious "setuptools" in requires.txt
severity 639995 serious
thanks

* Andreas Tille <andreas at an3as.eu>, 2011-09-02, 10:56:
>I received a bug report against epigrass which I can not reprodice. The 
>bug reported now provided more information which looks like a 
>missing dependency.  However, I might lack some experience with Python 
>modules. Any hint how to fix this:
>
>----- Forwarded message from melchiaros <melchiaros at aol.com> -----
>
>I´ve used GNOME console to startup epigrass and get:
>
> epigrass
>Traceback (most recent call last):
>  File "/usr/bin/epigrass", line 5, in <module>
>    from pkg_resources import load_entry_point
>  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2672,
>in <module>
>    working_set.require(__requires__)
>  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in
>require
>    needed = self.resolve(parse_requirements(requirements))
>  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in
>resolve
>    raise DistributionNotFound(req)
>pkg_resources.DistributionNotFound: distribute
>
>----- End forwarded message -----

I can reproduce the bug in a minimal chroot.

First of all, your package uses python-pkg-resources without depending 
on it (but that's not the cause of submitter's trouble, as other 
packages pull -pkg-resources into chroot).

The culprit is that one of your dependencies, python-networkx, declares 
that it needs "setuptools" (aka "distribute") in its requires.txt, but 
it doesn't depend on python-setuptools. As a result, importing it via 
pkg_resources fails:

$ python -c "import pkg_resources as p; p.require('networkx')"
Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require
      needed = self.resolve(parse_requirements(requirements))
    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve
      raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute

-- 
Jakub Wilk





More information about the Debian-med-packaging mailing list