ImportError in widgets.py
Bug #240328 reported by
Andrea Corbellini
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr-gedit |
Fix Released
|
Medium
|
Javier Derderyan |
Bug Description
With the latest release of bzr-gedit (0.5) the plugin can't be loaded because of an ImportError:
Traceback (most recent call last):
File "/home/
import widgets
File "/home/
from bzrlib.plugins.gtk import _i18n
ImportError: cannot import name _i18n
In fact _i18n doesn't exist in bzr (1.6b2). Instead there's gettext so this problem can be fixed in this way:
-from bzrlib.plugins.gtk import _i18n
+from bzrlib.plugins.gtk import gettext
+_i18n = gettext.gettext
description: | updated |
Changed in bzr-gedit: | |
assignee: | nobody → javierder |
status: | New → Confirmed |
Changed in bzr-gedit: | |
importance: | Undecided → Medium |
status: | Confirmed → Fix Committed |
Changed in bzr-gedit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for reporting this bug. I was able to reproduce this bug using Bazaar (bzr) 1.5 and bzr-gedit 0.5. The fix you suggested worked for me as well.
Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here.