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

Build failure with python3.12 #2112

Closed
remicollet opened this issue Jul 26, 2023 · 1 comment · Fixed by #2113
Closed

Build failure with python3.12 #2112

remicollet opened this issue Jul 26, 2023 · 1 comment · Fixed by #2113

Comments

@remicollet
Copy link
Contributor

From Fedora 39 which has python3.12 by default
https://bugzilla.redhat.com/show_bug.cgi?id=2226397

Traceback (most recent call last):
  File "/builddir/build/BUILD/rnp-v0.17.0/src/tests/cli_tests.py", line 14, in <module>
    from cli_common import (file_text, find_utility, is_windows, list_upto,
  File "/builddir/build/BUILD/rnp-v0.17.0/src/tests/cli_common.py", line 2, in <module>
    import distutils.spawn
ModuleNotFoundError: No module named 'distutils'
CMake Error at src/tests/CMakeLists.txt:237 (message):
  Failed to retrieve test suite list for cli_tests

Switching to setuptools._distutils.spawn seems a working solution, but is only working with recent python versions
Tested on RHEL-9 with python 3.9 and setuptools 53.0

@ni4
Copy link
Contributor

ni4 commented Jul 26, 2023

@remicollet Thanks for reporting and fix suggestion! PR #2113 is aimed to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants