Bug 1990043

Summary: PySolFC fails to start. There is a missing module.
Product: [Fedora] Fedora Reporter: stan <gryt2>
Component: PySolFCAssignee: Sergio Basto <sergio>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: dufresnep, gryt2, jaromir.capik, sergio, shlomif
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: PySolFC-2.12.0-1.fc34 PySolFC-2.12.0-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-21 01:06:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description stan 2021-08-04 15:43:41 UTC
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.

Comment 1 Sergio Basto 2021-08-10 11:52:38 UTC
Verified

Comment 2 Ben Cotton 2021-08-10 13:34:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 3 Sergio Basto 2021-08-11 09:33:16 UTC
https://github.com/shlomif/PySolFC/issues/217

Comment 4 Sergio Basto 2021-08-11 10:44:30 UTC
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

Comment 5 stan 2021-08-11 12:54:18 UTC
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!

Comment 6 Fedora Update System 2021-08-12 18:41:26 UTC
FEDORA-2021-0e9d6a9227 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0e9d6a9227

Comment 7 Fedora Update System 2021-08-12 18:41:42 UTC
FEDORA-2021-f952747caa has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f952747caa

Comment 8 Fedora Update System 2021-08-13 01:23:34 UTC
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.

Comment 9 Fedora Update System 2021-08-13 01:53:39 UTC
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.

Comment 10 Fedora Update System 2021-08-21 01:06:12 UTC
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.

Comment 11 Fedora Update System 2021-08-21 01:19:30 UTC
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.