[Pkg-bazaar-maint] Bug#637607: bzr-dbus: crashes if ‘gobject’ module not available, but package dependencies do not require it

Ben Finney ben+debian at benfinney.id.au
Fri Aug 12 23:12:33 UTC 2011


Package: bzr-dbus
Version: 0.1~bzr50-1
Severity: important

The dependencies for ‘bzr-dbus’ are:

=====
Depends: bzr (>= 1.0), python-dbus, python2.6 | python2.7, python (>= 2.6.6-7~), python (< 2.8)
Suggests: bzr-gtk, zeitgeist
=====

This system therefore has no ‘gobject’ module for Python:

=====
>>> import gobject
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gobject
=====

But the ‘bzr-dbus’ code crashes as though it depends on that module:

=====
Sat 2011-08-13 09:05:42 +1000
0.060  bazaar version: 2.3.1
0.060  bzr arguments: [u'commit', u'--message', u'Recent changes from package upgrades.']
0.109  looking for plugins in /root/.bazaar/plugins
0.109  looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.463  encoding stdout as sys.stdout encoding 'UTF-8'
0.478  opening working tree '/etc'
1.310  preparing to commit
[…]
3.769  Transferred: 0kB (0.0kB/s r:0kB w:0kB)
3.817  Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3241, in run
    exclude=tree.safe_relpath_files(exclude))
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 193, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 200, in commit
    *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 286, in commit
    possible_master_transports=possible_master_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 131, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 453, in _commit
    self.branch.set_last_revision_info(new_revno, self.rev_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2870, in set_last_revision_info
    self._run_post_change_branch_tip_hooks(old_revno, old_revid)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 1219, in _run_post_change_branch_tip_hooks
    hook(params)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus/hook.py", line 37, in on_post_change_branch_tip
    activity = get_activity()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus/hook.py", line 24, in get_activity
    import activity
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus/activity.py", line 29, in <module>
    import gobject
ImportError: No module named gobject

3.818  return code 3
=====

The package should either be changed not to depend on the ‘gobject’
module, or the package dependencies should declare that dependency.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.39-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-dbus depends on:
ii  bzr                           2.3.1-2    easy to use distributed version co
ii  python                        2.6.7-2    interactive high-level object-orie
ii  python-dbus                   0.84.0-1   simple interprocess messaging syst
ii  python2.6                     2.6.7-3    An interactive high-level object-o
ii  python2.7                     2.7.2-3    An interactive high-level object-o

bzr-dbus recommends no packages.

Versions of packages bzr-dbus suggests:
pn  bzr-gtk                       <none>     (no description available)
pn  zeitgeist                     <none>     (no description available)

-- no debconf information





More information about the Pkg-bazaar-maint mailing list