-
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
Building from source OSX: import torchvision crash (with ffmpeg version 4.4) #3963
Comments
I do see this error:
But I don't get any error when importing torchvision. |
Hi @prabhat00155, Thank you for replying. Yes, it does crash my python terminal.
|
Hi @AnirudhDagar, I think the issue is related to the ffmpeg version. I originally had ffmpeg==4.2 and it was working fine. After I upgraded it to 4.4, I see this issue. I know there are some known issues with ffmpeg==4.3. If you are not using the video api, you can just uninstall ffmpeg( |
Thanks a tonne @prabhat00155! It was indeed an ffmpeg version issue. For now, I'm not working with the video API, so removing ffmpeg ( If you don't mind I'll leave this open in case someone else stumbles upon the same issue. I'll change the name of this issue for more context. I'm also linking #3188 and #3283 since they seem to mention ffmpeg based video api issues. |
@AnirudhDagar We need to close the issue to keep things tidy. I think users can still find the issue even if it's closed. To help them further you can edit your description and link to the reply that helped you solve it or summarize it in a few words. If you face any additional issues, don't hesitate to reopen it. Thanks! |
@prabhat00155 what do you think if we skip compiling ffmpeg in torchvision is the version is not compatible, printing a message saying that that version of ffmpeg is not compatible? |
Yeah, I think we should do that. |
❓ Questions and Help
Hi,
I'm trying to build torchvision from source on OSX and have followed the contributing guidelines. I run the following
While building I can see the following clang error.
The setup completes, but on importing the module in python, I run into the issue below.
Complete build log available here: log.txt
Output for
clang --version
:I don't have a lot of experience with clang and was not able to find a solution for the same. I apologize before since this may be a
clang
specific issue and not really related totorchvision
. Any help troubleshooting this will be extremely helpful. Thanks in advance!Ps. I was able to build it just fine on another machine following the same steps, it seems like a clang problem on my machine.
The text was updated successfully, but these errors were encountered: