Turns out I was pulling my hair out because of USE flags between 2.4 and
2.5

in 2.4, threads are enabled by default.
2.5, it is a USE flag setting



On Tue, 2008-08-12 at 17:31 +0800, Ow Mun Heng wrote:
> On Tue, 2008-08-12 at 16:52 +0800, Jan Schneiders wrote:
> > After updating python you always have to run the python updater
> > script:
> > 
> > # python-updater
> > 
> > (or did you do that already?)
> 
> I did and it updated a bunch of stuffs and I've also um-merged 2.4 and
> then now trying to retrace steps (by giving 2.5 the boot as i'm lost as
> to what to do)
> 
> 
> > 
> > On Aug 12, 2008, at 10:43 AM, Ow Mun Heng wrote:
> > 
> > > Just upgraded from 2.4 to 2.5 of python and I'm finding that I have
> > > issues with importing gtk.
> > >
> > > I have no idea what is happening and I've tried various methods of
> > > upgrading/re-compiling/downgrading pygobject & pygtk and python and 
> > > glib
> > > and pycairo and cairo and a whole host of other packages and still 
> > > this
> > > error.
> > >
> > > Google is not my friend unfortunately. I saw something like this 
> > > from a
> > > debian bug report
> > >
> > http://www.mail-archive.com/[EMAIL PROTECTED]/msg186144.html
> > >
> > >
> > >
> > > Python 2.5.2 (r252:60911, Aug  7 2008, 23:56:43)
> > > [GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more
> > information.
> > >>>> 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
> > >  File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/
> > > __init__.py", line 30, in <module>
> > >    from gobject.constants import *
> > >  File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/
> > > constants.py", line 22, in <module>
> > >    from _gobject import type_from_name
> > > ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gobject/
> > > _gobject.so: undefined symbol: PyGILState_Release
> > >
> > >
> > > emerge --info
> > > Portage 2.1.4.4 (default-linux/x86/2007.0/server, gcc-4.1.2, 
> > > glibc-2.5-r4, 2.6.17-gentoo-r8 i686)
> > > =================================================================
> > > System uname: 2.6.17-gentoo-r8 i686 Pentium II (Deschutes)
> > > Timestamp of tree: Mon, 11 Aug 2008 14:15:01 +0000
> > > distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 
> > > 3632) [disabled]
> > > ccache version 2.3 [enabled]
> > > app-shells/bash:     3.2_p33
> > > dev-lang/python:     2.5.2-r7
> > > dev-python/pycrypto: 2.0.1-r6
> > > dev-util/ccache:     2.3
> > > sys-apps/baselayout: 1.11.14-r6
> > > sys-apps/sandbox:    1.2.18.1-r2
> > > sys-devel/autoconf:  2.13, 2.61-r2
> > > sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-
> > > r1, 1.10.1
> > > sys-devel/binutils:  2.18-r3
> > > 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="-march=pentium2 -O2 -pipe"
> > > CHOST="i686-pc-linux-gnu"
> > > CONFIG_PROTECT="/etc /var/bind"
> > >
> > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-
> > >
> > active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /
> > > etc/terminfo"
> > > CXXFLAGS="-march=pentium2 -O2 -pipe"
> > > DISTDIR="/usr/portage/distfiles"
> > > FEATURES="buildpkg ccache distlocks metadata-transfer
> > parallel-fetch 
> > > sandbox sfperms strict unmerge-orphans userfetch"
> > > GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/
> > http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
> > > http://gentoo.kems.net ftp://ftp.twaren.net/Linux/Gentoo/
> > http://mirrors1.mirrors.64hosting.com/pub/mirrors/gentoo/
> > >  http://mirror.gentoo.gr.jp";
> > > MAKEOPTS="-j3"
> > > 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/webapps-experimental /usr/
> > > local/portage"
> > > SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
> > > USE="apache2 bash-completion berkdb bzip2 cjk crypt hardened 
> > > logrotate memlimit mmx ncurses nls nptl ntpl ntplonly pam perl pic 
> > > python readline samba session
> > > snmp ssl syslog tcpd unicode userlocales utf8 x86 xml xml2 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 auth_digest authn_anon 
> > > authn_dbd 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 dbd deflate dir disk_
> > > cache env expires ext_filter file_cache filter headers ident 
> > > imagemap include info log_config logio mem_cache mime mime_magic
> > > negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http 
> > > rewrite setenvif so 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" USERLAND="GNU" VIDEO_CARDS="apm ark chips 
> > > cirrus cyrix dummy fbdev glint i128 i740 i810 imstt   mach64 mga
> > > neomagic nsc nv r128 radeon rendition s3 s3virge savage      
> > > siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via 
> > > vmware
> > >         voodoo"
> > > Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, 
> > > LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS,
> > > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTs
> > >
> > 
> > 
> > 
> > 
> > 
> 

Reply via email to