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

Bug#1014491: python3-torch: import fails: undefined symbol



Hi,

Thanks for the bug report. I'm aware of the break, and other users have reported
this issue some time before:
https://lists.debian.org/debian-ai/2022/06/msg00060.html

The break is due to onnx 1.12 upgrade.
The pytorch version in the new queue works fine with onnx 1.12,
as mentioned in the above mailing list post.
If you would like to continue using pytorch 1.8 for a while,
you may need to pin onnx to the previous version, or rollback
using our snapshot archive.

When dealing with the pytorch 1.12 upgrade, I lost
(to be honest I would like to stick to 1.8 but we have to
go through python 3.10 transition)
access to build machines due to complicated reasons, and
the access will not be recovered.

So in order to continue the pytorch upgrade, I have to
upload reverse dependencies to unstable early, so that
I can build pytorch and upload to the NEW queue.

Theoretically this bug can only be resolved when pytorch 1.12
passes the new queue.

On Wed, 2022-07-06 at 14:01 -0700, Dima Kogan wrote:
> Package: python3-torch
> Version: 1.8.1-5+b1
> Severity: grave
> X-Debbugs-Cc: none, Dima Kogan <dkogan@debian.org>
> 
> Hi. Thanks for maintaining pytorch. I can't imagine the pain it took to
> get this packaged. Currently it doesn't work, unfortunately:
> 
>   $ python3 -mtorch                                  
> 
>   Traceback (most recent call last):
>     File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
>       mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
>     File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
>       return _get_module_details(pkg_main_name, error)
>     File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
>       __import__(pkg_name)
>     File "/usr/lib/python3/dist-packages/torch/__init__.py", line 196, in <module>
>       from torch._C import *
>   ImportError: /usr/lib/x86_64-linux-gnu/libtorch_cpu.so.1.8: undefined symbol: _ZN4onnx12optimization8OptimizeERKNS_10ModelProtoERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE
> 
> This symbol is missing. I looked around, and I can't figure out which
> package was supposed to provide it. Without it the linking fails, and
> the package is unusable. Am I missing some dependency?
> 
> 
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers unstable
>   APT policy: (800, 'unstable'), (700, 'testing'), (500, 'unstable-debug'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386, armhf
> 
> Kernel: Linux 5.16.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_US.utf-8, LC_CTYPE=en_US.utf-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf-8), LANGUAGE=en_US.utf-8
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages python3-torch depends on:
> ii  libc6                               2.33-7
> ii  libdnnl2                            2.6-1
> ii  libgcc-s1                           12.1.0-4
> ii  libgloo0                            0.0~git20220518.5b14351-1
> ii  libgoogle-glog0v6                   0.6.0-1
> ii  libonnx1                            1.12.0-1
> ii  libprotobuf23                       3.12.4-1+b2
> ii  libstdc++6                          12.1.0-4
> ii  libtorch-test                       1.8.1-5+b1
> ii  libtorch1.8                         1.8.1-5+b1
> ii  python3                             3.10.4-1+b1
> ii  python3-future                      0.18.2-5
> ii  python3-numpy [python3-numpy-abi9]  1:1.21.5-1
> ii  python3-pkg-resources               59.6.0-1
> ii  python3-requests                    2.25.1+dfsg-2
> ii  python3-six                         1.15.0-2
> ii  python3-typing-extensions           3.10.0.2-1
> ii  python3-yaml                        5.4.1-1+b1
> ii  python3.10                          3.10.5-1
> 
> Versions of packages python3-torch recommends:
> ii  build-essential  12.9
> pn  libtorch-dev     <none>
> ii  ninja-build      1.10.1-1
> pn  pybind11-dev     <none>
> 
> Versions of packages python3-torch suggests:
> ii  python3-hypothesis  5.43.3-1
> ii  python3-pytest      6.2.5-1
> 
> -- no debconf information
> 


Reply to: