undefined symbol in _core, gtk2, on Fedora Core 2

I've been unable to import wx after installing wxPythonGTK2 RPMs on a
Fedora Core 2. Here is the traceback after an interactive attempt:

Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] 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/lib/python2.3/site-packages/wx/__init__.py", line 19, in ?
    from wx.core import *
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 4, in ?
    import _core
ImportError: /usr/lib/wxPython-2.5.1.5/lib/libwx_gtk2ud_core-2.5.so.1:
undefined symbol: XineramaIsActive

The packages I have installed were:

wxPythonGTK2-py2.3-2.5.1.5-1.i386.rpm
wxPythonGTK2-devel-2.5.1.5-1.i386.rpm

No errors were reported when installing the packages.

After googling for that error message, I've found a discussion in
Spanish here:

http://listas.aditel.org/archivos/python-es/2004-May/004667.html

However, the thread suggests ignoring the RPMs and building from source.
Should I follow that advice or is there a way to make the RPMs work on
FC2?

Cheers!

···

--
Luciano

Luciano Ramalho wrote:

I've been unable to import wx after installing wxPythonGTK2 RPMs on a
Fedora Core 2. Here is the traceback after an interactive attempt:

Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] 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/lib/python2.3/site-packages/wx/__init__.py", line 19, in ?
    from wx.core import *
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 4, in ?
    import _core
ImportError: /usr/lib/wxPython-2.5.1.5/lib/libwx_gtk2ud_core-2.5.so.1:
undefined symbol: XineramaIsActive

The packages I have installed were:

wxPythonGTK2-py2.3-2.5.1.5-1.i386.rpm
wxPythonGTK2-devel-2.5.1.5-1.i386.rpm

No errors were reported when installing the packages.

After googling for that error message, I've found a discussion in
Spanish here:

http://listas.aditel.org/archivos/python-es/2004-May/004667.html

However, the thread suggests ignoring the RPMs and building from source.
Should I follow that advice or is there a way to make the RPMs work on
FC2?

IIUC, there is a difference in some of the X libs between FC2 and the RH9 box that I built the RPMs on that causes this error. So yes, you'll need to rebuild from source. You can create your own RPMs by rebuilding from the wxPython SRPM.

···

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