package bzr
retitle 331330 bzr should install testsweet.py into PYTHONPATH
tags 331330 fixed-upstream
thanks

On Mon, Oct 03, 2005 at 10:57:19AM +1000, Anand Kumria said
> eve:[~]% sudo apt-get install bzr-doc bzr
> [...]
> Setting up bzr (0.0.7-2) ...
> Setting up bzr-doc (0.0.7-2) ...
> 
> eve:[~]% bzr selftest
> bzr: ERROR: No module named testsweet
>   at /usr/lib/python2.4/site-packages/bzrlib/selftest/__init__.py line
> 25, in ?()
>   see ~/.bzr.log for debug information
> 
> eve:[~]% cat ~/.bzr.log
> 
> this is a debug log for diagnosing/reporting problems in bzr
> you can delete or truncate this file, or include sections in
> bug reports to [EMAIL PROTECTED]
> 
> [ 4637] Mon 10:52:37.337 ERROR: No module named testsweet
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 654,
> in main
>     return run_bzr(argv[1:])
>   File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 643,
> in run_bzr
>     ret = cmd_obj.run_argv(argv)
>   File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 301,
> in run_argv
>     return self.run(**all_cmd_args)
>   File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1060,
> in run
>     from bzrlib.selftest import selftest
>   File "/usr/lib/python2.4/site-packages/bzrlib/selftest/__init__.py",
> line 25, in ?
>     from testsweet import run_suite
> ImportError: No module named testsweet
> 
> I have no idea if this is supposed to work (this is the first time I've
> even used bzr) but according to the README, 'bzr selftest' can be used
> to ensure everything is working.
> 
> So, from my perspective it appears to not be working.

It's supposed to work for bzr when it's in the source tree, and it does;
it doesn't work once it's installed because testsweet.py isn't put into
PYTHONPATH.  I talked Martin about it, and I think he'll be making sure
it's installed in the next release.

-rob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to