LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   bzr / precise - how to override plugins path for an alternate installation of bzr? (http://www.linuxquestions.org/questions/linux-software-2/bzr-precise-how-to-override-plugins-path-for-an-alternate-installation-of-bzr-944079/)

eantoranz 05-09-2012 10:47 AM

bzr / precise - how to override plugins path for an alternate installation of bzr?
 
Hi!

I'm having a problem with bzr as comming from ubuntu (I already reported the bug https://bugs.launchpad.net/ubuntu/+s...vn/+bug/996747). I want to give a try with an older version of bzr (2.4.2) that I installed from scratch. Now, I've been able to make this bzr see the right version of bzrlib by setting PYTHONPATH:

Code:

$ echo $PYTHONPATH
/usr/local/bzr/lib/python2.7/site-packages/

Now the next problem is that when I ask for the plugins (I haven't installed any on this alternate bzr), I see the ones of 2.5.0:

Code:

$ /usr/local/bzr/bin/bzr plugins
cannot import name BzrFormat
bash_completion 2.4.2
  Generate a shell function for bash command line completion.

bzrtools 2.5.0
  Various useful commands for working with bzr.

changelog_merge 2.4.2
  Merge hook for GNU-format ChangeLog files

git (failed to load)
  ** Unable to load plugin 'git'. It requested API version (2, 5, 0) of module <module 'bzrlib' from '/usr/local/bzr/lib/python2.7/site-packages/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 2)

launchpad 2.4.2
  Launchpad.net integration plugin for Bazaar.

netrc_credential_store 2.4.2
  Use ~/.netrc as a credential store for authentication.conf.

news_merge 2.4.2
  Merge hook for bzr's NEWS file.

po_merge 2.4.2
  Merge hook for ``.po`` files.

qbzr 0.22.2
  QBzr - Qt-based frontend for Bazaar

rewrite (failed to load)
  ** Unable to load plugin 'rewrite' from '/usr/lib/python2.7/dist-packages/bzrlib/plugins'

svn (failed to load)
  ** Unable to load plugin 'svn'. It requested API version (2, 5, 0) of module <module 'bzrlib' from '/usr/local/bzr/lib/python2.7/site-packages/bzrlib/__init__.pyc'> but the minimum exported version is (2, 4, 0), and the maximum is (2, 4, 2)

weave_fmt 2.4.2
  Weave formats.

xmloutput 0.8.8
  This plugin adds an option (--xml) to log and provides an xml version of some builtin commands.

I saw around there that BZR_PLUGIN_PATH can be used to change this path:

Code:

$ echo $BZR_PLUGIN_PATH
/usr/local/bzr/lib/python2.7/site-packages/bzrlib/plugins

Even then I'm seeing the 2.5 plugins. What can I try next?


All times are GMT -5. The time now is 01:06 PM.