pysolfc - mint21

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
howiebinnz
Level 1
Level 1
Posts: 5
Joined: Sun Jan 03, 2016 3:37 am

pysolfc - mint21

Post by howiebinnz »

Not sure if this should be here or gaming...
Just completed an upgrade to mint21 and all seemed to go smoothly.
I only us laptop for email and web browsing. Went to play the only game I have installed while waiting for mail "Pysolfc" and no go. Tried to start from command line with following output:

Code: Select all

$ pysolfc
Traceback (most recent call last):
  File "/usr/games/pysolfc", line 36, in <module>
    from pysollib.main import main  # noqa: E402,I202
  File "/usr/share/games/pysolfc/pysollib/main.py", line 30, in <module>
    from pysollib.app import Application
  File "/usr/share/games/pysolfc/pysollib/app.py", line 32, in <module>
    from pysollib.images import Images, SubsampledImages
  File "/usr/share/games/pysolfc/pysollib/images.py", line 28, in <module>
    from pysollib.pysoltk import copyImage, createBottom, createImage, loadImage
  File "/usr/share/games/pysolfc/pysollib/pysoltk.py", line 35, in <module>
    from pysollib.tile.tkhtml import *  # noqa: F401,F403
  File "/usr/share/games/pysolfc/pysollib/tile/tkhtml.py", line 29, in <module>
    from pysollib.ui.tktile.tkhtml import Base_HTMLViewer
  File "/usr/share/games/pysolfc/pysollib/ui/tktile/tkhtml.py", line 24, in <module>
    import formatter
ModuleNotFoundError: No module named 'formatter'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_games_pysolfc_pysol.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/games/pysolfc", line 36, in <module>
    from pysollib.main import main  # noqa: E402,I202
  File "/usr/share/games/pysolfc/pysollib/main.py", line 30, in <module>
    from pysollib.app import Application
  File "/usr/share/games/pysolfc/pysollib/app.py", line 32, in <module>
    from pysollib.images import Images, SubsampledImages
  File "/usr/share/games/pysolfc/pysollib/images.py", line 28, in <module>
    from pysollib.pysoltk import copyImage, createBottom, createImage, loadImage
  File "/usr/share/games/pysolfc/pysollib/pysoltk.py", line 35, in <module>
    from pysollib.tile.tkhtml import *  # noqa: F401,F403
  File "/usr/share/games/pysolfc/pysollib/tile/tkhtml.py", line 29, in <module>
    from pysollib.ui.tktile.tkhtml import Base_HTMLViewer
  File "/usr/share/games/pysolfc/pysollib/ui/tktile/tkhtml.py", line 24, in <module>
    import formatter
ModuleNotFoundError: No module named 'formatter'
Any help to resolve would be much appreciated....probably by quite a few.
Last edited by LockBot on Sat Feb 11, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
spamegg
Level 14
Level 14
Posts: 5117
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: pysolfc - mint21

Post by spamegg »

Try

Code: Select all

pip install formatter
willendorfer
Level 1
Level 1
Posts: 33
Joined: Sun Jul 08, 2018 4:22 pm

Re: pysolfc - mint21

Post by willendorfer »

I'm having the same problem. I tried the suggestion above (pip3 install formatter), but I get the following error message:

Defaulting to user installation because normal site-packages is not writeable
Collecting formatter
Using cached formatter-1.0.3.tar.gz (17 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-rtarxu8f/formatter_527b5ebc7cf040058d4cea5c4d8012b6/setup.py", line 2, in <module>
import formatter as metadata
File "/tmp/pip-install-rtarxu8f/formatter_527b5ebc7cf040058d4cea5c4d8012b6/formatter/__init__.py", line 9, in <module>
from .formatter import Formatter
File "/tmp/pip-install-rtarxu8f/formatter_527b5ebc7cf040058d4cea5c4d8012b6/formatter/formatter.py", line 4, in <module>
from cStringIO import StringIO
ModuleNotFoundError: No module named 'cStringIO'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
billyswong
Level 8
Level 8
Posts: 2239
Joined: Wed Aug 14, 2019 1:02 am

Re: pysolfc - mint21

Post by billyswong »

I wrote instruction of a hack fix in viewtopic.php?f=225&t=379741
Locked

Return to “Software & Applications”