PyUnicodeUCS4_AsUnicode error

F

fjs205

When I try to import gtk, or even start some programs that use Python I
get the error:

"ImportError: /usr/lib/python2.4/site-packages/gtk-2.0/gobject.so:
undefined symbol: PyUnicodeUCS4_AsUnicode"

Can anyone shed some light on this?

FWIW, I have reinstalled python, tried v2.3.4 instead of 2.4,
reinstalled GTK, searched for a unicode library problem (I reinstalled
libunicode too).

Thanks for any assistance.
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

When I try to import gtk, or even start some programs that use Python I
get the error:

"ImportError: /usr/lib/python2.4/site-packages/gtk-2.0/gobject.so:
undefined symbol: PyUnicodeUCS4_AsUnicode"

Can anyone shed some light on this?

FWIW, I have reinstalled python, tried v2.3.4 instead of 2.4,
reinstalled GTK, searched for a unicode library problem (I reinstalled
libunicode too).

It appears that your build of python-gtk does not match your Python
build. I don't know what you mean by "reinstalled GTK" - did you build
it yourself, from scratch, or did you use some kind of Linux
distribution? Also, where did you get Python-GTK from? If you also
got Python-GTK from your Linux distribution, you most likely found
a bug in that distribution - ask your Linux vendor for help. Meanwhile,
it might be easiest to uninstall Python-GTK if you don't use it.

If you built something yourself, you managed to build Python-GTK
and Python inconsistently. While the Python build is for UCS-2, your
Python-GTK build is for UCS-4. One possible cause might be that
Python-GTK was build on a different machine than Python 2.4.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,308
Members
47,963
Latest member
NancyRyl51

Latest Threads

Top