[Debian-zh-dev] Bug#1061753: python-jieba ftbfs with Python 3.12 as default
Matthias Klose
doko at debian.org
Mon Jan 29 12:07:45 GMT 2024
Package: src:python-jieba
Version: 0.42.1-3
Severity: serious
Tags: sid trixie ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12
With python3-defaults from experimental, the package fails to build:
[...]
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd {dir}/test;
PATH=$PATH:{build_dir} python{version} {dir}/test/jieba_test.py"
dh_auto_test
I: pybuild base:305: cd /<<PKGBUILDDIR>>/test;
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jieba/build
python3.12 /<<PKGBUILDDIR>>/test/jieba_test.py
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jieba/build/jieba/__init__.py:44:
SyntaxWarning: invalid escape sequence '\.'
re_han_default = re.compile("([\u4E00-\u9FD5a-zA-Z0-9+#&\._%\-]+)", re.U)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jieba/build/jieba/__init__.py:46:
SyntaxWarning: invalid escape sequence '\s'
re_skip_default = re.compile("(\r\n|\s)", re.U)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jieba/build/jieba/finalseg/__init__.py:78:
SyntaxWarning: invalid escape sequence '\.'
re_skip = re.compile("([a-zA-Z0-9]+(?:\.\d+)?%?)")
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/test/jieba_test.py", line 9, in <module>
from imp import reload
ModuleNotFoundError: No module named 'imp'
E: pybuild pybuild:391: test: plugin custom failed with: exit code=1: cd
/<<PKGBUILDDIR>>/test;
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_jieba/build
python3.12 /<<PKGBUILDDIR>>/test/jieba_test.py
More information about the Chinese-developers
mailing list