Description of problem: PySolFC fails to run because of a missing 'formatter' module. Version-Release number of selected component (if applicable): Name : PySolFC Version : 2.10.0 Release : 5.fc35 Architecture: noarch How reproducible: Every time. Steps to Reproduce: 1. Install PySolFC 2. Start 3. Actual results: $ pysol Traceback (most recent call last): File "/usr/share/PySolFC/pysol.py", line 36, in <module> from pysollib.main import main # noqa: E402,I202 File "/usr/lib/python3.10/site-packages/pysollib/main.py", line 29, in <module> from pysollib.app import Application File "/usr/lib/python3.10/site-packages/pysollib/app.py", line 31, in <module> from pysollib.actions import PysolMenubar File "/usr/lib/python3.10/site-packages/pysollib/actions.py", line 27, in <module> from pysollib.help import help_about, help_html File "/usr/lib/python3.10/site-packages/pysollib/help.py", line 28, in <module> from pysollib.pysoltk import HTMLViewer File "/usr/lib/python3.10/site-packages/pysollib/pysoltk.py", line 34, in <module> from pysollib.tile.tkhtml import * # noqa: F401,F403 File "/usr/lib/python3.10/site-packages/pysollib/tile/tkhtml.py", line 28, in <module> from pysollib.ui.tktile.tkhtml import Base_HTMLViewer File "/usr/lib/python3.10/site-packages/pysollib/ui/tktile/tkhtml.py", line 23, in <module> import formatter ModuleNotFoundError: No module named 'formatter' Expected results: The beloved game starts. :-) Additional info: I checked in previous versions of Fedora and this 'formatter' module exists there. I could not find any information on what it does, but it sounds essential, so I didn't try removing it to see what happened.
Verified
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35.
https://github.com/shlomif/PySolFC/issues/217
meanwhile from https://docs.python.org/3.10/whatsnew/3.10.html Removed the formatter module, which was deprecated in Python 3.4. It is somewhat obsolete, little used, and not tested. It was originally scheduled to be removed in Python 3.6, but such removals were delayed until after Python 2.7 EOL. Existing users should copy whatever classes they use into their code. (Contributed by Dong-hee Na and Terry J. Reedy in bpo-42299 https://bugs.python.org/issue42299.) cp /usr/lib64/python3.9/formatter.py /usr/lib64/python3.10/ fixes the problem
This worked for me too, after I ran the following two commands as root. # chmod 644 /usr/lib64/python3.10/formatter.py # chcon -u system_u /usr/lib64/python3.10/formatter.py Without those, pysol was unable to access the formatter module. Thanks for your help!
FEDORA-2021-0e9d6a9227 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0e9d6a9227
FEDORA-2021-f952747caa has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f952747caa
FEDORA-2021-0e9d6a9227 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-0e9d6a9227` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-0e9d6a9227 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-f952747caa has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f952747caa` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f952747caa See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-0e9d6a9227 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-f952747caa has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.