Skip to content

Code uses distutils which is removed in Python 3.12+ #2549

@abhishek-8081

Description

@abhishek-8081

Two files import from distutils, which was deprecated in Python 3.10 and fully removed in Python 3.12:

  1. src/cryptoadvance/specter/server.py (line 4):
    from distutils.core import setup
    This import doesn't even seem to be used anywhere in the file. It can just be deleted.

  2. src/cryptoadvance/specter/util/common.py (line 7):
    from distutils.util import strtobool
    This is actually used, but it's easy to replace with a small helper function that does the same thing.

If someone tries to run Specter on Python 3.12 or newer, it will crash on startup with a ModuleNotFoundError: No module named 'distutils'. Since the project is actively maintained and people will eventually move to newer Python versions, this should probably be fixed.

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