Open fmassa opened 2 years ago
Thanks @fmassa
I can reproduce the error. I also tried the same conda.yaml
file and using
- pytorch=1.12.0
- torchvision=0.13.0
and I'm getting a different error:
(bug_repro2) ➜ ~ python -c "import torchvision; from torchvision.io import read_image"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/fsx/users/nicolashug/conda/envs/bug_repro2/lib/python3.9/site-packages/torchvision/__init__.py", line 4, in <module>
import torch
File "/fsx/users/nicolashug/conda/envs/bug_repro2/lib/python3.9/site-packages/torch/__init__.py", line 202, in <module>
from torch._C import * # noqa: F403
ImportError: libcupti.so.11.2: cannot open shared object file: No such file or directory
However, the problem seem to be related to interactions with nvidia-apex
. Using the following file (removing nvidia-apex=0.1
), I'm not observing any error:
name: bug_repro_without_apex
channels:
- defaults
- pytorch
- conda-forge
dependencies:
- python=3.9
- pytorch=1.12.1
- torchvision=0.13.1
- cudatoolkit=11.3
- timm
- pip
FYI @atalman , it looks like installing torchvision
with apex
leads to problems discovering libtorch_cuda_cu
. Not sure if this is a problem with us or with apex though?
🐛 Describe the bug
Hi,
Quick FYI that I'm getting this warning when installing torch and torchvision from a fresh conda env
This can be reproduced by doing
with the follwoing
conda.yaml
Versions
Python 3.9 PyTorch 1.12.1 TorchVision 0.13.1 CUDA 11.3