Bug#999401: pocketsphinx-python ftbfs with Python 3.10 (test failures)
Samuel Thibault
sthibault at debian.org
Thu Nov 11 20:14:01 GMT 2021
Control: tags -1 + unreproducible moreinfo
Hello,
Matthias Klose, le mer. 10 nov. 2021 17:39:29 +0100, a ecrit:
> pocketsphinx-python ftbfs with python3-defaults from experimental. the
> python3-sphinxbase module has also been built for 3.10.
> ======================================================================
> ERROR: test_audiofile (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_audiofile
> Traceback (most recent call last):
> File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> File "/<<PKGBUILDDIR>>/tests/test_audiofile.py", line 32, in <module>
> from pocketsphinx import AudioFile
> File "/<<PKGBUILDDIR>>/pocketsphinx/__init__.py", line 35, in <module>
> from sphinxbase.sphinxbase import *
> File "/usr/lib/python3/dist-packages/sphinxbase/sphinxbase.py", line 27, in
> <module>
> from . import _sphinxbase
> ImportError: cannot import name '_sphinxbase' from 'sphinxbase'
> (/usr/lib/python3/dist-packages/sphinxbase/__init__.py)
I can't reproduce the issue.
I have rebuilt sphinxbase (current git version, which includes a fix for
distutils detection) against python3-all-dev from experimental, and
tried to rebuild pocketsphinx-python against it, without any issue:
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:237: python3.10 setup.py test
[...]
test_phoneme_best_phonemes (tests.test_phoneme.TestPhoneme) ... ok
test_phoneme_hypothesis (tests.test_phoneme.TestPhoneme) ... ok
test_cep_decoder_hypothesis (tests.test_decoder.TestCepDecoder) ... ok
[...]
test_audiofile (tests.test_audiofile.TestAudioFile) ... ok
test_kws (tests.test_kws.TestKws) ... ok
[...]
Samuel
More information about the Pkg-a11y-devel
mailing list