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

distutils is deprecated in Python 3.12 #898

Closed
bobqianic opened this issue Aug 21, 2024 · 1 comment
Closed

distutils is deprecated in Python 3.12 #898

bobqianic opened this issue Aug 21, 2024 · 1 comment

Comments

@bobqianic
Copy link

Since distutils is deprecated in Python 3.12, are there any plans to update the code to support Python 3.12?

https://peps.python.org/pep-0632/

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/easybuild-venv/lib/python3.12/site-packages/easybuild/main.py", line 50, in <module>
    from easybuild.tools.build_log import EasyBuildError, print_error, print_msg, print_warning, stop_logging
  File "/root/easybuild-venv/lib/python3.12/site-packages/easybuild/tools/__init__.py", line 40, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'
@boegel boegel added this to the 5.0 milestone Aug 28, 2024
@boegel
Copy link
Member

boegel commented Aug 28, 2024

@bobqianic Yes, the work has been done already for that, the upcoming EasyBuild v5.0 will support running on top of Python 3.12 (and does not rely on distutils anymore), see also easybuilders/easybuild-framework#3963

@boegel boegel closed this as completed Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants