Package: bzr-gtk
Version: 0.95.0+bzr635-1
Tags: patch

Nautilus (version 2.26.2-3) gives the following error message at startup
(in file ~/.xsession-errors):
-----
> Traceback (most recent call last):
> File "/usr/lib/nautilus/extensions-2.0/python/nautilus-bzr.py", line
22, in <module>
> from bzrlib.plugins.gtk import _i18n, cmd_gannotate, start_viz_window
> ImportError: cannot import name cmd_gannotate
-----

The bzr plugin to visualize revisions inside nautilus does not work.

The error can be corrected simply by editing nautilus-bzr.py 
(there is also other copy in /usr/share/pyshared/bzrlib/plugins/gtk/ )
to change import of cmd_gannotate and start_viz_window from
bzrlib.plugins.gtk.commands instead, as shown in the patch
file attached.
I tested it by editing a copy of nautilus-bzr.py placed in
~/.nautilus/python-extensions/ and then, after restarting nautilus, 
the plugin works.

I thing this bug report must be forwarded upstream.

Best regards,
Jose R.

------------
bzr-gtk dependencies:
bzr  1.13.1-1
python  2.5.4-2
python-central  0.6.11 
python-glade2  2.14.1-2
python-gtk2  2.14.1-2
python-notify  0.1.1-2+b1 

--- /usr/lib/nautilus/extensions-2.0/python/nautilus-bzr.py	2009-05-20 18:28:16.000000000 +0200
+++ nautilus-bzr.py	2009-06-07 02:20:43.000000000 +0200
@@ -19,7 +19,8 @@
 from bzrlib.plugin import load_plugins
 load_plugins()
 
-from bzrlib.plugins.gtk import _i18n, cmd_gannotate, start_viz_window
+from bzrlib.plugins.gtk import _i18n
+from bzrlib.plugins.gtk.commands import cmd_gannotate, start_viz_window
 
 print "Bazaar nautilus module initialized"
 

Reply via email to