Skip to content

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

Closed as not planned
@songdongsheng

Description

@songdongsheng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.obsoleteIssues with old (unsupported) versions of LLVMtest-suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions