Issue after Upgrading to Fedora 40: PyTorch

I am using Cinnamon Spin. Since upgrading to Fedora 40, i tried to install Blender and Pytorch, having the following issues. Can anyone help please?

For Pytorch:
Problem 1: conflicting requests

  • nothing provides libonnx.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora
  • nothing provides libonnx_proto.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora

Problem 2: package python3-torchvision-0.16.0-7.fc40.x86_64 from fedora requires python3.12dist(torch), but none of the providers can be installed

  • package python3-torchvision-0.16.0-7.fc40.x86_64 from fedora requires libc10.so()(64bit), but none of the providers can be installed
  • package python3-torchvision-0.16.0-7.fc40.x86_64 from fedora requires libtorch_cpu.so()(64bit), but none of the providers can be installed
  • conflicting requests
  • nothing provides libonnx.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora
  • nothing provides libonnx_proto.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora

Problem 3: package python3-torchdata-0.7.0-5.fc40.noarch from fedora requires python3.12dist(torch) > 2.0, but none of the providers can be installed

  • conflicting requests
  • nothing provides libonnx.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora
  • nothing provides libonnx_proto.so.1.14.0()(64bit) needed by python3-torch-2.1.2-3.fc40.x86_64 from fedora

For Blender:
Could not depsolve transaction; 1 problem detected:
Problem: conflicting requests

  • nothing provides libOpenImageIO.so.2.4()(64bit) needed by blender-1:4.0.2-1.fc40.x86_64 from fedora
  • nothing provides libOpenImageIO_Util.so.2.4()(64bit) needed by blender-1:4.0.2-1.fc40.x86_64 from fedora
  • nothing provides libboost_locale.so.1.81.0()(64bit) needed by blender-1:4.0.2-1.fc40.x86_64 from fedora
  • nothing provides libboost_python312.so.1.81.0()(64bit) needed by blender-1:4.0.2-1.fc40.x86_64 from fedora
  • nothing provides libopenvdb.so.10.1()(64bit) needed by blender-1:4.0.2-1.fc40.x86_64 from fedora

These packages are indeed broken, but I tried installing them with --enablerepo=updates-testing and the fixes are already there. The bug report I linked only covers Blender, but PyTorch is fixed as well.

2 Likes

Problems 1, 2, & 3 all are a result of version mismatch in dependencies and what is available.
Package onnx-devel-1.14.1-2.fc40.x86_64 provides the libonnx.so.1.14.1 and libonnx_proto.so.1.14.1 files but pytorch wants only the version 1.14.0 of those files.

This is either a packaging issue with the dependency error or an out of sync version in the repo.
I guess it needs a bug report filed on pytorch.

https://bugzilla.redhat.com/show_bug.cgi?id=2276797

I did find a workaround that is documented in that bug report.

1 Like

I also now know that there has already been a fix released though possibly still in updates-testing.
Try the dnf install python3-torch --refresh and if that still fails then try dnf install python3-torch --refresh --enablerepo updates-testing

1 Like

Hi. dependencies seems to be fixed by the Team. Was able to install Pytorch today, without making any modifications.

Thanks to #fedora team for fixing the issue fast.

image