pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.04k stars 6.93k forks source link

SetupTools update breaks Vision Nightly aarch64 builds are failing for CPU and GPU #8591

Open atalman opened 1 month ago

atalman commented 1 month ago

🐛 Describe the bug

All Aarch64 vision builds failed on Aug 14, 2024: https://github.com/pytorch/vision/actions/runs/10386791010/job/28759157208

Audio seems fine: https://hud2.pytorch.org/hud/pytorch/audio/nightly/1?per_page=50

Versions

0.20.0 nightly

cc @NicolasHug @malfet

malfet commented 1 month ago

Relevant part of the log:

Traceback (most recent call last):
  File "/__w/vision/vision/pytorch/vision/packaging/wheel/relocate.py", line 378, in <module>
    patch_linux()
  File "/__w/vision/vision/pytorch/vision/packaging/wheel/relocate.py", line 335, in patch_linux
    relocate_elf_library(patchelf, output_dir, output_library, binary)
  File "/__w/vision/vision/pytorch/vision/packaging/wheel/relocate.py", line 216, in relocate_elf_library
    library_dependencies = binary_dependencies[binary]
KeyError: 'image.so'
atalman commented 1 month ago

Looks like the issue maybe related to https://pypi.org/project/setuptools/#files - Released: Aug 13, 2024 setuptools 72.2.0

I do see something like this in the log:

2024-08-14T17:47:49.2817611Z Collecting setuptools
2024-08-14T17:47:49.2818481Z   Downloading setuptools-72.2.0-py3-none-any.whl.metadata (6.6 kB)
2024-08-14T17:47:49.2819699Z Downloading setuptools-72.2.0-py3-none-any.whl (2.3 MB)
2024-08-14T17:47:49.2820771Z    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 97.6 MB/s eta 0:00:00
2024-08-14T17:47:49.2821626Z Installing collected packages: setuptools
2024-08-14T17:47:49.2822330Z   Attempting uninstall: setuptools
2024-08-14T17:47:49.2823044Z     Found existing installation: setuptools 72.1.0
2024-08-14T17:47:49.2823855Z     Uninstalling setuptools-72.1.0:
2024-08-14T17:47:49.2824629Z       Successfully uninstalled setuptools-72.1.0
2024-08-14T17:47:49.2825454Z Successfully installed setuptools-72.2.0
2024-08-14T17:47:49.2825935Z 
atalman commented 1 month ago

Reopened to followup why setuptools breaks our builds