bzr branch crashes with "exceptions.TypeError: expected string or buffer" when cloning a git repository (needs upstream cherrypick/backport)

Bug #556968 reported by Luke Faraone
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Critical
Unassigned
bzr-git (Ubuntu)
Confirmed
High
Unassigned

Bug Description

After installing bzr-git, running any of these commands causes an error almost instantly.
    bzr branch git://github.com/PromyLOPh/pianobar.git
    bzr branch git://git.sv.gnu.org/otpasswd.git

...
exceptions.TypeError: expected string or buffer

This is fixed in 0.5.0, debs for that and python-dulwich from Debian will provide a workaround for users. Waiting on a / need to create a cherrypick to fix this for lucid (as its totally naffed in Lucid otherwise). The root cause was a behavioral change in urllib in a minor python release :(

Revision history for this message
Luke Faraone (lfaraone) wrote :
Revision history for this message
LaserJock (laserjock) wrote :

I ran into this as well. This is bzr and bzr-git from Lucid and it seems to happen when trying to branch from any git:// URL.

Luke Faraone (lfaraone)
Changed in bzr-git (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

This is fixed in 0.5.0 but Jelmer says that that is too much for a SRU so we need to backport just the fix. Thus a confirmed rather than fixed release status in bzr-git.

Changed in bzr-git:
status: New → Confirmed
importance: Undecided → Critical
summary: bzr branch crashes with "exceptions.TypeError: expected string or
- buffer" when cloning a git repository
+ buffer" when cloning a git repository (needs upstream
+ cherrypick/backport)
description: updated
Mathias Gug (mathiaz)
Changed in bzr-git (Ubuntu):
importance: Undecided → High
Revision history for this message
Mathias Gug (mathiaz) wrote :

FYI I've created a PPA with a backport of bzr-git 0.5.1-1 (which fixes this bug):

https://launchpad.net/~mathiaz/+archive/bzr-git/

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

This bug was already fixed upstream, just not in Ubuntu yet.

Changed in bzr-git:
status: Confirmed → 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.