[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1050175: Missing symbol when importing torch



Sorry for the inconvenience. This is a temporary break due to the
undergoing pytorch 2.0.1 upgrade work.

On Mon, 2023-08-21 at 14:52 +0200, Mattias Ellert wrote:
> Package: python3-torch
> Version: 1.13.1+dfsg-4
> Severity: serious
> 
> Importing torch results in failure due to missing symbols:
> 
> $ python3
> Python 3.11.4 (main, Jun  7 2023, 10:13:09) [GCC 12.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 218,
> in
> <module>
>     from torch._C import *  # noqa: F403
>     ^^^^^^^^^^^^^^^^^^^^^^
> ImportError: /lib/x86_64-linux-gnu/libtorch_cpu.so.1.13: undefined
> symbol: _ZN4onnx7checker11check_modelERKNS_10ModelProtoE
> > > > 
> 
> pytorch requires rebuild due to updated libonnx1:
> 
> $ c++filt _ZN4onnx7checker11check_modelERKNS_10ModelProtoE
> onnx::checker::check_model(onnx::ModelProto const&)
> 
> $ dpkg-query --show python3-torch libonnx1
> libonnx1:amd64	1.13.1-1
> python3-torch	1.13.1+dfsg-4
> 
> 	Mattias
> 


Reply to: