Re: undefined symbol: PyUnicodeUCS2_FromUnicode

From: Eric Moors (scare.crow_at_oz.land)
Date: 02/24/04


Date: Tue, 24 Feb 2004 15:08:13 +0100

Daniel Dittmar wrote:

> Eric Moors wrote:
>> /home/me>redhat-config-services
>> ImportError: /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtk.so:
> undefined
>> symbol: PyUnicodeUCS2_FromUnicode
>
> Python on RedHat 9 is compiled with 4 byte unicode characters (UCS4), most
> other distributions use 2 byte unicode characters (UCS2). So if you
> install a rpm compiled on a different system, this error is bound to

I have installed mandrake's synaptic, but that is replaced, and maybe some
fedora core rpms. The rest are RH9 dedicated RPMS or compiled at my machine

Just checked, the only fedora core RPM I had was for wine. I removed it,
just to be sure. No change (None expected)

> happen. Solution: compile the python module from source, but this requires
> that the sources of the module have been prepared to deal with UCS4.

Thanks, but...
Which module? Is this a gtk thing? (The name does suggest this)
but `rpm -qf _gtk.so` shows that _gtk.so doesn't belong to any package.
Yet gtk is installed by rpm.

Aargh. So this is probably something I installed from a tarball.

I can remove it manually (and _gtk.la), but then the program fails with:

Fatal Python error: could not import pango
/usr/share/redhat-config-services/redhat-config-services: line 4: 13918
Aborted /usr/bin/python
/usr/share/redhat-config-services/serviceconf.py

It must probably also possible to trace this back, but I am severly lacking
python knowledge to do this. Any pointers?

Eric



Relevant Pages

  • Re: new FC1 install problems
    ... >> My main box lost its ability to run anything gtk or gnome related, ... > RH8 were installed from source and where no RPM packages. ... >there is only the way of a fresh new install. ...
    (Fedora)
  • Re: Dependencies
    ... Should you install it or no? ... RPM is just a low-level tool that does one thing and that one ... If getting the GPG keys causes you heartburn, ... > To stay in the RPM subject, Apache give keys for their tarball versions. ...
    (linux.redhat)
  • Re: Three newbie questions!
    ... You can see the main groups, then the applications ... Until you get to know the names of applications, it is best to use RPM ... You normally find a README, an INSTALL, and a doc ... If you have installed any libraries, then you must run the following ...
    (comp.os.linux.setup)
  • FW: [SLE] YaST Online Update Problem
    ... >>update one of the rpms manually to see if rpm will give you a better error ... >SuSE to try to apply one of the patches? ... >I've always used YaST for Online Updates and for installing new packages. ... Not only that, but at the end of the install, it ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... just don't trust java and rpm in the same breath, ... recall that when building packages, you always opt for ./configure && ... make && make install and I don't recall a single instance where you have ... I rebuilt kde to kde-3.3.0 using konstruct, didn't fix it. ...
    (Fedora)