I’m in the midst of installing wxPython to a new linux computer (debian lenny). I have python2.5 installed and have been able to (1) compile wxWidgets (“make” with a bunch of options suggested by the wxPython build guide), and (2) install wxWidgets (“make install”). I was able to then compile wxPython (
python2.5 setup.py build_ext --inplace --debug) with no problems. If I stay in the wxPython build directory and run python2.5 there and do “import wx”, I can import wx with no errors. If I next do python2.5 setup.py
install to install wxPython to site-packages, then run python2.5 elsewhere (i.e. not in the wxPython build dir), when I do “import wx”, I get the error pasted below. Something must not be getting installed properly. This is odd to me because I’ve set up wxPython on a separate (and recently deceased) linux machine (debian etch), and I never saw an error like this. Any ideas - or need more info?
thanks,
paul
Python 2.5.1 (r251:54863, Jan 14 2008, 15:09:23)
[GCC 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/init.py”, line 45, in
from wx._core import *
File “/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line 4, in
import core
ImportError: /usr/local/lib/python2.5/site-packages/wx-
2.8-gtk2-unicode/wx/core.so: undefined symbol: _ZNK14wxImageHandler12GetClassInfoEv