• Bug#1061426: opm-common ftbfs with Python 3.12 as the default

    From Matthias Klose@21:1/5 to All on Wed Jan 24 12:10:01 2024
    Package: src:opm-common
    Version: 2023.04+ds-5
    Severity: serious
    Tags: sid trixie ftbfs
    User: debian-python@lists.debian.org
    Usertags: python3.12

    ftbfs with python3-defaults from experimental

    the package builds, then fails in the tests.

    there is also a b-d on python3-distutils, which is gone in 3.12, and
    apparently not needed.

    please see the build logs at https://launchpad.net/ubuntu/+source/opm-common/2023.04+ds-5ubuntu2


    [...]
    test 177
    Start 177: python_tests

    177: Test command: /usr/bin/cmake "-E" "env" "LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib"
    "/usr/bin/python3" "-m" "unittest" "discover"
    177: Working Directory: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/python
    177: Test timeout computed to be: 1500
    177: Fatal Python error: PyImport_AppendInittab:
    PyImport_AppendInittab() may not be called after Py_Initialize()
    177: Python runtime state: initialized
    177:
    177: Current thread 0x00007f6bb184b040 (most recent call first):
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap_external>", line 1288 in create_module
    177: File "<frozen importlib._bootstrap>", line 813 in module_from_spec
    177: File "<frozen importlib._bootstrap>", line 921 in _load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File
    "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/python/opm/_common.py", line 12
    in <module>
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap_external>", line 994 in
    exec_module
    177: File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/python/opm/io/parser/__init__.py",
    line 1 in <module>
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap_external>", line 994 in
    exec_module
    177: File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File
    "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/python/opm/io/__init__.py", line
    1 in <module>
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap_external>", line 994 in
    exec_module
    177: File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap>", line 1310 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/python/tests/test_connection.py",
    line 3 in <module>
    177: File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
    177: File "<frozen importlib._bootstrap_external>", line 994 in
    exec_module
    177: File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
    177: File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
    177: File "/usr/lib/python3.12/unittest/loader.py", line 337 in _get_module_from_name
    177: File "/usr/lib/python3.12/unittest/loader.py", line 394 in _find_test_path
    177: File "/usr/lib/python3.12/unittest/loader.py", line 364 in
    _find_tests
    177: File "/usr/lib/python3.12/unittest/loader.py", line 372 in
    _find_tests
    177: File "/usr/lib/python3.12/unittest/loader.py", line 309 in discover
    177: File "/usr/lib/python3.12/unittest/main.py", line 160 in createTests 177: File "/usr/lib/python3.12/unittest/main.py", line 253 in
    _do_discovery
    177: File "/usr/lib/python3.12/unittest/main.py", line 130 in parseArgs
    177: File "/usr/lib/python3.12/unittest/main.py", line 104 in __init__
    177: File "/usr/lib/python3.12/unittest/__main__.py", line 18 in <module> 177: File "<frozen runpy>", line 88 in _run_code
    177: File "<frozen runpy>", line 198 in _run_module_as_main

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

    Your message dated Sat, 17 Feb 2024 23:46:00 +0000
    with message-id <E1rbUNc-004cnR-MT@fasolo.debian.org>
    and subject line Bug#1061426: fixed in opm-common 2023.10+ds-2
    has caused the Debian Bug report #1061426,
    regarding opm-common ftbfs with Python 3.12 as the 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.)


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

    Received: (at submit) by bugs.debian.org; 24 Jan 2024 11:02:27 +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.8 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,FORGED_SPF_HELO,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, 12; hammy, 150; neutral, 113; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*doko, 0.000-+--cmake
    Return-path: <doko@debian.org>
    Received: from einhorn.in-berlin.de ([192.109.42.8]:34165 helo=einhorn-mail-out.in-berlin.de)
    by buxtehude.debian.org with esmtps