Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259233 - net-dns/avahi-0.6.24 - configure:28766: error: Could not find Python module gtk
Summary: net-dns/avahi-0.6.24 - configure:28766: error: Could not find Python module gtk
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 16:29 UTC by chris_debian
Modified: 2009-04-19 20:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log, as requested. (avahi_log.txt,177.28 KB, text/plain)
2009-02-16 20:43 UTC, chris_debian
Details
avahi logs (avahi_logs.txt,108.41 KB, text/plain)
2009-02-17 16:17 UTC, chris_debian
Details
Avahi conf.log following python-updater script, pygtk remerge and avahi install. (avaha_conf.log,177.36 KB, text/plain)
2009-02-17 19:22 UTC, chris_debian
Details
equey files pygtk (list,30.45 KB, text/plain)
2009-04-19 20:11 UTC, Raouf Bencheraiet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chris_debian 2009-02-16 16:29:24 UTC
I am new to Gentoo and have been trying to emerge gnome.  When I do this, avahi fails.  I have looked at the log, but couldn't discern any information that would help me.

From  /var/tmp/portage/net-dns/avahi-0.6.24/work/avahi-0.6.24/config.log :

/var/tmp/portage/net-dns/avahi-0.6.24/temp/cczZc1aJ.o: In function `main':
conftest.c:(.text+0x1e): undefined reference to `pthread_join'
conftest.c:(.text+0x47): undefined reference to `__pthread_register_cancel'
conftest.c:(.text+0x65): undefined reference to `pthread_create'
conftest.c:(.text+0x6c): undefined reference to `__pthread_unregister_cancel'
collect2: ld returned 1 exit status
configure:16967: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "avahi"
| #define PACKAGE_TARNAME "avahi"
| #define PACKAGE_VERSION "0.6.24"
| #define PACKAGE_STRING "avahi 0.6.24"
| #define PACKAGE_BUGREPORT "avahi (at) lists (dot) freedesktop (dot) org"
| #define PACKAGE "avahi"
| #define VERSION "0.6.24"
| #define STDC_HEADERS 1


Reproducible: Always

Steps to Reproduce:
1. emerge avahi or gnome.
2.
3.

Actual Results:  
Build fails

Expected Results:  
Build succeeds

If I can provide any further information, please let me know.

I have marked this as MAJOR because it prevents a desktop environment from being installed.

Many thanks,

Chris.
Comment 1 Rafał Mużyło 2009-02-16 20:30:05 UTC
Could you attach that config.log ?
Comment 2 chris_debian 2009-02-16 20:43:11 UTC
Created attachment 182269 [details]
Log, as requested.
Comment 3 Rafał Mużyło 2009-02-16 22:13:08 UTC
As expected, you've quoted the wong part.
This:
configure:28735: checking for python module gtk
configure:28764: result: no
configure:28766: error: Could not find Python module gtk
probably means you've failed to use python-updater, when you upgraded from 2.4 to 2.5.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-16 23:43:36 UTC
Please try to run python-updater. Re-open if that doesn't solve your problem.
Comment 5 chris_debian 2009-02-17 15:45:55 UTC
(In reply to comment #3)
> As expected, you've quoted the wong part.
> This:
> configure:28735: checking for python module gtk
> configure:28764: result: no
> configure:28766: error: Could not find Python module gtk
> probably means you've failed to use python-updater, when you upgraded from 2.4
> to 2.5.
> 

I have run python-updater and it still fails (thanks, Peter Alfredsen).

"As expected, you've quoted the wong part" (Rafel)...thanks, that's really encouraging!

Not sure why the bug was closed, when it wasn't fixed.

I'd try to help further, but I guess by Rafel's comment, I'm not worthy.   
Comment 6 chris_debian 2009-02-17 16:17:31 UTC
Created attachment 182339 [details]
avahi logs
Comment 7 Rafał Mużyło 2009-02-17 16:22:54 UTC
Nah, I often sound that way, regardless of whether it's the case or not.

The problem here is most probably that, while you most probably have
pygtk emerged (as it is avahi' dep with gtk useflag),
it was probably emerged with python 2.4.
When you've upgraded to 2.5, you should have run python-updater
to move all python-using packages to 2.5 dir.
While I didn't check, what exactly avahi does to detect pygtk,
this is the most probable cause for the failure.
While it's possible that reemerging just pygtk will fix it,
I wouldn't be surprised if other packages (those, pygtk depends on)
had to be reemerged too.
After all, at emerging python, there's a warning at the end about
moving from version x.y to x.(y+c).
Comment 8 Rafał Mużyło 2009-02-17 16:24:06 UTC
And on an unrelated note, if you can't type it in, copy/paste.
Comment 9 chris_debian 2009-02-17 17:35:28 UTC
(In reply to comment #8)
> And on an unrelated note, if you can't type it in, copy/paste.
> 

?  Type what?

The logs are too long to add as a post, so they are added as an attachment, as somebody said that using Pastebin was not good.
Comment 10 chris_debian 2009-02-17 17:37:39 UTC
(In reply to comment #7)
> Nah, I often sound that way, regardless of whether it's the case or not.
> 
> The problem here is most probably that, while you most probably have
> pygtk emerged (as it is avahi' dep with gtk useflag),
> it was probably emerged with python 2.4.
> When you've upgraded to 2.5, you should have run python-updater
> to move all python-using packages to 2.5 dir.
> While I didn't check, what exactly avahi does to detect pygtk,
> this is the most probable cause for the failure.
> While it's possible that reemerging just pygtk will fix it,
> I wouldn't be surprised if other packages (those, pygtk depends on)
> had to be reemerged too.
> After all, at emerging python, there's a warning at the end about
> moving from version x.y to x.(y+c).
> 

So much for dependencies being automatically resolved.  I wonder what other things _should_ be done, that aren't?  Looks like I'll be unmerging any trace of Avahi and Gnome and sticking with xfce (or sourcemage).
Comment 11 Rafał Mużyło 2009-02-17 19:00:44 UTC
Well, that has nothing to do with dependencies, that's just the way python works.
And if you won't reemerge those packages/run python-updater,
this won't be the last time, these things break.
After all, most of that failing check was simply 'import pygtk'.


> ?  Type what?
What ? I.e. my name (I said it was unrelated)
Comment 12 chris_debian 2009-02-17 19:22:06 UTC
Created attachment 182361 [details]
Avahi conf.log following python-updater script, pygtk remerge and avahi install.
Comment 13 Rafał Mużyło 2009-02-17 20:41:34 UTC
As I said:
>While it's possible that reemerging just pygtk will fix it,
>I wouldn't be surprised if other packages (those, pygtk depends on)
>had to be reemerged too.
Try running python and see what does 'import pygtk' result in.
Comment 14 chris_debian 2009-02-17 21:56:36 UTC
(In reply to comment #13)
> As I said:
> >While it's possible that reemerging just pygtk will fix it,
> >I wouldn't be surprised if other packages (those, pygtk depends on)
> >had to be reemerged too.
> Try running python and see what does 'import pygtk' result in.
> 

Thanks.  I did this and it said "No module named pygtk".  Is this something I can fix?

Thanks for your help,

Chris.
Comment 15 Rafał Mużyło 2009-02-18 01:05:26 UTC
There may be something wrong with your python.
So:
- output of 'emerge -1pv avahi'
- make sure pygtk is installed
- full error of 'import pygtk'
- (non standard for me, but standard for this bugzilla) output of 'emerge --info'
Comment 16 chris_debian 2009-02-18 16:29:55 UTC
Rafal,

Thanks for your help.  The following should be what you have asked for.

Many thanks, 

Chris.


### emerge -1pv avahi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-dns/avahi-0.6.24  USE="dbus gdbm gtk ipv6 python -autoipd -bookmarks -doc -howl-compat -mdnsresponder-compat -mono -qt3 -qt4 -test" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


### *  dev-python/pygtk
      Latest version available: 2.12.1-r2
      Latest version installed: 2.12.1-r2
      Size of files: 2,124 kB
      Homepage:      http://www.pygtk.org/
      Description:   GTK+2 bindings for Python
      License:       LGPL-2.1

### Python 2.5.2 (r252:60911, Feb 14 2009, 15:26:13) 
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.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



### emerge --info

Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-AMD_Duron-tm-_Processor-with-glibc2.0
Timestamp of tree: Sun, 15 Feb 2009 08:45:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
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.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl avahi berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl startup-notification sysfs tcpd unicode x86 xorg xscreensaver 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 mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 17 Rafał Mużyło 2009-02-18 18:05:46 UTC
it's exactly as I typed: 'import pygtk', not 'import gtk'.
Comment 18 chris_debian 2009-02-18 19:10:10 UTC
(In reply to comment #17)
> it's exactly as I typed: 'import pygtk', not 'import gtk'.
> 

Apologies:

Python 2.5.2 (r252:60911, Feb 14 2009, 15:26:13) 
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
Comment 19 Rafał Mużyło 2009-02-19 04:13:51 UTC
That's just wrong.
See if pygtk files gone into correct version of python dir.
Comment 20 Raouf Bencheraiet 2009-04-19 20:11:57 UTC
Created attachment 188918 [details]
equey files pygtk
Comment 21 Raouf Bencheraiet 2009-04-19 20:15:01 UTC
 (In reply to comment #20)
> Created an attachment (id=188918) [edit]
> equey files pygtk 
> 

have the same goign on here with Python 2.6 and  avahi-0.6.25
reemerged pygtk few times (see attached files)
it seams that pygt puts  files in /usr/lib/pygtk and some in /usr/lib/pyhton2.6/site-packages/