bzr-svn not working with python 2.4

Gavin Carr gavin at openfusion.com.au
Wed Apr 8 03:05:03 BST 2009


Howdy,

Not sure if this is a known issue, but I couldn't find anything relevant
in the archives or via google.

Was just trying to get bzr-svn working on CentOS 5 with python 2.4,
and found that it's failing trying to import collections.defaultdict,
which only seems to have been added in python 2.5?

Is 2.5 now required for bzr-svn (in which case the bzr-svn page should 
probably be updated), or is this an oversight?

Cheers,
Gavin

P.S. Traceback:

nox$ bzr co http://code.sixapart.com/svn/djabberd/trunk
bzr: ERROR: exceptions.ImportError: cannot import name defaultdict                                       

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1165, in run
    accelerator_tree, source = bzrdir.BzrDir.open_tree_or_branch(
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 912, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 799, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 832, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1834, in open
    return self._open(transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 126, in _open
    from bzrlib.plugins.svn import remote
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/remote.py", line 38, in ?
    from bzrlib.plugins.svn.repository import SvnRepository
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/repository.py", line 18, in ?
    from collections import defaultdict
ImportError: cannot import name defaultdict

bzr 1.13.1 on python 2.4.3 (linux2)
arguments: ['/usr/bin/bzr', 'co', 'http://code.sixapart.com/svn/djabberd/trunk', 'svn']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bzrtools             /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.13]
  launchpad            /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.4/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  rebase               /usr/lib/python2.4/site-packages/bzrlib/plugins/rebase [0.4.2]
  svn                  /usr/lib/python2.4/site-packages/bzrlib/plugins/svn [0.5.3]
*** 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.





More information about the bazaar mailing list