mwthrane
October 21st, 2006, 01:44 AM
Hi
Ive run thru some basics around python succesfully. I didnt find it too hard so i wanted to try something harder and wanted to install wxpython. I installed it via apt-get. But for some reason it put the files in Python 2.4 dir, and im using Python 2.5. So i moved the files from python2.4 site-packages to 2.5 site-packages.
Before i did that i got could not load wxpython module.
Now im getting:
$ python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import wx
File "/usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py", line 42, in <module>
from wx._core import *
File "/usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 4, in <module>
import _core_
ImportError: /usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject
How to fix this so i can use wxpython.
Alternatively if this wont work, how can i revert back and use python 2.4. It would probably work under 2.4.
So when i type python in terminal it tells me im using 2.4. Now it obviously says 2.5.
Thanks in advance.
Ive run thru some basics around python succesfully. I didnt find it too hard so i wanted to try something harder and wanted to install wxpython. I installed it via apt-get. But for some reason it put the files in Python 2.4 dir, and im using Python 2.5. So i moved the files from python2.4 site-packages to 2.5 site-packages.
Before i did that i got could not load wxpython module.
Now im getting:
$ python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import wx
File "/usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py", line 42, in <module>
from wx._core import *
File "/usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 4, in <module>
import _core_
ImportError: /usr/local/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core_.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject
How to fix this so i can use wxpython.
Alternatively if this wont work, how can i revert back and use python 2.4. It would probably work under 2.4.
So when i type python in terminal it tells me im using 2.4. Now it obviously says 2.5.
Thanks in advance.