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