Bug#1073541: gensim: tests fail with scipy 1.13
Drew Parsons
dparsons at debian.org
Mon Jun 17 09:27:40 BST 2024
Source: gensim
Version: 4.3.2+dfsg-1
Severity: important
Control: affects -1 src:scipy
gensim is failing to start tests using scipy 1.13 from experimental,
apparently due to use of a decprecated API.
Error is
278s _______________ ERROR collecting gensim/test/test_aggregation.py _______________
278s ImportError while importing test module '/tmp/autopkgtest-lxc.ikaecbc1/downtmp/autopkgtest_tmp/gensim/test/test_aggregation.py'.
278s Hint: make sure your test modules/packages have valid Python names.
278s Traceback:
278s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
278s return _bootstrap._gcd_import(name[level:], package, level)
278s gensim/test/test_aggregation.py:14: in <module>
278s from gensim.topic_coherence import aggregation
278s /usr/lib/python3/dist-packages/gensim/__init__.py:11: in <module>
278s from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
278s /usr/lib/python3/dist-packages/gensim/corpora/__init__.py:6: in <module>
278s from .indexedcorpus import IndexedCorpus # noqa:F401 must appear before the other classes
278s /usr/lib/python3/dist-packages/gensim/corpora/indexedcorpus.py:14: in <module>
278s from gensim import interfaces, utils
278s /usr/lib/python3/dist-packages/gensim/interfaces.py:19: in <module>
278s from gensim import utils, matutils
278s /usr/lib/python3/dist-packages/gensim/matutils.py:20: in <module>
278s from scipy.linalg import get_blas_funcs, triu
278s E ImportError: cannot import name 'triu' from 'scipy.linalg' (/usr/lib/python3/dist-packages/scipy/linalg/__init__.py)
Full test log at https://ci.debian.net/packages/g/gensim/unstable/amd64/47741137/
We've only just made scipy 1.12 available, but upstream is already
preparing the 1.14 release, so we'll want to push scipy 1.13 (and
1.14) to unstable in the near future.
More information about the debian-science-maintainers
mailing list