473,378 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

undefined symbol: PyUnicodeUCS4*

Hi,

I'm running Fedora Core 3, and recently I've encountered serious problems
with apps that need python to run.
running any such app gives errors like:
ImportError: /usr/lib/python2.3/site-packages/rhpl/iconv.so: undefined
symbol: PyUnicodeUCS4_AsUTF8String
Well, all apps dont produce same error but similar errors. All undefined
symbols start with PyUnicodeUCS4.
What is wrong???

I googled for it and couldn't find anything other than a link to this
newsgroup.
I think my installation of python (python2.3) might be broken. What is the
best way to fix this?
I'd appreciate any advice on this matter.

Regards,
AR
Sep 19 '05 #1
4 10052
Analabha Roy wrote:
I'm running Fedora Core 3, and recently I've encountered serious problems
with apps that need python to run.

running any such app gives errors like:

ImportError: /usr/lib/python2.3/site-packages/rhpl/iconv.so: undefined
symbol: PyUnicodeUCS4_AsUTF8String

Well, all apps dont produce same error but similar errors. All undefined
symbols start with PyUnicodeUCS4.
What is wrong???


Python can be built with UCS2-based or UCS4-based Unicode support.
It looks like you're trying to use extensions built for a UCS4-based version
with an UCS2 build.

(I think, but I'm not sure, that installing extensions built for certain Red
Hat versions on FC3 may cause this problem)

For instructions on how to build the core interpreter with Unicode
support, run "./configure --help" and look for the "--enable-unicode"
option.

</F>

Sep 20 '05 #2
Fredrik Lundh wrote:
Analabha Roy wrote:
I'm running Fedora Core 3, and recently I've encountered serious problems
with apps that need python to run.

running any such app gives errors like:

ImportError: /usr/lib/python2.3/site-packages/rhpl/iconv.so: undefined
symbol: PyUnicodeUCS4_AsUTF8String

Well, all apps dont produce same error but similar errors. All undefined
symbols start with PyUnicodeUCS4.
What is wrong???
Python can be built with UCS2-based or UCS4-based Unicode support.
It looks like you're trying to use extensions built for a UCS4-based
version with an UCS2 build.


Thanks for your response.
I did not build python from source at all, but installed it from rpm
(python-2.3.4-13.1) downloaded from fc3 repositories.

Is it necessary to build it from source? If so, should I download the
tarball from their website or downlaod some kind of "python-devel" rpm?


(I think, but I'm not sure, that installing extensions built for certain
Red Hat versions on FC3 may cause this problem)

For instructions on how to build the core interpreter with Unicode
support, run "./configure --help" and look for the "--enable-unicode"
option.

</F>


Sep 20 '05 #3
Analabha Roy wrote:
I did not build python from source at all, but installed it from rpm
(python-2.3.4-13.1) downloaded from fc3 repositories.


the problem isn't with the python interpreter, it's that you're using
add-on libraries that don't match your interpreter installation.

where did you get the RHPL library, for example?

ImportError: /usr/lib/python2.3/site-packages/rhpl/iconv.so:
undefined symbol: PyUnicodeUCS4_AsUTF8String

(iirc, RHPL is the RedHat Python Library)

</F>

Sep 20 '05 #4
Fredrik Lundh wrote:
Analabha Roy wrote:
I did not build python from source at all, but installed it from rpm
(python-2.3.4-13.1) downloaded from fc3 repositories.
the problem isn't with the python interpreter, it's that you're using
add-on libraries that don't match your interpreter installation.

where did you get the RHPL library, for example?

ImportError: /usr/lib/python2.3/site-packages/rhpl/iconv.so:
undefined symbol: PyUnicodeUCS4_AsUTF8String

Oh, ok. Everything in my system is installed from rpms from apt repos for
Fedora Core 3. For instance

$rpm -qa|grep rhpl

rhpl-0.148.1-2

Which I got from one of the repos in my /etc/apt/sources.list file

For some reason, FC-3 installed both python2.3 and python2.4. It could be
that the addon libraries are for python2.4, but are configged to use
python2.3 interpreter or something (you'll have to excuse my ignorance
about such matters, I've not learned python).
I uninstalled python2.4 completely, and rpm uninstalled some python bindings
for other things as dependencies. Presumably, the rpm deps left
(PyQT, pygtk, rhpl etc)
should contain those 'add-on' libraries you mentioned (I dunno though) and
they depend on the python2.3 rpm (still installed). However, the same
problems above remain. Unless the packages are broken, what else could be
wrong?
(iirc, RHPL is the RedHat Python Library)

</F>


Sep 20 '05 #5

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

Similar topics

1
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...
0
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) ...
8
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:...
2
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...
4
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...
8
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:...
1
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...
1
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.