When dev-python/pygtk is emerged the following is necessary to import pygtk and gtk modules : - adding /usr/lib/python2.5/site-packages/gtk-2.0 in python path - emerging dev-python/pygobject - emerging dev-python/pycairo Reproducible: Always Steps to Reproduce: 1.emerge dev-python/pygtk 2.start a python console 3.import pygtk Actual Results: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pygtk or when importing gtk : >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 38, in <module> import gobject as _gobject ImportError: No module named gobject # emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2. 6.20-gentoo-r4 i686) ================================================================= System uname: 2.6.20-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.50GHz Timestamp of tree: Sun, 23 Sep 2007 11:30:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.6, 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 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 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-fram e-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/shar e/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php 5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/r evdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O3 -march=pentium3 -pipe -ftracer -fomit-frame-pointer -momit-leaf-fr ame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans use rfetch" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.b elnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mir1.ovh.net/gentoo-distfiles/ ht tp://mir1.ovh.net/gentoo-distfiles/" LANG="fr_FR.utf8" LC_ALL="fr_FR.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7z 7zip X a52 aac aalib acl acpi alsa asf bitmap-fonts bzip2 cairo cdda cdd b cdr cli cracklib crypt ctype daap dbus dlload dri dts dvd dvdr dvdread eds emb oss encode esd evo fam fame ffmpeg firefox fortran gd gif gimp gpm gsm gstreamer gtk hal httpd icc-pgo iconv ieee1394 ipv6 irc isdnlog iss jabber jpeg kerberos lame live mad matroska midi mikmod mjpeg mp3 mp4 mpeg mpeg2 msn mudflap mysql nc urses nls nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pcre pdf perl p ng pnm postgres pppd python qt3support quicktime rar readline real realmedia ref lection rtsp scanner sdl session spell spl ssl stream svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32codecs wxW indow x264 x86 xanim xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp a tiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 f m801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-mod em ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extpl ug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rat e route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati vesa vga fglrx fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, P ORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
It already does depend on those. You really should run python-updater after upgrading python.