[wxPython] RedHat 7.2 and wxPython

Hi everyone,

I'm having problems getting the wxPython demo to run under RedHat 7.2, I'm also a relative Linux newbie, so bear with me please <g>. I've set up a link in the /usr/bin directory like this:

ln -s python2.1 python

So that entering 'python' at the command line will run python 2.1 rather than 1.5. I've downloaded the wxPython2.1 RPM file from www.wxPython.org and installed it on my RedHat Linux 7.2 system, that seemed to go okay, after I installed wxGTK-2.3 onto the system as well. However, the demo.py won't run and I'm not sure what to do about it. When I go to the /usr/src/python/wxPython-2.3 directory (where I saved the demo) and enter the command 'python demo.py' I get the following errors:

Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 15, in ?
    from wxPython.wx import *
  File "/usr/lib/python2.1/site-packages/wxPython/__init__.py", line 20, in ?
    import wxc
ImportError: /usr/lib/python2.1/site-packages/wxPython/wxc.so: undefined symbol: RemoveChild__7wxPanelP12wxWindowBase

Can anyone tell me what this means and what I should do about it? I don't have a PYTHONPATH environment variable set and I'm thinking I should, but I don't know what it should be set to or what kinds of things go in there.

Any help would be greatly appreciated,
Doug Farrell
Scholastic, Inc.

Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 15, in ?
    from wxPython.wx import *
  File "/usr/lib/python2.1/site-packages/wxPython/__init__.py", line 20,

in

?
    import wxc
ImportError: /usr/lib/python2.1/site-packages/wxPython/wxc.so: undefined
symbol: RemoveChild__7wxPanelP12wxWindowBase

Can anyone tell me what this means and what I should do about it?

Do the exact version numbers of wxPython and wxGTK match? (Not just 2.3 but
to all three places in the version number: 2.3.1, etc.)

I don't
have a PYTHONPATH environment variable set and I'm thinking I should,

No, it's finding the module just fine. The problem comes later when the
module tries to import the wxGTK shared library.

···

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