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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible with Python 3.12 (imp module removed)

pawamoy opened this issue · comments

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):

  • OS and version: Linux
  • Python version: 3.12
  • Python distribution: CPython
  • Asciimatics version: 1.14.0

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