Problem running Trac 0.12 with TracBzr 0.4 plugin on OS X 10.6
Alexander Belchenko
bialix at ukr.net
Wed Aug 11 14:12:06 BST 2010
Brendan Simon (eTRIX) пишет:
> I'm having problems running Trac 0.12 with TracBzr 0.4 plugin on OS X
> 10.6.
> The log file shows:
>
> 2010-08-11 22:26:05,662 Trac[loader] ERROR: Skipping "bzr =
> tracbzr.backend": (can't import "ImportError: No module named bzrlib")
>
> bzr is installed as /usr/local/bin/bzr
>
> It seems that Trac can not find the bzrlib module to import.
> Where would I find this ??
run `bzr version` and check output, it will point you to the right
directory with bzrlib. Also check the Python version used by bzr.
> Where does the OS X Bazaar (2.1.2) installer put the bzrlib module (if
> anywhere) ??
>
> I thought it might be in
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.5/site-packages/
> but that does not appear to be the case.
>
> Interestingly there is a
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/plugins/
> directory, but they may be a hangover from an older version of bzr I
> installed on my older 10.5 OS X box before I upgraded and migrated data ??
>
> Do I have to specify some path in the trac.ini file so that Trac can
> find bzrlib ??
You should ensure your Trac installation runs the same Python version as
bzr, and if needed you can add path to the directory where bzrlib
located to PYTHONPATH environment variable. Then check with command:
python -c "import bzrlib; print bzrlib"
HTH
>
> Thanks,
> Brendan.
>
More information about the bazaar
mailing list