python-aptdaemon should depend on python-pkg-resources

Bug #788121 reported by Michael Filippov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptdaemon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: aptdaemon

if python-pkg-resources package is not installed aptd crashes when worker.py from python-aptdaemon_0.41+bzr646-0ubuntu2_all.deb tries to import pkg_resources module.

How to recreate in Ubuntu 11.04:
user@host:~$ sudo apt-get remove python-pkg-resources
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  python-pkg-resources
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 213 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 51936 files and directories currently installed.)
Removing python-pkg-resources ...
user@host:~$ sudo aptd
Traceback (most recent call last):
  File "/usr/sbin/aptd", line 25, in <module>
    import aptdaemon.core
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 67, in <module>
    from worker import AptWorker, DummyWorker
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 43, in <module>
    import pkg_resources
ImportError: No module named pkg_resources

Seems it was already fixed in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603662

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aptdaemon - 0.43+bzr686

---------------
aptdaemon (0.43+bzr686) oneiric; urgency=low

  * New bzr snapshot:
    - Improve apport integration by adding a package hook and only sending
      reports if running as a system service
    - Fix default values for ProgressDetails signal
    - Fixes to the test suite
    - More debugging output to help resolve DBus type conversion/overflow
      errors
  * debian/aptdaemon.install:
    - Ship apport package hook
    - Ship desktop file to provide a nicer name in apport dialogs
  * debian/control:
    - Add missing dependency on python-pkg-resources to python-aptdaemon
      (LP: #788121)
 -- Sebastian Heinlein <email address hidden> Fri, 26 Aug 2011 10:26:36 +0200

Changed in aptdaemon (Ubuntu):
status: New → Fix Released
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.