Ubuntu – PlayOnLinux won’t launch

16.04playonlinuxpythonwine

I've installed wine using this tutorial and installed the 'trusty' version of PlayOnLinux with the terminal commands from here. I tried running PlayOnLinux, it would appear on the launcher, pulse for a few seconds and then went away. I then tried opening it via command line and it showed this:

Looking for python... 2.7.12 - Traceback (most recent call last):
  File "/usr/share/playonlinux/python/check_python.py", line 1, in 
    import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.7... 2.7.12 - Traceback (most recent call last):
  File "/usr/share/playonlinux/python/check_python.py", line 1, in 
    import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.6... 
Looking for python2... 2.7.12 - Traceback (most recent call last):
  File "/usr/share/playonlinux/python/check_python.py", line 1, in 
    import os, wxversion
ImportError: No module named wxversion
failed tests
Please install python before trying to run this program

I tried using the solution given here but it didn't work for me (outdated code maybe?), it just showed

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-wxgtk2.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-wxgtk2.8' has no installation candidate

Someone in the same question said that sudo apt-get install python-wxtools fixed it for them but it tells me that I have the newest version installed.

Best Answer

Here is how I managed to get PlayOnLinux running with both python 2.7.9 (installed alongside POL) and 2.7.12 on the same machine:

First, you have to locate where python 2.7.9 is installed, mine is /usr/bin/python

After that, edit /usr/share/playonlinux/bash/find_python (you might need root-privileges)

Replace these lines:

  • next_python "python"
  • next_python "python2.7"

with next_python "/usr/bin/python".

Save & exit. Run playonlinux again.

VoilĂ .

Related Question