Failure on import in 2.5.2.8 on RH 9...

Hi all...

I'm getting "undefined symbols" problems with 2.5.2.8 on a RedHat 9...
(Pthyon 2.3.4)

···

*********************************************************************
[me@home]$ python
Python 2.3.4 (#1, Sep 8 2004, 21:27:10)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx

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

**********************************************************************

Any ideas ? Does this mean that I'm (not) compiling something as
Unicode that I should (not) have ?

Thanks,
Fred.

Fred Mailhot wrote:

Hi all...

I'm getting "undefined symbols" problems with 2.5.2.8 on a RedHat 9...
(Pthyon 2.3.4)

*********************************************************************
[me@home]$ python
Python 2.3.4 (#1, Sep 8 2004, 21:27:10)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx

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

**********************************************************************

Any ideas ? Does this mean that I'm (not) compiling something as
Unicode that I should (not) have ?

Did you compile wxPython too or just Python? If you did both then are you sure that you used /usr/local/bin/python to run wxPython's setup.py? If so, then did you build Python with the --enable-shared config option? If so then it may be loading the wrong shared lib, try making a static verison of it instead.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!