Comment 2 for bug 1967793

Revision history for this message
Chuck Pool (karmajun) wrote :

I too am at a loss for repairing or mitigating Ubuntu 22.04 Beta's python3.10 'deprecated formatter.py' and its status as 'obsolete, little used, and untested' in a bug-ticket found from Aug of 2021. My Pysolfc will not start on Ubuntu Beta 22.04 and it is annoying to say the least. I am not facile at coding and although I can compile programs with minor difficulty and easily follow directions with BASH, every 'fix' I've read leaves me with pysolfc in some kind of 'stutter-stop' loop.
If there are any directions for exploring the hang-ups in Beta 22.04 Ubuntu, I'd really appreciate them as I've exhausted my abilities.
Thanks
Oh I tried to document my issues using Terminal output:

:~$ Uname -a

Linux doc-Lat-E7470 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

:!$ lsb_release -crid

Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy

:~$ apt policy pysolfc

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

:~$ /usr/games/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 28, in <module>
    import pysollib.htmllib2 as htmllib
  File "/usr/share/games/pysolfc/pysollib/htmllib2.py", line 7, in <module>
    from formatter import AS_IS
ImportError: cannot import name 'AS_IS' from 'formatter' (/usr/lib/python3.10/formatter.py)

Thanks