Hi,
I built python2.7 from source, then downloaded the source for wxPython
and built that.
I used the following configure for wxWidgets...
./configure --prefix=/home/me --enable-unicode --with-mediactrl --
enable-shared --with-opengl
which was fine.
I then went into wxPython and did
python setup.py build
python setup.py install
i then tried to use it...
$ python
Python 2.7.1 (r271:86832, Apr 14 2011, 15:11:33)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wx/__init__.py", line 45, in <module>
from wx._core import *
File "wx/_core.py", line 4, in <module>
import _core_
ImportError: No module named _core_
import _core_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named _core_
wxPython was installed to /usr/local/lib/python2.7/site-packages/
wx-2.8-gtk2-unicode
in the directory wx under there, there was no _core_.pyc. There was
however a _core.pyc.
I did...
cp _core.pyc _core_.pyc
and now it works fine.
I think there must be a typo in a Makefile or something as this
shouldn't need to be done.
Cheers,
Emyr