bzr Python script behaviour

Martin Pool mbp at canonical.com
Sat May 15 07:10:01 BST 2010


On 14 May 2010 20:20, Russel Winder <russel at russel.org.uk> wrote:
> Using the bzr command directly from a bzr.dev branch, I am getting all
> the appearance of the script recursively calling a bzr command.  In
> particular I have a script bzr in a bin directory which appears early in
> the PATH and it is getting called:
>
> |> /home/Checkouts/Bazaar/Bazaar/Mainline_Working/bzr update
> Unable to load plugin 'svn'. It requested API version (2, 1, 0) of module <module 'bzrlib' from '/home/Checkouts/Bazaar/Bazaar/Mainline_Working/bzrlib/__init__.pyc'> but the minimum exported version is (2, 2, 0), and the maximum is (2, 2, 0)
> Unable to load plugin 'git'. It requested API version (2, 1, 0) of module <module 'bzrlib' from '/home/Checkouts/Bazaar/Bazaar/Mainline_Working/bzrlib/__init__.pyc'> but the minimum exported version is (2, 2, 0), and the maximum is (2, 2, 0)
> Unable to load plugin 'rebase'. It requested API version (2, 1, 0) of module <module 'bzrlib' from '/home/Checkouts/Bazaar/Bazaar/Mainline_Working/bzrlib/__init__.pyc'> but the minimum exported version is (2, 2, 0), and the maximum is (2, 2, 0)
> Unable to load plugin 'gtk'. It requested API version (2, 1, 0) of module <module 'bzrlib' from '/home/Checkouts/Bazaar/Bazaar/Mainline_Working/bzrlib/__init__.pyc'> but the minimum exported version is (2, 2, 0), and the maximum is (2, 2, 0)
> bash: /home/users/russel/bin/bzr: Permission denied
> bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.
> |>
>
> So this implies that a non-superuser, non-me user is trying to execute a
> script simply because it is called bzr and is early in my PATH.
>
> I'm afraid my reaction is very much:  que

It looks like update is trying to connect to a bzr+ssh server, which
implies starting bzr on the remote end, where you have a
non-executable bzr script.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list