Public bug reported: Binary package hint: ibus-anthy
After some recent updates, anthy in ibus has stopped working. The other input methods still work. This is the error I get when trying to start anthy. dur...@tritium ~> ibus-daemon --verbose Traceback (most recent call last): File "/usr/share/ibus-anthy/engine/main.py", line 25, in <module> import ibus ImportError: No module named ibus (ibus-daemon:12803): IBUS-DEBUG: From ::1.1 to :1.2, Error: org.freedesktop.DBus.Error.Failed : Can not get value [panel->position] ... After a bit of investigating, I discovered that the ibus main.py file does not seem to have some essential python directories in it's path. I really have no idea why this has happened. In any case, this is what sys.path outputs from main.py: ['/usr/share/ibus-anthy/engine', '/usr/lib/python2.6/site-packages', '', '/usr/lib/python2.6/', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload'] And this is what sys.path looks like from an interactive python shell: ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist- packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6 /dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages'] As you can see, there are a huge number of paths missing. Other python applications seem to be working fine so I'm not entirely sure what the problem is here. I managed to fix this by manually adding the paths needed by ibus-anthy with the following line in main.py, just about the import ibus line: sys.path.extend(['/usr/lib/pymodules/python2.6/','/usr/lib/pymodules/python2.6/gtk-2.0/']) This seems to be working but it isn't a permanent solution. Is there a reason for this to happen in the first place? Thanks ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: ibus-anthy 1.2.0.20100115-1 [modified: usr/share/ibus-anthy/engine/main.py] ProcVersionSignature: Ubuntu 2.6.32-18.27-generic 2.6.32.10+drm33.1 Uname: Linux 2.6.32-18-generic x86_64 NonfreeKernelModules: wl nvidia Architecture: amd64 Date: Wed Mar 31 21:22:53 2010 EcryptfsInUse: Yes InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100127) ProcEnviron: LANGUAGE=en_GB:en PATH=(custom, user) LANG=en_GB.utf8 SHELL=/usr/bin/fish SourcePackage: ibus-anthy ** Affects: ibus-anthy (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug lucid python -- Ibus anthy plugin can't find ibus python module https://bugs.launchpad.net/bugs/552826 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs