Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134342 - "from gtk import VBox" in python give error
Summary: "from gtk import VBox" in python give error
Status: RESOLVED DUPLICATE of bug 130730
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-25 09:32 UTC by Leszek
Modified: 2006-05-26 06:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leszek 2006-05-25 09:32:29 UTC
to use the deskbar-applet i need to be able to do
"from gtk import VBox" in python

http://bugs.gentoo.org/show_bug.cgi?id=132671

python with "ucs2" use flag:
cd /usr/lib/python2.4/site-packages/gtk-2.0/gtk
python
>>> from gtk import VBox
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/gtk.py", line 22, in ?
    import _gtk
ImportError: ./_gtk.so: undefined symbol: PyUnicodeUCS2_FromUnicode

python without "ucs2" use flag:
cd /usr/lib/python2.4/site-packages/gtk-2.0/gtk
python
>>> from gtk import VBox
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/gtk.py", line 22, in ?
    import _gtk
ImportError: ./_gtk.so: undefined symbol: PyUnicodeUCS4_SetDefaultEncoding


[ebuild   R   ] dev-lang/python-2.4.3-r1  USE="X ncurses readline ssl tcltk ucs2 -berkdb -bootstrap -build -doc -gdbm -ipv6 -nocxx" 0 kB
[ebuild   R   ] dev-python/pygtk-2.8.6  USE="opengl -doc" 0 kB
[ebuild   R   ] dev-python/gnome-python-2.12.4  USE="gtkhtml -debug -doc" 0 kB
[ebuild   R   ] dev-python/gnome-python-desktop-2.14.0  USE="X -debug" 0 kB
[ebuild   R   ] dev-python/gnome-python-extras-2.14.0  USE="X -debug -doc -firefox -mozilla" 0 kB


ordi1 leszek # emerge --info
Portage 2.1_rc2-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE@euro"
LC_ALL="fr_BE@euro"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 apm arts asf avi bash-completion bitmap-fonts bonobo browserplugin bzip2 cairo cdr cjk cli crosscompile crypt ctype cups dbus dri dv dvd dvdr dvdread eds emboss encode esd evo evolution ffmpeg flac font-server foomaticdb fortran fuse gd gif glitz gnome gnomecanvas gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imlib isdnlog java joystick jpeg kde lame lcms libg++ libwww live mad mikmod mjpeg mmx mmxext mng mono motif mp3 mpeg msn mysql ncurses net network nls nptl nptlonly nsplugin nvidia ode ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php png pop pppd python qt quicktime readline real reflection samba sdk sdl session simplexml slang soap sockets softmmu spell spl sse sse2 ssl svg svga tcltk tcpd theora tiff transcode truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vcd videos vidix vorbis win32codecs wmf xanim xine xml xmlrpc xmms xorg xscreensaver xv xvid xvmc zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux linguas_fr userland_GNU video_cards_nvidia video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2006-05-26 06:20:44 UTC

*** This bug has been marked as a duplicate of 130730 ***