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