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

A module with python version 3.7 is used, but the minimum required python version is 3.6 #81598

Closed
songdongsheng opened this issue Feb 13, 2024 · 3 comments
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. obsolete Issues with old (unsupported) versions of LLVM test-suite

Comments

@songdongsheng
Copy link

Testing fails in RHEL 8:

stderr:
Traceback (most recent call last):
  File "/opt/llvm-build/llvm-18.x/libcxx/test/libcxx/module_std.gen.py", line 24, in <module>
    from libcxx.test.modules import module_test_generator
  File "/opt/llvm-build/llvm-18.x/rc2/llvm-project/libcxx/utils/libcxx/test/modules.py", line 11, in <module>
    from dataclasses import dataclass
ModuleNotFoundError: No module named 'dataclasses'

This is because the default python in RHEL 8 is 3.6, and this test uses the new modules in python 3.7.

The easiest fix is to upgrade the python version requirement to 3.7 or higher and modify the page Getting Started with the LLVM System.

@tru
Copy link
Collaborator

tru commented Feb 13, 2024

@linux4life798 has been working on the python version bump. Guess it didn't land before 18.x?

@EugeneZelenko EugeneZelenko added libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. test-suite and removed new issue labels Feb 13, 2024
@h-vetinari
Copy link
Contributor

Yeah, it's "just" a doc issue, see this RFC - Python 3.6 is EOL (and so is 3.7 actually). It's wasted effort to maintain compatibility with these dead versions, especially because getting a newer Python is not that hard (e.g. through conda). RHEL 8 even provides an "official" Python3.8 in the Software Collections.

@ldionne
Copy link
Member

ldionne commented Jul 9, 2024

Closing since we don't support Python 3.6 anymore.

@ldionne ldionne closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
@EugeneZelenko EugeneZelenko added the obsolete Issues with old (unsupported) versions of LLVM label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. obsolete Issues with old (unsupported) versions of LLVM test-suite
Projects
None yet
Development

No branches or pull requests

5 participants