bzr: ERROR: exceptions.RuntimeError: maximum recursion depth exceeded checking out Launcher from Android

Bug #742833 reported by mathew on 2011-03-25
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
High
Jelmer Vernooij

Bug Description

$ bzr co git://android.git.kernel.org/platform/packages/apps/Launcher2.git launcher2
bzr: ERROR: exceptions.RuntimeError: maximum recursion depth exceeded

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1342, in run
    accelerator_tree, hardlink)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1428, in create_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1068, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 619, in pull
    overwrite)
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 150, in merge_to
    ignore_master=ignore_master)
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 150, in merge_to
    ignore_master=ignore_master)
[ lots of identical entries deleted ]
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 150, in merge_to
    ignore_master=ignore_master)
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 150, in merge_to
    ignore_master=ignore_master)
  File "/Users/meta/.bazaar/plugins/git/branch.py", line 144, in merge_to
    master = to_tags.branch.get_master_branch()
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 2694, in get_master_branch
    possible_transports=possible_transports)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 167, in open
    possible_transports=possible_transports)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 911, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 941, in open_from_transport
    redirected)
  File "/Library/Python/2.6/site-packages/bzrlib/transport/__init__.py", line 1657, in do_catching_redirections
    return action(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 928, in find_format
    transport, _server_formats=_server_formats)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 1949, in find_format
    return format.probe_transport(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/format.py", line 139, in probe_transport
    return prober.probe_transport(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/format.py", line 100, in probe_transport
    transport = get_svn_ra_transport(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/transport.py", line 178, in get_svn_ra_transport
    ra_transport = SvnRaTransport(svnbase, credentials=creds)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/errors.py", line 144, in convert
    return unbound(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/transport.py", line 389, in __init__
    self.connections = ConnectionPool(bzr_url)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/transport.py", line 310, in __init__
    self.auth_baton = create_auth_baton(url)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/auth.py", line 194, in create_auth_baton
    auth_config = SubversionAuthenticationConfig(scheme, host, port, path)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/auth.py", line 55, in __init__
    super(SubversionAuthenticationConfig, self).__init__(file)
  File "/Library/Python/2.6/site-packages/bzrlib/config.py", line 969, in __init__
    self._filename = authentication_config_filename()
  File "/Library/Python/2.6/site-packages/bzrlib/config.py", line 869, in authentication_config_filename
    return osutils.pathjoin(config_dir(), 'authentication.conf')
  File "/Library/Python/2.6/site-packages/bzrlib/config.py", line 836, in config_dir
    base = os.environ.get('BZR_HOME', None)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/UserDict.py", line 58, in get
    if key not in self:
RuntimeError: maximum recursion depth exceeded

bzr 2.2.2 on python 2.6.1 (Darwin-10.7.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'co', 'git://android.git.kernel.org/platform/packages/apps/Launcher2.git', 'launcher2']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /Library/Python/2.6/site-packages/bzrlib/plugins/bash_completion [2.2.2]
  bzrtools /Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [2.2.0]
  colo /Library/Python/2.6/site-packages/bzrlib/plugins/colo [0.1.0]
  email /Library/Python/2.6/site-packages/bzrlib/plugins/email [unknown]
  explorer /Library/Python/2.6/site-packages/bzrlib/plugins/explorer [1.1.2]
  extmerge /Library/Python/2.6/site-packages/bzrlib/plugins/extmerge [unknown]
  fastimport /Library/Python/2.6/site-packages/bzrlib/plugins/fastimport [0.9.0dev]
  git /Users/meta/.bazaar/plugins/git [0.5.4]
  keychain /Library/Python/2.6/site-packages/bzrlib/plugins/keychain [0.1.0]
  launchpad /Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [2.2.2]
  loom /Library/Python/2.6/site-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
  news_merge /Library/Python/2.6/site-packages/bzrlib/plugins/news_merge [2.2.2]
  pipeline /Library/Python/2.6/site-packages/bzrlib/plugins/pipeline [unknown]
  qbzr /Library/Python/2.6/site-packages/bzrlib/plugins/qbzr [0.19.3]
  rewrite /Library/Python/2.6/site-packages/bzrlib/plugins/rewrite [0.6.0]
  svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.4]
  upload /Library/Python/2.6/site-packages/bzrlib/plugins/upload [1.0.0dev]
  xmloutput /Library/Python/2.6/site-packages/bzrlib/plugins/xmloutput [0.8.6]

*** 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
    including this traceback and a description of the problem.
$ bzr --version
Bazaar (bzr) 2.2.2
  Python interpreter: /usr/bin/python 2.6.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
  Platform: Darwin-10.7.0-i386-64bit
  bzrlib: /Library/Python/2.6/site-packages/bzrlib

Using bzr-git 0.5.4 and dulwich 0.7.0.

Related branches

Jelmer Vernooij (jelmer) wrote :

There is a fix for this in trunk. Alternatively, you can use "bzr branch" rather than "bzr co".

Changed in bzr-git:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 0.6.0
mathew (meta23) wrote :

Hmm. I tried using trunk, which required that I update bzrlib to version (2,4,0) or higher; so I upgraded bzr to 2.3.1 using the downloads from http://wiki.bazaar.canonical.com/MacOSXDownloads

Now I get a failed import:

 bzr co git://android.git.kernel.org/platform/packages/apps/Launcher2.git launcher2
bzr: ERROR: exceptions.ImportError: cannot import name ZERO_SHA

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1302, in run
    branch_location)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 807, in open_tree_or_branch
    return bzrdir._get_tree_branch()
  File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 559, in _get_tree_branch
    branch = self.open_branch(name=name)
  File "/Users/meta/.bazaar/plugins/git/remote.py", line 223, in open_branch
    repo = self.open_repository()
  File "/Users/meta/.bazaar/plugins/git/remote.py", line 220, in open_repository
    return RemoteGitRepository(self, self._lockfiles)
  File "/Users/meta/.bazaar/plugins/git/remote.py", line 307, in __init__
    GitRepository.__init__(self, gitdir, lockfiles)
  File "/Users/meta/.bazaar/plugins/git/repository.py", line 64, in __init__
    from bzrlib.plugins.git import fetch, push
  File "/Users/meta/.bazaar/plugins/git/fetch.py", line 23, in <module>
    from dulwich.object_store import (
ImportError: cannot import name ZERO_SHA

Looks like that's a dulwich problem?

Jelmer Vernooij (jelmer) wrote :

You need a newer version of Dulwich (trunk, as well).

Jelmer Vernooij (jelmer) wrote :

I've updated the metadata so it'll error out if you don't have the right dulwich.

mathew (meta23) wrote :

Dulwich trunk installed, now I get bzr: ERROR: The remote server unexpectedly closed the connection.

Jelmer Vernooij (jelmer) on 2011-04-12
Changed in bzr-git:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers