Pytorch crashes with linking error on libavcodec.so.58

Bug #2049707 reported by Dr. Robert Marmorstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pytorch (Ubuntu)
New
Undecided
Unassigned

Bug Description

After installing python3-torch, I ran python3 and ran "import torch". Instead of working, it gives this error:

Python 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/torch/__init__.py", line 229, in <module>
    from torch._C import * # noqa: F403
    ^^^^^^^^^^^^^^^^^^^^^^
ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory
>>>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.