Okay. I'll go dig through the debian libraries and see if I can find a wxPython or python-wx for 2.6
edit:
So, it turns out that wxPython isn't in the main debian repositories, or at least it's not in mine. I downloaded the tar.gz from the wxPython website and unpacked it into a folder. After that, I went through the whole sequence of "./configure" then "make" then "make install".
Going down to reboot to see if that clears up the problems.
edit 2:
So I've got the wxPython core all installed and now I'm getting this error:
Traceback (most recent call last):
File "mainwindow.py", line 30, in <module>
import wx
ImportError: No module named wx
Line 30 being the third line of execution in mainwindow.py So, perhaps I need to set an environment variable?
There's some commented out code just before line 30, and it looks familiar. It looks like the code that was involved in the other "too many arguments error" thread. But that was a different linux and possibly a different issue with python versions.
#try:
# locale.getlocale()
#except:
# os.environ["LANG"] = "en_US.utf-8"
#locale.setlocale(locale.LC_ALL, '.utf-8')
edit 3:
I solved the line 30 problem. I went to this directory:
/usr/lib/python2.6/dist-packages
and modified a file named pygst.pth I appended two directory names into that file:
wx-2.6-gtk2-unicode
wx-2.8-gtk2-unicode
And now the POL scripts can find the wx module. However I have a new problem.
File "/usr/share/playonlinux/python/lib/lng.py", line 5, in <module>
import wxversion
ImportError: No module named wxversion
lng.py is trying to import wxversion, but i have wxversion.py in my python folders. what do i do now?
edit 4:
Got it. I had my Lenny and Squeeze debian releases intermingling somehow. I went through the package manager and uninstalled wxversion for python. I dropped all my repositories except Squeeze, reinstalled, and now I'm working on configuring POL.
hope this helps anyone in the future. DONT MIX YOUR DEBIAN RELEASES and DONT MIX MANUAL AND MANAGER INSTALLATIONS. it's a pain in the ass XD
Edité par nanomagnetic