"TypeError: expected string or buffer" during bzr pull

Bug #569661 reported by Parth Malwankar
104
This bug affects 16 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Critical
Jelmer Vernooij
bzr-git (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij

Bug Description

This was on ubuntu 10.04 with bzr 2.1.1 bzr-git 0.4.3
I had this repo checked out for some time and tried updating it today.

[nqp-rx]% bzr pull
Using saved parent location: git://github.com/perl6/nqp-rx.git
bzr: ERROR: exceptions.TypeError: expected string or buffer

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    attaching the crash file
        /home/parthm/.cache/crash/bzr-20100425064505-2015.crash
    and including a description of the problem.

    The crash file is plain text and you can inspect or edit it to remove
    private information.
[nqp-rx]% bzr -Derror pull
Using saved parent location: git://github.com/perl6/nqp-rx.git
bzr: ERROR: exceptions.TypeError: expected string or buffer

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 993, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 169, in open
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 842, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1589, in get_transport
    transport, last_err = _try_transport_factories(base, factory_list)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1612, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/remote.py", line 91, in __init__
    (self._username, hostport) = urllib.splituser(hostport)
  File "/usr/lib/python2.6/urllib.py", line 1072, in splituser
    match = _userprog.match(host)
TypeError: expected string or buffer
[nqp-rx]% bzr plugins
bzrtools 2.1.0
    Various useful commands for working with bzr.

dbus 0.1.0dev
    D-Bus integration for bzr/bzrlib.

etckeeper
    Runs etckeeper pre-commit when necessary.

git 0.4.3
    A GIT branch and repository format implementation for bzr.

grep 0.2.0
    Print lines matching PATTERN for specified files and revisions.

hg 0.2.0dev
    Mercurial support for Bazaar.

launchpad 2.1.1
    Launchpad.net integration plugin for Bazaar.

netrc_credential_store 2.1.1
    Use ~/.netrc as a credential store for authentication.conf.

news_merge 2.1.1
    Merge hook for bzr's NEWS file.

plugin_info 1.3.0dev
    plugin-info is a bzr plugin for working with the bzr plugins.

search 1.7.0dev
    search is a bzr plugin for searching bzr content.

svn 1.0.2
    Support for Subversion branches

touch 1.1
    bzr touch

undelete 0.2.0
    Undelete the file(s) deleted using 'bzr rm'

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

This was fixed in trunk.

Changed in bzr-git:
status: New → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Matthias mentioned in one of the dupes of this bug that he has a PPA with a backport of 0.5.1-1 up at:

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

Changed in bzr-git (Ubuntu):
status: New → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Apologies, s/Matthias/Mathias/

Revision history for this message
Martin Pool (mbp) wrote :

This seems like a pretty hot bug; it would be good to get it into lucid, maverick, ppas, etc.

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

A fixed version should already be in maverick (0.5.1), but it'd be great to have the fix SRU'ed to lucid.

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

I'd be happy to prepare one but I don't know where the bug was fixed in bzr, and therefore do not have a patch to SRU.

Jelmer Vernooij (jelmer)
Changed in bzr-git (Ubuntu):
status: Confirmed → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-git:
importance: Undecided → Critical
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.