Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: NickStone on 25 November 2018, 12:35:30

Title: Pysol won't run
Post by: NickStone on 25 November 2018, 12:35:30
After my last computer dies on me, and having got a newer computer (a Packard Bell(end)). I have had to re-install Artix on the newer computer using the latest iso.

One app I installed as a game called Pysol, however when trying to run this app I get the following message.
Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/pysol", line 28, in <module>
    init()
  File "/usr/lib/python3.7/site-packages/pysollib/init.py", line 92, in init
    from six.moves import tkinter
ModuleNotFoundError: No module named 'six'

Any help would be appreciated.

Thank you.
Title: Re: Pysol won't run
Post by: nous on 26 November 2018, 13:32:45
Install python-six or python2-six.
Title: Re: Pysol won't run
Post by: NickStone on 27 November 2018, 22:52:45
Thanks for the suggestion but still won't run.

Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/pysol", line 28, in <module>
    init()
  File "/usr/lib/python3.7/site-packages/pysollib/init.py", line 93, in init
    root = tkinter.Tk(className=pysollib.settings.TITLE)
  File "/usr/lib/python3.7/tkinter/__init__.py", line 2023, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: unknown color name "BACKGROUND"
Title: Re: Pysol won't run
Post by: Dudemanguy on 28 November 2018, 15:38:08
Read the error messages. They are helpful. The relevant line in your case is:

Code: [Select]
_tkinter.TclError: unknown color name "BACKGROUND"

This could be a wide variety of things. Make sure that you have all the dependencies required for Pysol installed and that you are using the correct python version (i.e. 2 or 3). If all that is good, and you are still getting that message, then it's probably something upstream and you should send them a bug report.
Title: Re: Pysol won't run
Post by: nous on 02 December 2018, 12:50:39
This is a TCL/Tk error; the background color is expected to be read from some environment variable or config file (useful for working right in both light and dark themes), which fails.

See this (http://www.pclinuxos.com/forum/index.php/topic,135335.msg1152306.html#msg1152306) and this (https://forum.manjaro.org/t/pysol-wont-run-on-mate/57228/9) for a possible solution.
Title: Re: Pysol won't run
Post by: NickStone on 11 August 2019, 16:08:11
Pysolfc has now been updated and works. Thank you Arch