Bug#979040: python3-sentencepiece: undefined symbol _ZN13sentencepiece4util6StatusD1Ev

Kentaro Hayashi kenhys at xdump.org
Sat Jan 2 10:41:10 GMT 2021


Package: python3-sentencepiece
Version: 0.1.94-2
Severity: important
X-Debbugs-Cc: kenhys at xdump.org

Dear Maintainer,

   * What led up to the situation?

import python3-sentencepiece raise undefined symbol.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. sudo apt install python3-sentencepiece
2. launch python
3. import sentencepiece

   * What was the outcome of this action?

>>> import sentencepiece
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/sentencepiece/__init__.py", line 13, in
<module>
    from . import _sentencepiece
ImportError: /usr/lib/python3/dist-
packages/sentencepiece/_sentencepiece.cpython-39-x86_64-linux-gnu.so: undefined
symbol: _ZN13sentencepiece4util6StatusD1Ev

   * What outcome did you expect instead?

import sentencepiece succeeds without undefined symbol error.

* Additional Information

Undefined symbol _ZN13sentencepiece4util6StatusD1Ev means
sentencepiece::util::Status::~Status().

Then, checked whether the symbol is exported or not.

$ nm -D /usr/lib/x86_64-linux-gnu/libsentencepiece.so.0.0.0 | grep
_ZN13sentencepiece4util6StatusD1Ev
000000000008e6b0 T _ZN13sentencepiece4util6StatusD1Ev

Thus, it seems that libsentencepiece is built as expectedly.



More information about the debian-science-maintainers mailing list