Skip to content

Clang-tidy failed to run due to Python 3.9.0 of setup-python action #46314

@RockingJavaBean

Description

@RockingJavaBean

The Setup Python step installed the Python 3.9.0 for the Clang-tidy check
It equals to the max_version defined in the setup.py, causing the script exited with error code 1.

pytorch/setup.py

Lines 180 to 182 in 62d37b9

python_max_version = (3, 9, 0)
python_max_version_str = '.'.join((str(num) for num in python_max_version))
if sys.version_info < python_min_version or sys.version_info >= python_max_version:

Below are the extracted error message.

Run actions/setup-python@v1
  with:
    python-version: 3.x
    architecture: x64
Successfully setup CPython (3.9.0)
+ export USE_NCCL=0
+ USE_NCCL=0
+ python setup.py --cmake-only build
You are using Python 3.9.0. Python >=3.6.1,<3.9.0 is required.
real	0m0.038s
user	0m0.036s
sys	0m0.000s
Error: Process completed with exit code 255.

Failed Github Actions: #46313 #46309

cc @ezyang @seemethere @malfet @walterddr

Metadata

Metadata

Assignees

Labels

module: ciRelated to continuous integration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions