undefined symbol: PyUnicodeUCS4_AsWideChar

Hi,

When I try to import wx following error message.

I am using “Python 2.3.2”

OS = Xandros 2.5

kernel version = Linux 2.4.24-x1 (i686 GNU/Linux)

“”“”"

import wx

Traceback (most recent call last):

File “”, line 1, in ?

File
“/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/init.py”,
line 42, in ?

from wx._core import *

File
“/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py”,
line 4, in ?

import _core_

ImportError: /usr/lib/python2.3/site-packages/wx/core.so: undefined
symbol: PyUnicodeUCS4_AsWideChar

“”“”“”“”

My installation process sequence is as follows:

  1. Python 2.3.2

  2. libwxgtk2.5.3-python_2.5.3.2_i386.deb

  3. python2.3-imaging_1.1.4-3_i386.deb

  4. python-imaging_1.1.4-3_all.deb

  5. wxpython2.5.3_2.5.3.2_i386.deb

Along with this basic dependencies are already installed as follows:

#basic dependency packages already installed

libc6_2.3.2.ds1-19_i386.deb

libgcc1_3.4.3-4_i386.deb

libstdc++5_3.3.4-13_i386.deb

libxcursor1_1.1.3-1_i386.deb

libexpat1_1.95.8-1_i386.deb

libxrandr2_4.3.0.dfsg.1-8_i386.deb

libxrender1_0.8.3-7_i386.deb

linux-kernel-headers_2.5.999-test7-bk-17_i386.deb

libc6-dev_2.3.2.ds1-19_i386.deb

#necessary dependency already installed

lib1g_1.2.2-1_i386.deb

libtiff4_3.6.1-2_i386.deb

libpng12-0_1.2.7-1_i386.deb

libglib2.0-0_2.4.7-1_i386.deb

libatk1.0-0_1.6.1-5_i386.deb

libpango1.0-common_1.6.0-3_i386.deb

libpango1.0-0_1.6.0-3_i386.deb

libgtk2.0-common_2.4.13-1_all.deb

libgtk2.0-0_2.4.13-1_i386.deb

libgtk2.0-bin_2.4.13-1_i386.deb

wx2.5-headers_2.5.3.2_i386.deb

libwxgtk2.5.3_2.5.3.2_i386.deb

libwxgtk2.5-dev_2.5.3.2_i386.deb

Can You Help in this issue.

Regards & Thanks in Advance

Chanchal S.

You need to compile python with UCS4 support.
Something like this:
./configure --enable-unicode=ucs4 ...

Ricardo

···

On Mon, 2005-09-12 at 12:55 +0530, IGP Dev wrote:

Hi,

When I try to import wx following error message.

I am using "Python 2.3.2"
OS = Xandros 2.5
kernel version = Linux 2.4.24-x1 (i686 GNU/Linux)

"""""
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/__init__.py", line 42, in ?
    from wx._core import *
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py",
line 4, in ?
    import _core_
ImportError: /usr/lib/python2.3/site-packages/wx/_core_.so: undefined
symbol: PyUnicodeUCS4_AsWideChar
>>>
""""""""