| Summary: | app-i18n/ibus-anthy - Traceback (most recent call last): File "/usr/share/ibus-anthy/setup/main.py", line 28, in <module> from ibus import keysyms, modifier, Bus ImportError: No module named ibus | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pavel Volkov <ao> |
| Component: | [OLD] Library | Assignee: | CJK Team <cjk> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | galtgendo |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
ibus-setup screenshot
fix minor build system issues |
||
Created attachment 333960 [details]
ibus-setup screenshot
Which version of ibus is installed ? IIRC, ~app-i18n/ibus-anthy-1.2.7 is incompatible with >=app-i18n/ibus-1.4.99. - What version of ibus and ibus-anthy, are you using? - Did you try python-updater to get ibus built with proper python version? (In reply to comment #3) Seeing as the maintainer is listening, I'd like to note a few things: - for ibus 1.5.1, the commit that came just after release (https://github.com/ibus/ibus/commit/8ac534fc002356b93e2015a8866f1ea89e3895f9) is somewhat essential - perhaps it's just a local problem, but "Restart" from panel menu is plain broken: it results in input stuck to a single window (the one that was active when the function was selected) - ibus-anthy compatible with >=ibus-1.4.99 will need gnome2_icon_savelist and gnome2_icon_cache_update in correct places - that version also has an option for using introspection; something like '$(use_enable deprecated pygtk2-anthy)' sounds fine Created attachment 334016 [details, diff]
fix minor build system issues
...however for such simple solution to work, a short patch is necessary.
The first block of configure.ac is simply cause I could, but the other are important.
I use: app-i18n/ibus 1.4.99.20121006 app-i18n/ibus-anthy 1.2.7-r1 If I run python-updater, it suggests the following list to rebuild (and it remains the same every run): emerge -Dv1 --keep-going -p dev-java/java-config:2 dev-libs/boost:0 dev-python/dbus-python:0 dev-python/docutils:0 dev-python/httplib2:0 dev-python/logilab-common:0 dev-python/lxml:0 dev-python/markupsafe:0 dev-python/pygments:0 dev-python/pygobject:3 dev-python/pyxdg:0 dev-python/setuptools:0 dev-util/gdbus-codegen:0 (In reply to comment #6) Like I've said that version of ibus is incompatible with that version of ibus-anthy. As noted in the previous comments the bump is not quite trivial (though not that hard either). (In reply to comment #2) > Which version of ibus is installed ? > > IIRC, ~app-i18n/ibus-anthy-1.2.7 is incompatible with >=app-i18n/ibus-1.4.99. Confirmed. A hard block on >=app-i18n/ibus-1.4.99 in current versions of app-i18n/ibus-anthy would be welcome. Denis. You can fix the ImportError> No module named ibus by adding USE="deprecated" to the ibus useflags; the new ibus ebuild doesnt build the python library otherwise. Anthy does work with the python library present, although I still cant enable/disable it with c-space (but works with mouse) so there seem to be some issues? Might opt for downgrading ibus instead until whatever changes are happening there are sorted out. (In reply to comment #9) >=ibus-anthy 1.5.0 work without 'deprecated' set on on ibus that issue with ctrl-space or more exactly with being unable to access ibus-setup is exactly the one the mentioned commit fixes I'm a bit confused... Please fill another bug for another issue so I can handle them well. (In reply to comment #9) > You can fix the ImportError> No module named ibus by adding USE="deprecated" > to the ibus useflags; the new ibus ebuild doesnt build the python library > otherwise. Anthy does work with the python library present, although I still > cant enable/disable it with c-space (but works with mouse) so there seem to > be some issues? So the issue of this bug will be fixed by adding "ibus[deperecated]" to ibus-anthy's dependency (if ibus is >=1.4.99)? (In reply to comment #11) > I'm a bit confused... Please fill another bug for another issue so I can > handle them well. > > (In reply to comment #9) > > You can fix the ImportError> No module named ibus by adding USE="deprecated" > > to the ibus useflags; the new ibus ebuild doesnt build the python library > > otherwise. Anthy does work with the python library present, although I still > > cant enable/disable it with c-space (but works with mouse) so there seem to > > be some issues? > > So the issue of this bug will be fixed by adding "ibus[deperecated]" to > ibus-anthy's dependency (if ibus is >=1.4.99)? Not quite. The sanest solution I see is adding 'deprecated' flag to the new ibus-anthy too and making it a ibus[deprecated=] dep. This way if the flag is unset, neither will try to pull pygtk as neither will be using it then. BTW, I've opened an issue upstream with my patch from comment 5, but no feedback for the moment. I've added the block ">=ibus-1.4.99" to current versions of ibus-anthy. So this bug's issue should be solved. (In reply to comment #12) > > So the issue of this bug will be fixed by adding "ibus[deperecated]" to > > ibus-anthy's dependency (if ibus is >=1.4.99)? > > Not quite. > The sanest solution I see is adding 'deprecated' flag to the new ibus-anthy > too and making it a ibus[deprecated=] dep. This way if the flag is unset, > neither will try to pull pygtk as neither will be using it then. > BTW, I've opened an issue upstream with my patch from comment 5, but no > feedback for the moment. This should be done when we bumped to ibus-anthy-1.5.0. (In reply to comment #13) > I've added the block ">=ibus-1.4.99" to current versions of ibus-anthy. So > this bug's issue should be solved. > > This should be done when we bumped to ibus-anthy-1.5.0. Just out of idle curiosity, when are 'we' planning to do it ? While the ebuild I've got in my overlay was only tested for [-deprecated], it didn't take much time to make the adjustments. Though when you do, do remember, the mentioned commit is important not just in regard of ibus-anthy, but for the engine itself. Though on the plus side, in the meanwhile this commit has been made: https://github.com/ibus/ibus/commit/62cd0492e3459416e1775aedc327bced53f66828. It's hard to tell whether or not it will fix the problem with the restart - the preliminary tests suggest not, still, it might be useful anyway. Note however, that this commit touches *only* gtk2 client - while there are significant changes between gtk2 and gtk3, I don't recall any that would be relevant here (other than multidevice support, but that's a different matter), so it's likely that gtk3 needs this commit too (well, till this commit the code was the same in both branches). *** Bug 455614 has been marked as a duplicate of this bug. *** for ibus-1.5.1 side, we'd back port commits from upstream to address the comment #4, #14 .. this should quite be staightforward but for ibus-anthy, as we already bump ibus to latest(1.5.1), 1) is deprecated USE flag still need? for --enable/disable-pygtk2-anthy, I think we can do (at least no hurts?) 2) gnome2_icon_xx related .. I can't test much since I'm not anthy user.. so comments are welcome here |
I wish to use ibus/anthy for Japanese input. I have QT_IM_MODULE=ibus variable set. My trigger key (Ctrl-Space) isn't working in either GTK or Qt apps. I don't need to set GTK_IM_MODULE variable, it worked before without it. If I launch ibus-setup and click on Preferences button (see screenshot), I get this in message in terminal window: Traceback (most recent call last): File "/usr/share/ibus-anthy/setup/main.py", line 28, in <module> from ibus import keysyms, modifier, Bus ImportError: No module named ibus .xsession-errors also mentions ibus this way: Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon Bus::open: Can not get ibus-daemon's address. Bus::open: Connect ibus failed! Bus::open: Connect ibus failed! Bus::open: Connect ibus failed! (last line repeated many times) And the daemon is running alright: $ ps auxww|grep ibus rondo 3386 0.1 0.0 341164 5196 ? Sl 13:40 0:01 /usr/bin/ibus-daemon --xim rondo 3397 0.0 0.0 123220 3432 ? Sl 13:40 0:00 /usr/libexec/ibus-gconf rondo 3399 0.0 0.2 523788 36288 ? Sl 13:40 0:00 /usr/libexec/ibus-ui-gtk3 rondo 3402 0.0 0.1 311020 30388 ? Sl 13:40 0:00 /usr/libexec/ibus-x11 --kill-daemon rondo 4612 0.0 0.0 12704 980 pts/1 S+ 14:00 0:00 grep ibus Reproducible: Always Portage 2.2.0_alpha149 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.0-gentoomelf x86_64) ================================================================= System uname: Linux-3.7.0-gentoomelf-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2 Timestamp of tree: Tue, 01 Jan 2013 07:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p39-r1 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r3, 3.2.3-r2 dev-util/cmake: 2.8.10.2 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo custom Installed sets: @fonts, @kde, @vim ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE vim.org NVIDIA skype-4.0.0.7-copyright MPEG-4 myspell-ru_RU-ALexanderLebedev grass-ipafonts freedist fairuse free-noncomm MSttfEULA NEWLIB LIBGLOSS" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -mtune=native" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--ipv4" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.yandex.ru/gentoo-portage/" USE="X a52 aac acl acpi alsa amd64 anthy bash-completion bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus declarative directfb djvu dri dts dvd dvdr embedded emboss encode exif fam fbcon ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk iconv icu idn ipv6 jpeg kde kipi lame lcms libcaca libnotify lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 raw readline samba sdl semantic-desktop session spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB ru ja" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON