Skip to content

aarch64 linux wheel file does not have image.so #7104

@apivovarov

Description

@apivovarov

🐛 Describe the bug

Start ARM64 Ubuntu 20.04 instance

Install torch and torchvision using pip as recommended at https://pytorch.org/

pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu

Import torchvision

import torchvision

Error:

/usr/local/lib/python3.8/dist-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
  warn(f"Failed to load image Python extension: {e}")

I checked dist-packages/torchvision folder. Yes, image.so file is missing.

I checked several other wheel files.
Other wheel files have image.so lib

### x86_64 linux - torchvision-0.14.1+cpu-cp38-cp38-linux_x86_64.whl
38,846,032 Dec  9 02:52 _C.so
 9,491,529 Dec  9 02:52 image.so

### aarch64 linux - torchvision-0.14.1-cp38-cp38-manylinux2014_aarch64.whl
38,868,832 Dec 14 22:31 _C.so
                         ### image.so is missing !!!

### arm64 mac - torchvision-0.14.1-cp38-cp38-macosx_11_0_arm64.whl
1,059,888 Dec  9 02:53 _C.so
  213,008 Dec  9 02:53 image.so

Versions

Collecting environment information...
PyTorch version: 1.13.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.5 LTS (aarch64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.31

Python version: 3.8.10 (default, Jun 22 2022, 20:18:18)  [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-1026-aws-aarch64-with-glibc2.29
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.23.5
[pip3] torch==1.13.1
[pip3] torchaudio==0.13.1
[pip3] torchvision==0.14.1
[conda] Could not collect

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions