bzr diff fails with traceback and error 'module' object has no attribute 'get_application_name'

Bug #403430 reported by David I
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Fix Released
High
Vincent Ladeuil

Bug Description

I've just upgraded from bzr 1.15.1 to the following versions:

BZR_VERSION=bzr-1.17
BZR_GTK_VERSION=bzr-gtk-0.96.2
BZRTOOLS_VERSION=bzrtools-1.17.0
QBZR_VERSION=qbzr-0.12

 I ran bzr diff before and after and got the following error

bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'get_application_name'

Traceback (most recent call last):
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/commands.py", line 1045, in ignore_pipe
    result = func(*args, **kwargs)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/builtins.py", line 1908, in run
    apply_view=True)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/diff.py", line 333, in _get_trees_to_diff
    bzrdir.BzrDir.open_containing_tree_or_branch(old_url)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/bzrdir.py", line 965, in open_containing_tree_or_branch
    tree, branch = bzrdir._get_tree_branch()
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/bzrdir.py", line 934, in _get_tree_branch
    tree = self.open_workingtree()
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/bzrdir.py", line 1729, in open_workingtree
    return format.open(self, _found=True)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/workingtree.py", line 2983, in open
    wt = self._open(a_bzrdir, self._open_control_files(a_bzrdir))
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/workingtree_4.py", line 1451, in _open
    branch=a_bzrdir.open_branch(),
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/bzrdir.py", line 1712, in open_branch
    return format.open(self, _found=True, ignore_fallbacks=ignore_fallbacks)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 1757, in open
    ignore_fallbacks=ignore_fallbacks)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 2427, in __init__
    super(BzrBranch8, self).__init__(*args, **kwargs)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 2073, in __init__
    Branch.__init__(self)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 96, in __init__
    self._open_hook()
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 2423, in _open_hook
    self._activate_fallback_location(url)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 106, in _activate_fallback_location
    repo = self._get_fallback_repository(url)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/branch.py", line 211, in _get_fallback_repository
    possible_transports=[self.bzrdir.root_transport])
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/bzrdir.py", line 835, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/transport/__init__.py", line 1587, in get_transport
    transport, last_err = _try_transport_factories(base, factory_list)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/transport/__init__.py", line 1610, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/transport/remote.py", line 110, in __init__
    medium, credentials = self._build_medium()
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/transport/remote.py", line 516, in _build_medium
    user = auth.get_user('ssh', self._host, self._port)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/config.py", line 1156, in get_user
    path=path, realm=realm)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/config.py", line 1085, in get_credentials
    scheme, host, port, user, path, realm)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/config.py", line 1263, in get_fallback_credentials
    cs = self.get_credential_store(name)
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/config.py", line 1246, in get_credential_store
    cs = cs()
  File "/data/id/release/bzr/bzr_20090723/lib/python/bzrlib/plugins/gtk/keyring.py", line 34, in __init__
    if gobject.get_application_name() is None:
AttributeError: 'module' object has no attribute 'get_application_name'

bzr 1.17 on python 2.5.2 (linux2)
arguments: ['/data/id/release/bzr/current/bin/bzr', 'diff', '--using', 'meld', '-r', 'submit:']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  bzrtools /data/id/release/bzr/current/lib/python/bzrlib/plugins/bzrtools [1.17]
  gtk /data/id/release/bzr/current/lib/python/bzrlib/plugins/gtk [0.96.2.final]
  launchpad /data/id/release/bzr/current/lib/python/bzrlib/plugins/launchpad [1.17]
  netrc_credential_store /data/id/release/bzr/current/lib/python/bzrlib/plugins/netrc_credential_store [1.17]
  qbzr /data/id/release/bzr/current/lib/python/bzrlib/plugins/qbzr [0.12]

Tags: mysql

Related branches

Revision history for this message
David I (david-ingamells) wrote :

Of course with bzr1.15.1 the command worked.

Revision history for this message
David I (david-ingamells) wrote :

I've narrowed this crash down to bzr-gtk - it is only if I install this plugin that it crashes. With bzr, bzrtools and qbzr installed it works OK.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I think this might be an issue caused by running an older version of python-gobject. What version do you have installed?

Revision history for this message
David I (david-ingamells) wrote : Re: [Bug 403430] Re: bzr diff fails with traceback and error 'module' object has no attribute 'get_application_name'

2.14.2-0ubuntu2 - which is the latest version available on Ubuntu 8.04.

I don't have the -dev package installed.

Jelmer Vernooij wrote:
> I think this might be an issue caused by running an older version of
> python-gobject. What version do you have installed?
>
>

Revision history for this message
GuilhemBichot (guilhem-bichot) wrote :
Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → High
affects: bzr → bzr-gtk
tags: added: mysql
Revision history for this message
GuilhemBichot (guilhem-bichot) wrote :

two colleagues bitten by this... any progress?

Revision history for this message
John A Meinel (jameinel) wrote :

update your gobject version?

Revision history for this message
Vincent Ladeuil (vila) wrote :

I will have a fix available shortly, I've been able to reproduce the problem on hardy.

Changed in bzr-gtk:
assignee: nobody → Vincent Ladeuil (vila)
status: Triaged → In Progress
Vincent Ladeuil (vila)
Changed in bzr-gtk:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr-gtk:
milestone: none → 0.97.0
Vincent Ladeuil (vila)
Changed in bzr-gtk:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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