Attempt to branch lp URL returns "Bazaar repository format 2a (needs bzr 1.16 or later)"

Bug #505007 reported by Eric Hammond
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
bzr (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Binary package hint: bzr

Running on Ubuntu 9.04 Jaunty with up to date bzr package (1.13.1-1)

This command

  bzr branch lp:~zulcss/ec2-init/ec2-init-config

generates the following output:

--------------------------------------------------------------------------------
bzr: ERROR: exceptions.KeyError: 'Bazaar repository format 2a (needs bzr 1.16 or later)\n'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1100, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1098, in sprout
    cloning_format = self.cloning_metadir(stacked)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 165, in cloning_metadir
    repo_name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/registry.py", line 255, in get
    r = Registry.get(self, format_string)
  File "/usr/lib/python2.6/dist-packages/bzrlib/registry.py", line 168, in get
    return self._dict[self._get_key_or_default(key)].get_obj()
KeyError: 'Bazaar repository format 2a (needs bzr 1.16 or later)\n'

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:~zulcss/ec2-init/ec2-init-config']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
--------------------------------------------------------------------------------

1. I think I should be allowed to look at Launchpad branches with Jaunty's bzr.

2. The stack dump is not a pleasant experience if "Bazaar repository format 2a (needs bzr 1.16 or later)" is the simple, real error.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia wl
Package: bzr 1.13.1-1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bzr
Uname: Linux 2.6.28-17-server i686

Revision history for this message
Eric Hammond (esh) wrote :
Revision history for this message
Eric Hammond (esh) wrote :

Didn't mean to assign to the project.

Changed in bzr:
status: New → Incomplete
status: Incomplete → Invalid
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 505007] Re: Attempt to branch lp URL returns "Bazaar repository format 2a (needs bzr 1.16 or later)"

fwiw a backport of 2.0.2 for jaunty is requested in bug 487429.

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

I am bitten by this bug too. There is no way you can use a LP across Ubuntu distributions. If it works with hardy, it doesn't work with karmic and vice versa. This is the error message I get:

bzr: ERROR: Unknown branch format: 'Bazaar Branch Format 7 (needs bzr 1.6)\n'

I've got the default hardy bzr package installed: bzr-1.3.1-1ubuntu0

Given that hardy is an LTS with still a while to go, I think this is very important to get fixed, so I ramp up the importance.

Changed in bzr (Ubuntu):
importance: Undecided → High
status: New → Confirmed
milestone: none → ubuntu-8.04.4
Revision history for this message
Martin Pool (mbp) wrote :

Morten, if you can help us get this into the backports that would be much appreciated. There should not be much special work needed other than rebuilding the karmic packages on hardy etc.

I'm going to mark this as a dupe of bug 302987 because the only sensible way to fix it is to do the backport.

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.