undefined symbol: PyUnicodeUCS4_FromUnicode

I just build PyQt from sources on Mandrake 10 and tried to run
a le gacy application from a University that
runs in several environments. I detectedno errors on the
configuration or build and the qt.so is the same in the build directory
as it is in the site-packages/qt.so.

Advertisements

Your dianosis is correct.
I compiled tcl to include UCS4 and
Python then compiled to UCS4
(nm revealed the difference).
PyQt compiled fine, However, it
still errors out the same way.
For some reason PyQt needs to be told to
include the UCS4 stuff in qt.so na d
I cannot find the key.

Are you sure about that? Are you absolutely certain that
the installed Python (/usr/local/bin/python2.3) is UCS-4?
It appears to me that it is likely UCS-2.
> PyQt compiled fine, However, it
> still errors out the same way.
> For some reason PyQt needs to be told to
> include the UCS4 stuff in qt.so na d
> I cannot find the key.

Do you happen to have Python header files both in /usr/include
and /usr/local/include? Make sure PyQt is using the ones in
/usr/local/include, if you plan to use PyQt with that Python
installation.

Martin,
Your diagnosis was correct.
When I removed the python stuff in /usr
and rebuilt everything in /usr/local
I finally got DRT to run.

Thank you.

Bill
Martin v. Löwis wrote:
> Bill Hodges wrote:
>
>> Your dianosis is correct.
>> I compiled tcl to include UCS4 and
>> Python then compiled to UCS4
>> (nm revealed the difference).
>
>
> Are you sure about that? Are you absolutely certain that
> the installed Python (/usr/local/bin/python2.3) is UCS-4?
> It appears to me that it is likely UCS-2.
>
>> PyQt compiled fine, However, it
>> still errors out the same way.
>> For some reason PyQt needs to be told to
>> include the UCS4 stuff in qt.so na d
>> I cannot find the key.
>
>
> Do you happen to have Python header files both in /usr/include
> and /usr/local/include? Make sure PyQt is using the ones in
> /usr/local/include, if you plan to use PyQt with that Python
> installation.
>
> Regards,
> Martin

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!