Hi
1. I am trying to install wxWidgets and wxPython on an SGI Altix,
IA64 server running SuSe Linux, SLES 10
2. I am installing from a source build (version wxPython-src-2.8.10.1)
3. I am using python V 2.6 (built from source)
4. All builds are with the GNU compilers
5. The prerequisites are all in place via system RPMs
6. I have built and installed wxWidgets in /usr/local/wx-2.8
(following the BUILD.html instructions) with no special
options
7. I have built and installed wxPython via the instructions
in BUILD.html via
- python setup.py build_ext --inplace --debug WX_CONFIG=/usr/local/
wx-2.8/bin/wx-config
- python setup.py install WX_CONFIG=/usr/local/wx-2.8/bin/wx-
config
8. This locates the wx package in the python 2.6 tree as below:
# ls /usr/local/python-2.6/lib/python2.6/site-packages/
nifti numpy-1.4.0rc1-py2.6.egg-info
scipy-0.7.1-py2.6.egg-info wxversion.py
nose pynifti-0.20090303.1-py2.6.egg-info
wx-2.8-gtk2-unicode wxversion.pyc
nose-0.10.4-py2.6.egg-info README
wx.pth
numpy scipy
wxPython_common-2.8.10.1-py2.6.egg-info
The wx.path file correctly points at wx-2.8-gtk2-unicode which
contains:
# ls /usr/local/python-2.6/lib/python2.6/site-packages/wx-2.8-gtk2-
unicode/
wx wxPython wxPython-2.8.10.1-py2.6.egg-info
9. Trying to import the package:
Python 2.6.4 (r264:75706, Dec 23 2009, 14:55:37)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named wx
10. Google suggests I must do (don't know why)
import wxversion
wxversion.select('2.8')
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/python-2.6.4/lib/python2.6/site-packages/wx-2.8-
gtk2-unicode/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/usr/local/python-2.6.4/lib/python2.6/site-packages/wx-2.8-
gtk2-unicode/wx/_core.py", line 4, in <module>
import _core_
ImportError: /usr/local/python-2.6.4/lib/python2.6/site-packages/
wx-2.8-gtk2-unicode/wx/_core_.so: undefined symbol:
_ZNK14wxImageHandler12GetClassInfoEv
which seems to be progress in that at least it find the package
although there is an unresolved symbol.
11. ldd on this library shows:
# ldd _core_.so
linux-gate.so.1 => (0xa000000000000000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x2000000800404000)
libm.so.6.1 => /lib/libm.so.6.1 (0x20000008005c4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2000000800694000)
libunwind.so.7 => /lib/libunwind.so.7 (0x20000008006b4000)
libpthread.so.0 => /lib/libpthread.so.0 (0x2000000800700000)
libc.so.6.1 => /lib/libc.so.6.1 (0x200000080073c000)
/lib/ld-linux-ia64.so.2 (0x2000000800000000)
which are all system libraries.
12. I am just installing this for someone, I am not a user, so I am
not familiar
with where the ImageHandler symbol should be supplied.
any help appreciated
thanks
Neil