Bug#1050175: Missing symbol when importing torch

2023-08-21 Thread M. Zhou
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 "", line 1, in 
>   File "/usr/lib/python3/dist-packages/torch/__init__.py", line 218,
> in
> 
>     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:amd641.13.1-1
> python3-torch 1.13.1+dfsg-4
> 
>   Mattias
> 



Bug#1050175: Missing symbol when importing torch

2023-08-21 Thread Mattias Ellert
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 "", line 1, in 
  File "/usr/lib/python3/dist-packages/torch/__init__.py", line 218, in

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



signature.asc
Description: This is a digitally signed message part