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