Skip to content

Python 3.12 compatibility: distutils is no longer available #102

Description

@hvbtup

Maybe it's time to remove support for dmtx version < 0.75 and remove the if statements.

distutils (and distutils.LooseVersion) are no longer available on Python 3.12:

from pylibdmtx import pylibdmtx
Traceback (most recent call last):
File "", line 1, in
File "....venv\Lib\site-packages\pylibdmtx\pylibdmtx.py", line 10, in
from .wrapper import (
File "....venv\Lib\site-packages\pylibdmtx\wrapper.py", line 8, in
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions