I have installed hplip with USE flags +X -qt (among others). There is a 'HP device Manager provided in my (gnome) menu, but it doesn't run. From commandline, it tells me: tomhendr@elaine ~ $ /usr/share/hplip/toolbox Traceback (most recent call last): File "/usr/share/hplip/toolbox", line 41, in ? import base.async_qt as async File "/usr/share/hplip/base/async_qt.py", line 85, in ? from qt import * ImportError: No module named qt The error is pretty straightforward, but if this application only works with qt, then why is it installed. Problem exists with latest ebuild (0.9.4). Reproducible: Always Steps to Reproduce: 1. USE="X -qt" emerge hplip 2. run /usr/share/hplip/toolbox from commandline emerge --info Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.whyscream.net/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LC_ALL="en_US.utf8" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aac acpi alsa avi berkdb bmp cdr crypt cups dbus divx4linux dri dvd elibc_glibc encode esd exif fam flac foomaticdb gdbm gif gnome gphoto2 gstreamer gtk gtk2 hal howl imlib ipv6 jpeg kernel_linux libwww mad matroska matrox mikmod mmx motif mp3 mpeg ncurses nls nptl nsplugin ogg oggvorbis opengl pam pdflib png python quicktime readline samba sdl spell sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU vorbis win32codecs xine xml2 xv zlib" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
can you please emerge pykde and see if it runs ?
emerge -av pykde gives: [blocks B ] >=kde-base/kdelibs-3.3.1 (is blocking dev-python/pykde-3.11.3) [ebuild N ] x11-libs/qt-3.3.4-r3 +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc +ipv6 -mysql -nas -odbc +opengl -postgres -sqlite -xinerama +zlib 0 kB [ebuild N ] dev-python/sip-4.1.1 -debug -doc 289 kB [ebuild N ] kde-base/kde-env-3-r4 0 kB [ebuild N ] kde-base/kdelibs-3.4.1-r1 +alsa -arts +cups -debug -doc -jpeg2k -kdeenablefinal -kerberos -openexr +spell +ssl +tiff -xinerama -zeroconf 0 kB [ebuild N ] dev-python/qscintilla-1.61 -doc 684 kB [ebuild N ] dev-python/PyQt-3.13 -debug -doc 745 kB [ebuild N ] dev-python/pykde-3.11.3 -debug -doc -kjs 1,225 kB which seems to be a rather strange error in the pykde ebuild. I'm going to emerge with ">=kde-base/kdelibs-3.3.1" in my package.mask. Note however, that I do not think it is advisable to make half of kde a dependency of hplip. It should rather not install the device manager at all...
It runs fine after 4 hours of kde compilation, but I did not expect anything else ;)
yes that's true but you need qt use flag to be able to access that environment. So i will not remove the qt use flag because it's only optional.
I never meant to remove the qt use flag. The problem is that, when you do *not* have/want the qt USE flag enabled, there is a program in your menu that is actually broken (because of qt not available). I think you should not provide rpograms to end-users that do not run, especialy when this is expected behaviour (because the qt flag is not set, and qt is not available). Since you do not want qt as a dependency, there is only one solution to the problem: do not provide/install the program that depends on qt.
CANTFIX? noooooo wrong answer: + if ! use qt ; then + rm -f ${D}/usr/bin/hp-print + rm -f ${D}/usr/bin/hp-toolbox + rm -f ${D}/usr/share/hplip/print + rm -f ${D}/usr/share/hplip/toolbox + fi + hm.. that looks familiar...: else rm -f ${D}/usr/lib/libsane-hpaio.la rm -f ${D}/usr/lib/libsane-hpaio.so rm -f ${D}/usr/lib/libsane-hpaio.so.1 rm -f ${D}/usr/lib/libsane-hpaio.so.1.0.0 fi oh look.. it's the same logic :/. Tested myself and it successfully does not install the files, and portage takes care of the symlinks that don't exist anymore.
Thanks Chris, fix in cvs.