bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n' branching from smart server

Bug #687226 reported by Jonathan Marsden
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Jelmer Vernooij

Bug Description

mkdir ocsng
cd ocsng
bzr branch lp:ocsinventory-unix-agent

gets me:

bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n'

BzrVersion: 2.1.1
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1194, in run
     from_location)
   File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 959, in open_tree_or_branch
     return bzrdir._get_tree_branch()
   File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 319, in _get_tree_branch
     return None, self.open_branch()
   File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 340, in open_branch
     setup_stacking=not ignore_fallbacks)
   File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2180, in __init__
     self.tags = self._format.make_tags(self)
   File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2094, in make_tags
     self._ensure_real()
   File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2019, in _ensure_real
     self._network_name)
   File "/usr/lib/python2.6/dist-packages/bzrlib/registry.py", line 263, in get
     r = Registry.get(self, format_string)
   File "/usr/lib/python2.6/dist-packages/bzrlib/registry.py", line 173, in get
     return self._dict[self._get_key_or_default(key)].get_obj()
 KeyError: 'Bazaar-NG Loom branch format 6\n'

Tags: hpss

Related branches

Revision history for this message
Jonathan Marsden (jmarsden) wrote :
Revision history for this message
Andrew Bennetts (spiv) wrote :

The branch is in the loom format from the bzr-loom plugin. I helped the reporter on IRC, they've installed the plugin and all is well.

However, we should do better than an ugly KeyError here. Normally we give some sort of sensible error saying "unrecognised format" or something like that, we should do the same here.

description: updated
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Thanks to spiv on #bzr, it seems this bzr repository needs the bzr-loom plugin.

It seems sad that bzr crashes with a hard to decipher error message, when saying "please install the bzr-loom plugin" would have been a lot more useful.

Andrew Bennetts (spiv)
tags: added: hpss
summary: bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n'
+ branching from smart server
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 687226] Re: bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n'

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/8/2010 12:55 AM, Andrew Bennetts wrote:
> ** Tags added: hpss
>
> ** Summary changed:
>
> - bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n'
> + bzr: ERROR: exceptions.KeyError: 'Bazaar-NG Loom branch format 6\n' branching from smart server
>

Do we know what version of bzr? ISTR there was a regression at one point
where we raised KeyError, but we fixed it.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/7wsACgkQJdeBCYSNAANcHwCgqN6tFzPk+YfwYocXfET1UU4U
DrgAoKh785ylKP7mwV4CiLY+ZO0Gdp+U
=dV17
-----END PGP SIGNATURE-----

Revision history for this message
Andrew Bennetts (spiv) wrote :

2.1.1. There's nothing in the release notes for 2.1.x to suggest it has been fixed there, although perhaps it has been fixed in a later release series.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

On 12/8/2010 12:48 PM, John A Meinel wrote:

> Do we know what version of bzr? ISTR there was a regression at one
> point where we raised KeyError, but we fixed it.

As it says in the Description text for this bug, BzrVersion: 2.1.1

The output of

  dpkg-query -W bzr

is

  bzr 2.1.1-1

In case it helps, this is the Ubuntu-packaged version which is on my
Ubuntu 10.04 amd64 desktop machine, which is kept updated using apt-get
every few days. I have not manually installed bzr from source on this
machine at any time, so (unless something has gone *very* wrong!) this
is the "official" Ubuntu-provided package of bzr for Lucid. Running

  rmadison -s lucid,lucid-backports,lucid-updates,lucid-security bzr

outputs

       bzr | 2.1.1-1 | lucid | source, amd64, i386

which confirms that this is the Lucid version, not updated.

So, if this was already fixed, the fix apparently didn't make it into
the Ubuntu packages for Lucid. Perhaps a suitably fixed version could
be guided towards lucid-backports?

Jonathan

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

@Jonathan: Using https://launchpad.net/~bzr/+archive/ppa will allow you to upgrade to our latest stable release (2.2.2) even for lucid.

Getting lucid-backports updated will take far longer (and will get you only 2.1.3 and may be even 2.1.2 given that bug #528041 has still not make it to lucid-updates).

Can you check that the issue is solved in 2.2.2 ?

Jelmer Vernooij (jelmer)
Changed in bzr:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → In Progress
Jelmer Vernooij (jelmer)
Changed in bzr:
milestone: none → 2.5b4
status: In Progress → 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.