Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pysol dosen't run in Ubuntu 22.04 #253

Closed
feenix3k opened this issue Apr 28, 2022 · 3 comments
Closed

Pysol dosen't run in Ubuntu 22.04 #253

feenix3k opened this issue Apr 28, 2022 · 3 comments

Comments

@feenix3k
Copy link

It would seem a python module named 'formatter' is no longer available. PysolFC will not start without it,

Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
pysolfc:
Installed: 2.6.4-3
Candidate: 2.6.4-3
Version table:
*** 2.6.4-3 500
500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64
Packages
500 http://us.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
100 /var/lib/dpkg/status
Traceback (most recent call last):
File "/usr/games/pysolfc", line 36, in
from pysollib.main import main # noqa: E402,I202
File "/usr/share/games/pysolfc/pysollib/main.py", line 30, in
from pysollib.app import Application
File "/usr/share/games/pysolfc/pysollib/app.py", line 32, in
from pysollib.images import Images, SubsampledImages
File "/usr/share/games/pysolfc/pysollib/images.py", line 28, in
from pysollib.pysoltk import copyImage, createBottom, createImage,
loadImage
File "/usr/share/games/pysolfc/pysollib/pysoltk.py", line 35, in
from pysollib.tile.tkhtml import * # noqa: F401,F403
File "/usr/share/games/pysolfc/pysollib/tile/tkhtml.py", line 29, in

from pysollib.ui.tktile.tkhtml import Base_HTMLViewer
File "/usr/share/games/pysolfc/pysollib/ui/tktile/tkhtml.py", line 24, in

import formatter
ModuleNotFoundError: No module named 'formatter'

@joeraz
Copy link
Collaborator

joeraz commented Apr 28, 2022

The "formatter" module of Python was removed in Python 3.10. We've since updated PySolFC to account for its absence, though versions of PySolFC prior to 2.14.0 are not compatible with Python 3.10.

In order to fix this, you can either update PySolFC to 2.14.0 or later, or downgrade Python to 3.9 or earlier.

@joeraz
Copy link
Collaborator

joeraz commented Aug 22, 2022

Just to confirm, the latest PySolFC releases do not have this issue. It sounds like the people maintaining the app bundles for Ubuntu are behind a few releases, and if you run across this issue (with any distribution), I'd suggest contacting them. I only maintain the releases posted on the main PySolFC site.

Will leave this open for a little bit so people are aware of this.

@joeraz
Copy link
Collaborator

joeraz commented Jan 25, 2023

I added an FAQ page to the main website, with this issue being the first item in it.

Closing now.

@joeraz joeraz closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants