Gentoo Archives: gentoo-user

From: Jan Schneiders <mail@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] python2.4->python2.5->import gtk error
Date: Tue, 12 Aug 2008 08:52:31
Message-Id: 460E7172-D147-46D0-A6FF-95706877F66D@mp3ornot.com
In Reply to: [gentoo-user] python2.4->python2.5->import gtk error by Ow Mun Heng
1 After updating python you always have to run the python updater script:
2
3 # python-updater
4
5 (or did you do that already?)
6
7 On Aug 12, 2008, at 10:43 AM, Ow Mun Heng wrote:
8
9 > Just upgraded from 2.4 to 2.5 of python and I'm finding that I have
10 > issues with importing gtk.
11 >
12 > I have no idea what is happening and I've tried various methods of
13 > upgrading/re-compiling/downgrading pygobject & pygtk and python and
14 > glib
15 > and pycairo and cairo and a whole host of other packages and still
16 > this
17 > error.
18 >
19 > Google is not my friend unfortunately. I saw something like this
20 > from a
21 > debian bug report
22 > http://www.mail-archive.com/debian-bugs-closed@××××××××××××.org/msg186144.html
23 >
24 >
25 >
26 > Python 2.5.2 (r252:60911, Aug 7 2008, 23:56:43)
27 > [GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] on linux2
28 > Type "help", "copyright", "credits" or "license" for more information.
29 >>>> import gtk
30 > Traceback (most recent call last):
31 > File "<stdin>", line 1, in <module>
32 > File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py",
33 > line 38, in <module>
34 > import gobject as _gobject
35 > File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/
36 > __init__.py", line 30, in <module>
37 > from gobject.constants import *
38 > File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/
39 > constants.py", line 22, in <module>
40 > from _gobject import type_from_name
41 > ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gobject/
42 > _gobject.so: undefined symbol: PyGILState_Release
43 >
44 >
45 > emerge --info
46 > Portage 2.1.4.4 (default-linux/x86/2007.0/server, gcc-4.1.2,
47 > glibc-2.5-r4, 2.6.17-gentoo-r8 i686)
48 > =================================================================
49 > System uname: 2.6.17-gentoo-r8 i686 Pentium II (Deschutes)
50 > Timestamp of tree: Mon, 11 Aug 2008 14:15:01 +0000
51 > distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port
52 > 3632) [disabled]
53 > ccache version 2.3 [enabled]
54 > app-shells/bash: 3.2_p33
55 > dev-lang/python: 2.5.2-r7
56 > dev-python/pycrypto: 2.0.1-r6
57 > dev-util/ccache: 2.3
58 > sys-apps/baselayout: 1.11.14-r6
59 > sys-apps/sandbox: 1.2.18.1-r2
60 > sys-devel/autoconf: 2.13, 2.61-r2
61 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-
62 > r1, 1.10.1
63 > sys-devel/binutils: 2.18-r3
64 > sys-devel/gcc-config: 1.4.0-r4
65 > sys-devel/libtool: 1.5.26
66 > virtual/os-headers: 2.6.23-r3
67 > ACCEPT_KEYWORDS="x86"
68 > CBUILD="i686-pc-linux-gnu"
69 > CFLAGS="-march=pentium2 -O2 -pipe"
70 > CHOST="i686-pc-linux-gnu"
71 > CONFIG_PROTECT="/etc /var/bind"
72 > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-
73 > active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /
74 > etc/terminfo"
75 > CXXFLAGS="-march=pentium2 -O2 -pipe"
76 > DISTDIR="/usr/portage/distfiles"
77 > FEATURES="buildpkg ccache distlocks metadata-transfer parallel-fetch
78 > sandbox sfperms strict unmerge-orphans userfetch"
79 > GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
80 > http://gentoo.kems.net ftp://ftp.twaren.net/Linux/Gentoo/ http://mirrors1.mirrors.64hosting.com/pub/mirrors/gentoo/
81 > http://mirror.gentoo.gr.jp"
82 > MAKEOPTS="-j3"
83 > PKGDIR="/usr/portage/packages"
84 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
85 > --compress --force --whole-file --delete --stats
86 > --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/
87 > packages"
88 > PORTAGE_TMPDIR="/var/tmp"
89 > PORTDIR="/usr/portage"
90 > PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/
91 > local/portage"
92 > SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
93 > USE="apache2 bash-completion berkdb bzip2 cjk crypt hardened
94 > logrotate memlimit mmx ncurses nls nptl ntpl ntplonly pam perl pic
95 > python readline samba session
96 > snmp ssl syslog tcpd unicode userlocales utf8 x86 xml xml2 zlib"
97 > ALSA_CARDS="ali5451
98 > als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
99 > emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
100 > intel8x0m
101 > maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
102 > ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
103 > extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
104 > mulaw multi null plug rate route share shm softvol"
105 > APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon
106 > authn_dbd authn_dbm authn_default authn_file authz_dbm
107 > authz_default authz_groupfile authz_host authz_owner authz_user
108 > autoindex cache dav dav_fs dav_lock dbd deflate dir disk_
109 > cache env expires ext_filter file_cache filter headers ident
110 > imagemap include info log_config logio mem_cache mime mime_magic
111 > negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http
112 > rewrite setenvif so speling status unique_id userdir usertrack
113 > vhost_alias"
114 > ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
115 > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
116 > mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips
117 > cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga
118 > neomagic nsc nv r128 radeon rendition s3 s3virge savage
119 > siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via
120 > vmware
121 > voodoo"
122 > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
123 > LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS,
124 > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTs
125 >

Replies

Subject Author
Re: [gentoo-user] python2.4->python2.5->import gtk error Ow Mun Heng <Ow.Mun.Heng@×××.com>