Skip to content

Breaks with Python 3.12 due to removal of distutils  #34

Closed

Description

@Dark-Sider

I found that uni-curses breaks with Python 3.12 due to distutils being removed (https://docs.python.org/3.10/library/distutils.html):

  File "C:\Python312\Lib\site-packages\unicurses\__init__.py", line 23, in <module>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

I installed Python via their official site and installed unicurses vie pip install uni-curses

I was able to use unicurses after removing line 23 from __init__.py by putting a # infront of the line.

My code is working again, but I don't know if this a valid fix for everyone

Activity

  1. GiorgosXou commented on Feb 25, 2024

    @GiorgosXou
    Member

    Oh... Thanks for the catch! It should be removed, this is a valid fix. (It was there since version 1.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions