peterbrittain / asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Apache License 2.0
3.61k stars 238 forks source link

Incompatible with Python 3.12 (imp module removed) #381

Closed pawamoy closed 10 months ago

pawamoy commented 10 months ago

Describe the bug Asciimatics does not work on Python 3.12 because the imp module was removed from the standard library.

To Reproduce

$ python3.12 -c "from asciimatics.screen import Screen"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/media/data/dev/aria2p/__pypackages__/3.12/lib/asciimatics/screen.py", line 28, in <module>
    from future.moves.itertools import zip_longest
  File "/media/data/dev/aria2p/__pypackages__/3.12/lib/future/moves/__init__.py", line 5, in <module>
    from future.standard_library import import_top_level_modules
  File "/media/data/dev/aria2p/__pypackages__/3.12/lib/future/standard_library/__init__.py", line 65, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Expected behavior No error.

System details (please complete the following information):

Additional context This is already fixed in master branch and awaiting a release :slightly_smiling_face: Just opening for visibility/searchability.