Failed to run PlayonBSD

Hello,

I failed to run PlayonBSD. Can anyone help?

Code:
$ playonbsd
Looking for python...
Looking for python2.7... 2.7.18 - Traceback (most recent call last):
  File "/usr/local/lib/playonbsd/python/check_python.py", line 1, in <module>
    import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.6...
Looking for python2... 2.7.18 - Traceback (most recent call last):
  File "/usr/local/lib/playonbsd/python/check_python.py", line 1, in <module>
    import os, wxversion
ImportError: No module named wxversion
failed tests
Please install python before trying to run this program
 
Well, read error messages :D. Or last few lines.

Please install python before trying to run this program

So after my deep analysis, I assume you need to install Python.

Question is, if first line says that he is looking for Python3, and only then for Python2. I'd try first with 3. Python2 is EOL, but its still in pkg, so you can download it if Python3 won't work.

pkg install python37-3.7.8
pkg install python27-2.7.18
 
ImportError: No module named wxversion

Try x11-toolkits/py-wxPython-common. From the revision log:
Code:
Introduce x11-toolkits/py-wxPython30

x11-toolkits/py-wxPython28 was been modified to do not install wxversion python
files which conflict with wxPython30. Instead a new port has been created
(x11-toolkits/py-wxPython-common) which only installs wxversion and wx.pth
responsible for selecting the wxPython version.

pkg-plist:
Code:
1     %%PYTHON_SITELIBDIR%%/wx.pth
2     %%PYTHON_SITELIBDIR%%/wxversion.py
3     %%PYTHON_SITELIBDIR%%/wxversion.pyc
4     %%PYTHON_SITELIBDIR%%/wxversion.pyo
 
After installing x11-toolkits/py-wxPython-common, I got another error:

Code:
$ playonbsd
Looking for python...
Looking for python2.7... 2.7.18 - wxversion(s):
Traceback (most recent call last):
  File "/usr/local/lib/playonbsd/python/check_python.py", line 5, in <module>
    wxversion.ensureMinimal('2.8')
  File "/usr/local/lib/python2.7/site-packages/wxversion.py", line 189, in ensureMinimal
    defv = _wxPackageInfo(defaultPath, True)
  File "/usr/local/lib/python2.7/site-packages/wxversion.py", line 357, in __init__
    self.version = tuple([int(x) for x in segments[0].split('.')])
IndexError: list index out of range
failed tests
Looking for python2.6...
Looking for python2... 2.7.18 - wxversion(s):
Traceback (most recent call last):
  File "/usr/local/lib/playonbsd/python/check_python.py", line 5, in <module>
    wxversion.ensureMinimal('2.8')
  File "/usr/local/lib/python2.7/site-packages/wxversion.py", line 189, in ensureMinimal
    defv = _wxPackageInfo(defaultPath, True)
  File "/usr/local/lib/python2.7/site-packages/wxversion.py", line 357, in __init__
    self.version = tuple([int(x) for x in segments[0].split('.')])
IndexError: list index out of range
failed tests
Please install python before trying to run this program
 
The ability to play serious games is one of my main objectives to prefer FreeBSD over other OSs. We have
portfind -dr chess:
...
Results: 28 / Matches: 41

EDIT Tetris is cult, as well as other games like Leisure Suit Larry, Quake, Doom, Wolfenstein etc.pp. Of course I consider these are serious games, too. And the list is growing: e.g. I enjoy playing games/knetwalk :)
 
Back
Top