Bug#1064673: pocketsphinx-python: FTBFS: ImportError: /usr/lib/python3/dist-packages/sphinxbase/_sphinxbase.cpython-311-x86_64-linux-gnu.so: undefined symbol: SWIG_Python_str_AsChar
Samuel Thibault
sthibault at debian.org
Thu Feb 29 01:41:50 GMT 2024
control: reassign -1 python3-sphinxbase
control: affects -1 pocketsphinx-python
Lucas Nussbaum via Pkg-a11y-devel, le dim. 25 févr. 2024 20:38:23 +0100, a ecrit:
> > File "/usr/lib/python3.12/unittest/loader.py", line 137, in loadTestsFromName
> > module = __import__(module_name)
> > ^^^^^^^^^^^^^^^^^^^^^^^
> > File "/<<PKGBUILDDIR>>/tests/test_jsgf.py", line 32, in <module>
> > from pocketsphinx import Pocketsphinx, Jsgf
> > File "/<<PKGBUILDDIR>>/pocketsphinx/__init__.py", line 35, in <module>
> > from sphinxbase.sphinxbase import *
> > File "/usr/lib/python3/dist-packages/sphinxbase/sphinxbase.py", line 24, in <module>
> > from . import _sphinxbase
> > ImportError: /usr/lib/python3/dist-packages/sphinxbase/_sphinxbase.cpython-312-x86_64-linux-gnu.so: undefined symbol: SWIG_Python_str_AsChar
More simply,
$ python3 -c 'from sphinxbase import sphinxbase'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/sphinxbase/sphinxbase.py", line 24, in <module>
from . import _sphinxbase
ImportError: /usr/lib/python3/dist-packages/sphinxbase/_sphinxbase.cpython-311-x86_64-linux-gnu.so: undefined symbol: SWIG_Python_str_AsChar
and indeed, in swig's ./CHANGES.current I can see
2023-12-20: wsfulton
#2190 Replace SWIG_Python_str_AsChar with SWIG_PyUnicode_AsUTF8AndSize.
So this needs fixing (just rebuilding sphinxbase doesn't work). I can
see in
https://codesearch.debian.net/search?q=SWIG_Python_str_AsChar&literal=1
that a lot of packages might be affected by this incompatibility...
Samuel
More information about the Pkg-a11y-devel
mailing list