-
Notifications
You must be signed in to change notification settings - Fork 7.1k
image.so on Apple Silicon can't load libpng16.16.dylib and libjpeg.9.dylib #5413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
BTW, I use pip to install the packages above. I didn't try conda. |
Same here, I also used pip, I cannot use conda at work |
I've tried Miniconda on M1, but failed with
|
@zhiqwang |
Pinging @jdsgomes: we should try to triple check with the release engineers that M1 will be properly supported in the upcoming release. |
@alanyoungCN would you be able to try the latest RC build (torchvision==0.12 and pytorch=1.11) for the upcoming release?
or
|
@jdsgomes @malfet cc plz The Then I take a deep look at the warning(same as the top):
I think the missing of Following the What I think for now is that |
@malfet looks like the linker is trying to link against paths on your laptop :p |
I think this would probably be resolved if we were building these in CI rather than on a local laptop. Maybe related to #5171 ? |
FYI, I believe this problem can be solved by installing libpng and libjpeg via Homebrew, as it now works for me after doing so. Credit to https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278/26 |
I could avoid the issue by adding symbolic links in
|
commands for mac
|
same problem here with |
@Venkat-Rajgopal if you run the commands above the problem will be fixed (it is a work around) |
Yes the workaround works. |
Did these as suggested in previous comments. Still the warning persists. M1Pro, MacOS13, python 3.10, pip pip 22.3.1 with virtualenv, torchvision version: 0.14.0 |
My apologies. After updating packages one by one using pip, this warning is is gone 🎉 |
🐛 Describe the bug
code:
UserWarning:
on M1 Max.
In #5137 (comment), it is said to be fixed but I don't think so.
Therefore you can't use torchvision.io.read_img().
In https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278/20, Andrade has the same problem.
Versions
Collecting environment information...
PyTorch version: 1.10.2
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 12.1 (arm64)
GCC version: Could not collect
Clang version: 13.0.0 (clang-1300.0.29.30)
CMake version: version 3.22.0
Libc version: N/A
Python version: 3.9.7 (default, Sep 16 2021, 23:53:23) [Clang 12.0.0 ] (64-bit runtime)
Python platform: macOS-12.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
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
Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.22.2
[pip3] torch==1.10.2
[pip3] torchaudio==0.10.2
[pip3] torchvision==0.11.3
[conda] Could not collect
cc @seemethere @malfet
The text was updated successfully, but these errors were encountered: