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

Bug#1014491: marked as done (python3-torch: import fails: undefined symbol)



Your message dated Wed, 06 Jul 2022 16:13:53 -0700
with message-id <87ilo9kewh.fsf@secretsauce.net>
and subject line Re: Bug#1014491: python3-torch: import fails: undefined symbol
has caused the Debian Bug report #1014491,
regarding python3-torch: import fails: undefined symbol
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1014491: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014491
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Thanks for the description. If the fix is already in NEW, then there's
nothing much to do here, so I'm closing this report. Thanks again for
working on this.

--- End Message ---

Reply to: