[wxPython] wxPython installation

Hello,

I am trying to install wxPython on my machine details as follows:

SuSE 7.1
Kernel 2.2.18
glibc 2.2.0
wxGTK 2.3.2

The development components of glib and GTK have also been installed.

To install wxGTK I had to edit the makefile to modify lex.yy.c to lexyy.c

I have downloaded the wxPython-2.3.2.1.tar.gz (I also tried installation with
wxPython-2.3.21.tar.gz but end up in the same place).

To install wxPython I am modifying the setup.py file to set
BUILD_GLCANVAS = 0 as I don't want to use OpenGL/Mesa.

As user it appears that "python setup.py build" successfully runs, it indeed
took a long time and I then changed to root and ran "python setup.py
install", as per the instructions, this also appears to have run
successfully, ie warning messages but no final error messages. When I try to
test the demo or any other wxPython application I get the following result.

linux:/home/robertl/backup/programs/wxPython-2.3.2 # python demo/demo.py
Traceback (most recent call last):
  File "demo/demo.py", line 3, in ?
    import Main
  File "demo/Main.py", line 15, in ?
    from wxPython.wx import *
  File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py",
line 20, in ?
    import wxc
ImportError: undefined symbol: wxExprCleanUp

What is going on?

I'd be happy to provide any further assistance or information to help solve
the problem.

Regards

···

--
Robert Lort
robertl@thehub.com.au

    import wxc
ImportError: undefined symbol: wxExprCleanUp

What is going on?

Is there any possibility that there is a different wxGTK already installed
on your system? Try "ldd
/usr/local/lib/python2.2/site-packages/wxPython/wxc.so" and ensure that the
libwx_gtk* that it prints is the one that you just built and installed. If
so, is the first wx-config that is found on the PATH also the one that you
installed?

···

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