Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove distutils #323

Open
fabaff opened this issue Feb 25, 2024 · 2 comments
Open

Remove distutils #323

fabaff opened this issue Feb 25, 2024 · 2 comments
Labels

Comments

@fabaff
Copy link

fabaff commented Feb 25, 2024

Describe the bug
distutils is deprecated and slated for removal in Python 3.12

https://peps.python.org/pep-0632//#migration-advice

To Reproduce
Run with Python 3.12

============================= test session starts ==============================
platform linux -- Python 3.12.2, pytest-7.4.4, pluggy-1.4.0
rootdir: /build/source
collected 63 items / 10 errors / 1 deselected / 62 selected                    

==================================== ERRORS ====================================
____________________ ERROR collecting test/test_backend.py _____________________
ImportError while importing test module '/build/source/test/test_backend.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/n3jf1lkdfakxskzsm4nlhss8mdgmcqhc-python3-3.12.2/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_backend.py:7: in <module>
    from stone.ir import (
stone/ir/__init__.py:1: in <module>
    from .api import *  # noqa: F401,F403
stone/ir/api.py:5: in <module>
    from distutils.version import StrictVersion
E   ModuleNotFoundError: No module named 'distutils'
___________________ ERROR collecting test/test_js_client.py ____________________
[...]
@fabaff fabaff added the bug label Feb 25, 2024
@greg-db
Copy link
Contributor

greg-db commented Feb 26, 2024

Thanks! I'll ask the team to fix this.

@kloczek
Copy link

kloczek commented Mar 14, 2024

+1

fabaff added a commit to fabaff/nixpkgs that referenced this issue Apr 23, 2024
fabaff added a commit to fabaff/nixpkgs that referenced this issue Apr 23, 2024
jonringer pushed a commit to NixOS/nixpkgs that referenced this issue Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants