473,803 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

undefined symbol: PyUnicodeUCS4_F romUnicode

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.

output is:

psyco installed and used
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/drt/drt.py", line 40, in ?
from qt import *
ImportError: /usr/lib/python2.3/site-packages/qt.so: undefined symbol:
PyUnicodeUCS4_F romUnicode

Any pointers on how to resolve?
Jul 18 '05 #1
4 7772
Bill Hodges wrote:
output is:

psyco installed and used
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/drt/drt.py", line 40, in ?
from qt import *
ImportError: /usr/lib/python2.3/site-packages/qt.so: undefined symbol:
PyUnicodeUCS4_F romUnicode

Any pointers on how to resolve?


It appears that you have built qt.so for UCS-4, but the installed Python
is UCS-2. Do "nm -D /usr/bin/python2.3|grep UCS" to verify that.

If so, make sure the pyconfig.h that you are using belongs to the
/usr/bin/python you are using.

Regards,
Martin
Jul 18 '05 #2
Martin,

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.

Do you have another suggestion.
----------------------------------------------------------
drt
psyco installed and used
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/drt/drt.py", line 40, in ?
from qt import *
ImportError: /usr/lib/python2.3/site-packages/qt.so: undefined symbol:
PyUnicodeUCS4_F romUnicode
Martin v. Löwis wrote:
Bill Hodges wrote:
output is:

psyco installed and used
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/drt/drt.py", line 40, in ?
from qt import *
ImportError: /usr/lib/python2.3/site-packages/qt.so: undefined symbol:
PyUnicodeUCS4_F romUnicode

Any pointers on how to resolve?

It appears that you have built qt.so for UCS-4, but the installed Python
is UCS-2. Do "nm -D /usr/bin/python2.3|grep UCS" to verify that.

If so, make sure the pyconfig.h that you are using belongs to the
/usr/bin/python you are using.

Regards,
Martin

Jul 18 '05 #3
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
Jul 18 '05 #4
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

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11269
by: Stu | last post by:
I am trying to build the xerces shared library with 2.3.0 version of their source code on an AIX 5.1 32 bit machine with the following version of the g++ compiler /usr/local/bin/g++ -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.1/specs Configured with: ../gcc-3.3.1/configure --disable-nls Thread model: aix gcc version 3.3.1
0
1771
by: pervinder | last post by:
Hi, I have a c++ application which depends on some other libs which uses stlport When i build the application, it works fine on sun/linux/hp platform. (provided the .a for the dependency libs) But it errors out on AIX ( xlC va6) with below errors:- ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::_Loc_init::_Loc_init() ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::Init() ld: 0711-317 ERROR: Undefined symbol:...
8
4597
by: Scott J. McCaughrin | last post by:
The following program compiles fine but elicits this message from the linker: "undefined reference to VarArray::funct" and thus fails. It seems to behave as if the static data-member: VarArray::funct were an extern, but it is declared in the same file (q.v.). What is the remedy for this? =================
2
5260
by: el prinCipante | last post by:
I am a total novice. And granted this probably is a very simple question, it still stops me from finishing my thesis. Thanks in advance for any postings. I am using a library routine and apparently I have all the necessarý files to compile properly. But my compiler comes up with the following message link samain,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1
4
5733
by: r.nikhilk | last post by:
Hi, We are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by including the -q64 option in xlC compiler. But, when we link all these libraries to one of the main applications, we are getting the following errors: ld: 0711-317 ERROR: Undefined symbol: .FxCharFile::good() const ld: 0711-317 ERROR: Undefined symbol:...
8
18056
by: pavan734 | last post by:
Hello, Please excuse me as Iam not posting this to correct group. I have a parser code obtained from flex command. I have many other files. When I compile them Iam getting a message like: undefined symbol yylex. What might have went wrong?
1
5551
by: yamitmehta | last post by:
When I compile to code using g++arm of VxWorks 5.5 and put it on my board i get the follwing undefined symbols:- Cpool and Csingleton are template classes. CPool has the static member variables:-ms_uCapacity ,ms_uAllocatedCount , ms_uLockCapacity ,ms_pmutex -ld < yamit/apps1.out Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uCapacity (binding 1 type 0) Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uAllocatedCount
1
4916
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined symbols. See the output from configure and make below. svnadm /svn/build/python-2.5.0>env CC=cc CXX=xlC ./configure --prefix=$base_dir \ checking MACHDEP... aix5
1
6062
by: Michel Esber | last post by:
People, Environment: Linux AS4 I have just installed db2 v9.5 + Fixpak 2 on a machine that has db2 v8 up and running, but I am unable to create and instance: # ./db2icrt -a SERVER -p 50002 -s wse - u db2inst2 db2inst2 /opt/ibm/db2/V9.5/bin/db2greg: symbol lookup error: /opt/ibm/db2/V9.5/
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.