-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Install failing from the master: Failed building wheel #2480
Comments
Hi @jcwchen, you left out the traceback which contains the information you need:
|
Hi @pmeier, Thank you for the fast reply. I did install torch first, but I still encountered this error. The same build code worked a week ago. BTW, where did you get that traceback information? (Knowing this could help debug this) |
Huh, that is weird. I did a fresh install with pip install numpy
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
pip install git+https://github.com/pytorch/vision.git (remember to adapt the link to your CUDA version) and this is working fine. Could you try this and report your results? Could you also run wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
python collect_env.py and post the output? From what you have provided so far the only significant difference between our systems is that I used
That is simply my output of |
The output from
Originally, I pip install pytorch from their master branch. I don't have CUDA in my machine and I saw there are some changes in recent PRs of |
Just to recap:
Did I miss anything? #2388 might be the offender (Cc @andfoy). It added the following to the README:
@jcwchen Could you check if apt list --installed | grep -E "lib(png|jpeg)" |
Hi @jcwchen, could you please try to compile torchvision using |
The recap is correct. I will check whether libpng and libjpeg are available later. (The machine is a CI) |
|
@pmeier Here is the result of
Besides, |
Since the error is related is related to
so you can try to upgrade it. |
I tried to install libpng
|
@jcwchen this error message is not helpful. This minimal output happens because you use the |
Error message is here:
The build log is here: Hope it helps. Thank you. |
@jcwchen, what happens if you install the latest master version? |
I just built one from the latest master version, but it still encountered the same error as my previous comment. |
@jcwchen glad it worked out for you, but I think we should still debug the cause of this. The README states that @andfoy Could it be that we need a minimum requirement for
were not enough and they had to install |
Any update on this I am also facing the same issue. Even after installing libjpeg-turbo-2.0.5 from source error is sill present. |
@jainrahul1 does your error is related to libpng |
Yes error was related to libpng. However after re-installing libpng16-dev resolved it. |
@andfoy do you think we might be missing some extra checks during compilation to validate that the user has the right versions of libjpeg / libpng? |
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
1.
pip install -q git+https://github.com/pytorch/vision.git
Expected behavior
Build successfully without any error message
Environment
conda
,pip
, source): pippip install -q git+https://github.com/pytorch/vision.git
Additional context
It occurs a week ago and keeps failing. The error message is as follows:
I suppose it's a bug from the master branch? If so, when can it be fixed?
If not, how can I fix this?
Thanks.
The text was updated successfully, but these errors were encountered: