Summary: | net-dns/avahi-0.6.22-r1 configure: error: Could not find Python module gtk | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Albert Zeyer <albzey> |
Component: | Current packages | Assignee: | Sven Wegener <swegener> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | algirdas, bugs+gentoo, christian.korff, davide.garbetta, florenzopaolo.dimagli, howard_b_golden, ixevix, j0inty, jimmy09140456, matrix47, paulo, python, robejrm, saffi, spacecakex, t.scheller |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
config.log
avahi-config.log config.log |
Description
Albert Zeyer
2008-07-19 14:48:13 UTC
I have already tried to reemerge pygtk, but this makes no difference. gcomputer ~ # emerge --info Portage 2.2_rc1 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686) ================================================================= System uname: Linux-2.6.23-gentoo-r3-i686-AMD_Sempron-tm-_2200+-with-glibc2.0 Timestamp of tree: Fri, 18 Jul 2008 23:36:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.16.1-r3, 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="" LINGUAS="de" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-de /usr/portage/local/layman/kdesvn-portage /usr/portage/local/private" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl acpi aiglx alsa altenburgcards amazon ao apm applet archive artworkextra asf async audiofile automount avi bash-completion beagle binary-drivers bookmarks bzip2 cairo captury cdda cddb cdr cdrom cle266 corba crypt cups curl cursors daap dbus dedicated dga divx4linux djvu dlopen dlz dmi dmx dri dts dv dvd dvdr dvdread dvi ecc editor emacs encode erandom evo evolution exif fam fame ffmpeg firefox flac font-server foomaticdb fortran fpx freetype ftp galago gcj gcl gdbm gdm german gif gimp glade glib glibc-omitfp glitz glut glx gnome gnome-print gnomecanvas gnomecd gphoto2 graphviz gs gtk gtk2 guile hal howl-compat i8x0 icons icq id3 ifp imagemagick imlib imlib2 insecure-drivers ipod jack java javascript jbig jpeg jpeg2k jrtplib jumpplay justify kde kdm kerberos lame latex lcms lha linuxthreads-tls live lm_sensors lzo mad matroska mdnsresponder-compat mediaplayer midi mikmod mjpeg mmx mmxext mng motif mozilla mp2 mp3 mp4 mpeg mpeg2 mpeg4 mplayer mtp multislot musepack musicbrainz nautilus ncurses nepomuk net network networking njb nls nntp nptl nptlonly nsplugin objc ogg oggvorbis ole openal opengl oss pam pch pcre pdf perl plasma png posix ppds profile python qt qt3support qt4 quicktime rar rdesktop readline real realmedia reiser4 reiserfs rle rtc rtsp samba scanner scp screen sdl semantic-desktop server session sharedext sharedmem slang slp sockets socks5 sounds speex spell sse ssl startup-notification subp subtitles svg t1lib tcltk teamarena tetex tga theora threads tiff timidity tivo tools truetype truetype-fonts type1 type1-fonts unicode usb utf8 vcd vidix vlm vorbis win32codecs wmf wxwindows x264 x86 xanim xattr xcomposite xemacs xforms xine xml xorg xosd xpm xprint xrandr xrender xscreensaver xulrunner xv xvid yiff yv12 zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 160850 [details]
config.log
gcomputer ~ # ls /usr/lib/python2.5/site-packages gtk-2.0 README I think the package pygtk is a bit confusing (at least its name). I figured out on another PC, that the package pygobject installs the pygtk module. Then I reemerged pygobject on the PC and this installs the gtk module which was found after. Though I get an error about a missing cairo module then. After also reemerging pycairo, I solved at least this bug. In short, solution: Reemerge pygobject and pycairo. Though, I have now the problem about a missing dbus Python object. All that would probably be easier by just running python-updater but I try to avoid that because most of the packages there are completely outdated or does not exist anymore, therefore python-updater probably just wont work. And making a world update before also does not work because of this problem with avahi (and probably also other Python depending packages). Reemerging dbus-python solved the last problem. I emerged avahi successfully now. This allows me finally to continue my world update now. :) Perhaps, can you add a notice to the ebuild which is shown when the configure fails with a missing Python module? (That the user should try to reemerge pygobject, pycairo or whatever the error message was.) Would have saved me some time and some annoying outfiguring. (In reply to comment #7) > Perhaps, can you add a notice to the ebuild which is shown when the configure > fails with a missing Python module? (That the user should try to reemerge > pygobject, pycairo or whatever the error message was.) > > Would have saved me some time and some annoying outfiguring. Assigning... (In reply to comment #5) > I think the package pygtk is a bit confusing (at least its name). > > I figured out on another PC, that the package pygobject installs the pygtk > module. Then I reemerged pygobject on the PC and this installs the gtk module > which was found after. Though I get an error about a missing cairo module then. > After also reemerging pycairo, I solved at least this bug. > > In short, solution: > Reemerge pygobject and pycairo. > > Though, I have now the problem about a missing dbus Python object. > > All that would probably be easier by just running python-updater but I try to > avoid that because most of the packages there are completely outdated or does > not exist anymore, therefore python-updater probably just wont work. And making > a world update before also does not work because of this problem with avahi > (and probably also other Python depending packages). > I reemerged all the packages you mentioned but nothing changed. Finally, removing the USE flag python from net-dns/avahi did the trick for me and compilation worked. However, that doesn't seem to be a real permanent solution (In reply to comment #9) > I reemerged all the packages you mentioned but nothing changed. Finally, > removing the USE flag python from net-dns/avahi did the trick for me and > compilation worked. > However, that doesn't seem to be a real permanent solution What is your error? Really the same as mine? checking for python module gtk... no configure: error: Could not find Python module gtk Try this simple Python program: import gtk Put this into a file gtktest.py. And call python gtktest.py What error does this produce? (In reply to comment #10) > (In reply to comment #9) > > I reemerged all the packages you mentioned but nothing changed. Finally, > > removing the USE flag python from net-dns/avahi did the trick for me and > > compilation worked. > > However, that doesn't seem to be a real permanent solution > > What is your error? Really the same as mine? > > checking for python module gtk... no > configure: error: Could not find Python module gtk > > Try this simple Python program: > > import gtk > > Put this into a file gtktest.py. And call > > python gtktest.py > > What error does this produce? > I got he following output python gtktest.py Traceback (most recent call last): File "gtktest.py", line 1, in <module> import gtk ImportError: No module named gtk Hi, I have done the steps, too. But it doesn't work for me. emerge pygobject pycairo dbus-python avahi configure: error: Could not find Python module gtk !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-dns/avahi-0.6.22-r1/work/avahi-0.6.22/config.log pandora ~ # echo "import gtk" > python_gtk_test.py pandora ~ # python python_gtk_test.py Traceback (most recent call last): File "python_gtk_test.py", line 1, in <module> import gtk ImportError: No module named gtk pandora ~ # I will attached the config.log Created attachment 161191 [details]
avahi-config.log
You *also* have to emerge pygtk. pygtk, pygobject, pycairo and dbus-python (In reply to comment #14) > You *also* have to emerge pygtk. > > pygtk, pygobject, pycairo and dbus-python > Best thanks. That solved the problem for me. regards j0inty (In reply to comment #14) > You *also* have to emerge pygtk. > > pygtk, pygobject, pycairo and dbus-python > I tried emerging all 4 of those and I still get the same error: checking for python module gtk... no configure: error: Could not find Python module gtk As per another forum, I also tried symlinking /usr/lib/python2.5 to /usr/local/lib/python2.5 but to no avail. First time submitting a gentoo bug so please let me know if the above info isn't sufficient. Incidentally, I'm trying to install Gnome on a fresh install and it's dying at avahi-0.6.22-r1. Thanks! (In reply to comment #16) > (In reply to comment #14) > > You *also* have to emerge pygtk. > > > > pygtk, pygobject, pycairo and dbus-python > > > > I tried emerging all 4 of those and I still get the same error: > checking for python module gtk... no > configure: error: Could not find Python module gtk > Still also the same error with the given Python sample code? > As per another forum, I also tried symlinking /usr/lib/python2.5 to > /usr/local/lib/python2.5 but to no avail. > That's wrong and if you have not installed Python manually to that directory, it will not work of course. Please change it back. (It should not be a symlink at all. Reemerge Python 2.5 if you messed something up there.) I had the same problem with avahi-0.6.23; test program gave the same output. For me, emerge -1va pygtk pygobject pycairo helped and avahi compiled well. So, this bug is all about you not following the
> If you have just upgraded from an older version of python you will
> need to run:
>
> /usr/sbin/python-updater
that the python package outputs?
*** Bug 235187 has been marked as a duplicate of this bug. *** (In reply to comment #9) > I reemerged all the packages you mentioned but nothing changed. Finally, > removing the USE flag python from net-dns/avahi did the trick for me and > compilation worked. > However, that doesn't seem to be a real permanent solution > I had the same problem when updating world. I solved it emerging those packages: # emerge -av pygobject pycairo pygtk dbus-python avahi (In reply to comment #0) > ... > checking for GLADE20... yes > checking for DBUS... yes > Your D-Bus version is 1,1,20. > checking for dbus_connection_close... yes > checking for dbus_bus_get_private... yes > checking for XML_ParserCreate in -lexpat... yes > checking expat.h usability... yes > checking expat.h presence... yes > checking for expat.h... yes > checking for XML_ParserCreate in -lbsdxml... no > checking for gdbm_open in -lgdbm... yes > checking gdbm.h usability... yes > checking gdbm.h presence... yes > checking for gdbm.h... yes > checking for LIBDAEMON... yes > checking for a Python interpreter with version >= 2.4... python > checking for python... /usr/bin/python > checking for python version... 2.5 > checking for python platform... linux2 > checking for python script directory... ${prefix}/lib/python2.5/site-packages > checking for python extension module directory... > ${exec_prefix}/lib/python2.5/site-packages > checking for python module gtk... no > configure: error: Could not find Python module gtk > > !!! Please attach the following file when seeking support: > !!! > /mnt/hda5/var/tmp/portage/net-dns/avahi-0.6.22-r1/work/avahi-0.6.22/config.log > * > * ERROR: net-dns/avahi-0.6.22-r1 failed. > * Call stack: > * ebuild.sh, line 49: Called src_compile > * environment, line 2790: Called econf '--localstatedir=/var' > '--with-distro=gentoo' '--disable-python-dbus' '--disable-pygtk' > '--disable-xmltoman' '--disable-monodoc' '--enable-glib' '--disable-tests' > '--disable-autoipd' '--enable-compat-libdns_sd' '--enable-compat-howl' > '--disable-doxygen-doc' '--disable-mono' '--enable-dbus' '--enable-python' > '--enable-gtk' '--disable-qt3' '--enable-qt4' '--enable-gdbm' > '--enable-python-dbus' '--enable-pygtk' > * ebuild.sh, line 526: Called die > * The specific snippet of code: > * die "econf failed" > * The die message: > * econf failed > * > * If you need support, post the topmost build error, and the call stack if > relevant. > * A complete build log is located at > '/mnt/hda5/var/tmp/portage/net-dns/avahi-0.6.22-r1/temp/build.log'. > * The ebuild environment file is located at > '/mnt/hda5/var/tmp/portage/net-dns/avahi-0.6.22-r1/temp/environment'. > * > Hello I've exactly the same error on an very young intsall of gentoo with net-dns/avahi-0.6.23. I've just found how soluce it. Enable the USE threads for dev-lang/python , re-emerge it and re-emerge net-dns/avahi and that's work. Enjoy. GoodNight In response to comment #22: This is the solution, re-emerge dev-lang/python with threads enabled (In reply to comment #23) > In response to comment #22: > > This is the solution, re-emerge dev-lang/python with threads enabled In fact this fixed a number of issues for me that have been irritating for a while and gave no indication that threading python would fix. dev-libs/boost-1.34.1-r2 x11-libs/vte-0.16.14 app-office/dia-0.96.1-r1 media-gfx/eog-2.20.4 app-editors/gedit-2.20.4-r1 app-office/gnumeric-1.8.3 sys-apps/dbus-1.2.3-r1 net-dns/avahi-0.6.22-r1 media-video/totem-2.20.3 media-sound/rhythmbox-0.10.1-r1 (In reply to comment #5) > In short, solution: > Reemerge pygobject and pycairo. > Works for me after reemerging both. > Though, I have now the problem about a missing dbus Python object. > Didn't get any problem with dbus-python though. (In reply to comment #25) > (In reply to comment #5) > > In short, solution: > > Reemerge pygobject and pycairo. > > > Works for me after reemerging both. > > Though, I have now the problem about a missing dbus Python object. > > > Didn't get any problem with dbus-python though. > I confirm, this solution. (In reply to comment #26) > (In reply to comment #25) > > (In reply to comment #5) I confirm, this solution: emerge pygobject pycairo dbus-python pygtk avahi It worked fine on avahi-0.6.22-r1 and avahi-0.6.24 alike (I tried both to help this thread, but I have ultimately installed 0.6.24). For both packages I was having the same error during emerge. *** Bug 261037 has been marked as a duplicate of this bug. *** (In reply to comment #27) > (In reply to comment #26) > > (In reply to comment #25) > > > (In reply to comment #5) > I confirm, this solution: > > emerge pygobject pycairo dbus-python pygtk avahi > > It worked fine on avahi-0.6.22-r1 and avahi-0.6.24 alike (I tried both to help > this thread, but I have ultimately installed 0.6.24). For both packages I was > having the same error during emerge. > confirmed. works also for net-dns/avahi-0.6.25 with dev-lang/python-2.6.1-r1 Hi all I had the same problem on ~x86 when compiling avahi-0.6.25, but: - USE flags were correctly set (python and threads) - re-emerging all the suggested packages took time, but did not solve the problem Then I realized that my python had been updated and - as Sven pointed out - I had overlooked running the python-updater afterwards. After running # /usr/sbin/python-updater everything compiled fine again. krgds /markus This bug also occurs when required libs are broken: ... ImportError: libdirectfb-0.9.so.25: cannot open shared object file: No such file or directory ... (In reply to comment #30) ... > After running > > # /usr/sbin/python-updater > > everything compiled fine again. > > krgds /markus > /usr/sbin/python-updater was also the solution foe me ... (from 2.5 -> 2.6) python-updater did not work for me. python-updater did also try to update avahi and failed. Reemerge of pygobject and pycairo did solve the issue. Had the same problem here, though I've always been using python with the USE "threads". Package versions here: avahi-0.6.24-r2 python-2.6.2-r1 This solved the issue: emerge -jva pygobject pycairo pygtk dbus-python avahi Regards, Saffi same problem, gtk not found checking for python module gtk... ./configure: line 33802: 26978 Segmentation fault $PYTHON -c "$prog" 1>&5 2>&5 no configure: error: Could not find Python module gtk emerge -1a pygobject pycairo pygtk dbus-python avahi [ebuild R ] dev-python/pygobject-2.18.0 [ebuild R ] dev-python/pycairo-1.8.2 [ebuild R ] dev-python/dbus-python-0.83.0-r1 [ebuild R ] dev-python/pygtk-2.14.1-r1 [ebuild R ] net-dns/avahi-0.6.24-r2 Still can not merge avahi. (In reply to comment #35) > same problem, gtk not found > > checking for python module gtk... ./configure: line 33802: 26978 Segmentation > fault $PYTHON -c "$prog" 1>&5 2>&5 > no > configure: error: Could not find Python module gtk > > emerge -1a pygobject pycairo pygtk dbus-python avahi > > [ebuild R ] dev-python/pygobject-2.18.0 > [ebuild R ] dev-python/pycairo-1.8.2 > [ebuild R ] dev-python/dbus-python-0.83.0-r1 > [ebuild R ] dev-python/pygtk-2.14.1-r1 > [ebuild R ] net-dns/avahi-0.6.24-r2 > > Still can not merge avahi. > checking for a Python interpreter with version >= 2.4... python checking for python... /usr/bin/python checking for python version... 2.6 checking for python platform... linux2 checking for python script directory... ${prefix}/lib64/python2.6/site-packages checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages checking for python module gtk... no configure: error: Could not find Python module gtk Almost same problem here on amd64. emerge -1p pygobject pycairo pygtk dbus-python avahi These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-python/pygobject-2.18.0 [ebuild R ] dev-python/pycairo-1.8.2 [ebuild R ] dev-python/dbus-python-0.82.4 [ebuild R ] net-dns/avahi-0.6.24-r2 [ebuild R ] dev-python/pygtk-2.14.1-r1 I've tried all the suggested fixes in this thread. Created attachment 201515 [details]
config.log
Also this happens with the testcases: $ python -c "import gtk" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named gtk $ python -c "import pygtk" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named pygtk (In reply to comment #38) > Also this happens with the testcases: > > $ python -c "import gtk" > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: No module named gtk > $ python -c "import pygtk" > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: No module named pygtk > Probably you are missing the pygtk.pth and the pygtk.py symlinks located in the /usr/lib/python2.6/site-packages, usually created by the alternatives_auto_makesym function, try to manually create this symlinks: ln -s /usr/lib/python2.6/site-packages/pygtk.pth-2.0 /usr/lib/python2.6/site-packages/pygtk.pth ln -s /usr/lib/python2.6/site-packages/pygtk.py-2.0 /usr/lib/python2.6/site-packages/pygtk.py Or try to unmerge pygobject and pygtk and re-emerge them. Hope this helps. (In reply to comment #39) > Probably you are missing the pygtk.pth and the pygtk.py symlinks located in the > /usr/lib/python2.6/site-packages, usually created by the > alternatives_auto_makesym function, try to manually create this symlinks: > ln -s /usr/lib/python2.6/site-packages/pygtk.pth-2.0 > /usr/lib/python2.6/site-packages/pygtk.pth > ln -s /usr/lib/python2.6/site-packages/pygtk.py-2.0 > /usr/lib/python2.6/site-packages/pygtk.py > > Or try to unmerge pygobject and pygtk and re-emerge them. Hope this helps. > >>> Emerging (1 of 1) dev-python/pygobject-2.18.0 ... * Cleaning orphaned Python bytecode from /usr/lib64/python2.5/site-packages .. * Cleaning orphaned Python bytecode from /usr/lib64/python2.6/site-packages .. * Cleaning orphaned Python bytecode from /usr/lib/python2.5/site-packages .. * Cleaning orphaned Python bytecode from /usr/lib/python2.6/site-packages .. >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. * Byte compiling python modules for python-2.6 .. ... [ ok ] /var/tmp/portage/dev-python/pygobject-2.18.0/temp/environment: line 2981: alternatives_auto_makesym: command not found /var/tmp/portage/dev-python/pygobject-2.18.0/temp/environment: line 2982: alternatives_auto_makesym: command not found * No files to compile! >>> Regenerating /etc/ld.so.cache... Seems I am missing the alternatives_auto_makesym command for some reason. Any idea on how I can fix this? Making the symlinks helped and I can now compile avahi. Thanks a lot! Okay, it's the mess since yesterday, I re-emerged "pygtk, pygobject, pycairo" several times, and it didn't help. Files were correctly placed, and symlinks were apparently right too. I made some emerge --unmerge avahi (dangerous, I know, I couldn't log back into gnome). I unmerged gajim too (which was using avahi with python USE flag). I tried several python-updater and revdep-rebuild, it didn't help much because during the process avahi was being rebuilt and failed. I temporarily set -python for avahi in /etc/portage/packages.use, allowed me to build back avahi. Once built, I added again python USE flag, emerge -auNDv world was trying to build avahi and failed. I noticed I had 2 pythons installs, 2.5 and 2.6, so I wanted to remove 2.5. We can check that with "eselect python list", 2.6 was selected by default, so that was okay. I then made some "emerge --depclean", and it unmerged 2.5. I tried to merge avahi again, it failed. I then re-emerged pygtk, and avahi, it failed. I then re-emerged pygobject, and avahi, and it worked !! :-P Just before re-emerging pygobject: $ python Python 2.6.2 (r262:71600, Aug 16 2009, 14:01:47) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gtk >>> quit() Just after re-emerging pygobject: $ python Python 2.6.2 (r262:71600, Aug 16 2009, 14:01:47) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> quit() To sum up : I had to clean my old python installation with emerge --depclean, then to reemerge pygtk and pygobject, then emerge avahi. Hope this helps. Forgot to mention, just after I emerged avahi with -python, I ran python-updater and it went well, as it didn't have to emerge avahi. See http://bugs.gentoo.org/280973. After downgrade app-admin/eselect-python to version 20090606 I was able to emerge avahi with USE=gtk. eselect-python-200908xx not allow me to emerge avahi with USE=gtk despite I was able to execute 'python -c "import gtk"' and 'python -c "import pygtk"' without errors. (In reply to comment #44) > See http://bugs.gentoo.org/280973. After downgrade app-admin/eselect-python to > version 20090606 I was able to emerge avahi with USE=gtk. > > eselect-python-200908xx not allow me to emerge avahi with USE=gtk despite I was > able to execute 'python -c "import gtk"' and 'python -c "import pygtk"' without > errors. > I can confirm: it's a python-wrapper bug introduced by latest eselect-python. Just relink /usr/bin/python to /usr/bin/python2.6 solves the issue. (In reply to comment #45) > I can confirm: it's a python-wrapper bug introduced by latest eselect-python. > Just relink /usr/bin/python to /usr/bin/python2.6 solves the issue. After trying all the other suggestions, this worked for me, too. However, I think it may not be a long-term solution. After successfully emerging avahi, I changed the symlink back to python-wrapper. (I'm not sure what will happen after that, but the only reported problem above is in avahi.) Question: Is the autoconf code in avahi which fails above correct? (In other words, is the problem in python-wrapper or avahi?) Seems that the latest eselect-python (20090824) solved this issue. Please give it a try. (In reply to comment #47) > Seems that the latest eselect-python (20090824) solved this issue. Yes. Seems v20091230 has the same bug than the earlier ones... * Messages for package net-dns/avahi-0.6.24-r2: * * ERROR: net-dns/avahi-0.6.24-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4070: Called econf '--localstatedir=/var' '--with-distro=gentoo' '--disable-python-dbus' '--disable-pygtk' '--disable-xmltoman' '--disable-monodoc' '--enable-glib' '--disable-tests' '--enable-autoipd' '--enable-compat-libdns_sd' '--disable-compat-howl' '--disable-doxygen-doc' '--disable-mono' '--enable-dbus' '--enable-python' '--enable-gtk' '--disable-qt3' '--enable-qt4' '--enable-gdbm' '--enable-python-dbus' '--enable-pygtk' * ebuild.sh, line 534: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed |