bzr-svn tests won't run

Jelmer Vernooij jelmer at samba.org
Tue Jun 19 22:50:53 BST 2007


Hi Sabin,

On Tue, 2007-06-19 at 22:05 +0300, Sabin Iacob wrote:
> when attempting to run tests for bzr-svn I get
> 
> Unable to test plugin "svn": cannot import name create_cache_dir
> 
> looks like my python installation won't resolve the "cache" module while 
> running tests unless it's fully qualified (bzrlib.plugins.svn.cache);
> 
> sys.path looks like
> 
> ['', '/usr/lib/python2.4/site-packages/python_wireless-0.3-py2.4.egg', 
> '/usr/lib/portage/pym', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
> '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
> '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', 
> '/usr/lib/python2.4/site-packages/Numeric', 
> '/usr/lib/python2.4/site-packages/PIL', 
> '/usr/lib/python2.4/site-packages/gtk-2.0']
> 
> is it missing something? or is it a python 2.4 "feature" (AFAIK python 
> -m can't resolve module names that aren't top level un 2.4; is this 
> situation similar?)?
> 
> python 2.4.4, standard Gentoo setup
> 
> attaching a patch that works for me, just in case this is not a PEBKAC 
> situation
Not sure why this is a problem - it should definitely work with python
2.4. Maybe you have another python module that is named cache and is
resolved before the bzr-svn one? There are several other symbols in bzr
that are resolved this way.

Cheers,

Jelmer

-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/




More information about the bazaar mailing list