• Bug#1061753: python-jieba ftbfs with Python 3.12 as default

    From Matthias Klose@21:1/5 to All on Mon Jan 29 13:10:01 2024
    Package: src:python-jieba
    Version: 0.42.1-3
    Severity: serious
    Tags: sid trixie ftbfs
    User: debian-python@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Feb 5 19:10:01 2024
    This is a multi-part message in MIME format...

    Your message dated Mon, 05 Feb 2024 18:07:56 +0000
    with message-id <E1rX3Ns-00BECO-7m@fasolo.debian.org>
    and subject line Bug#1061753: fixed in python-jieba 0.42.1-4
    has caused the Debian Bug report #1061753,
    regarding python-jieba ftbfs with Python 3.12 as default
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1061753: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061753
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 29 Jan 2024 12:07:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-12.7 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,FORGED_SPF_HELO,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,
    SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 26; hammy, 149; neutral, 51; spammy,
    1. spammytokens:0.993-1--H*r:53549 hammytokens:0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*doko, 0.000-+--trixie,
    0.000-+--H*RU:sk:einhorn
    Return-path: <doko@debian.org>
    Received: from einhorn.in-berlin.de ([192.109.42.8]:53549 helo=einhorn-mail-out.in-berlin.de)
    b