Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Bo YU Newsgroups: linux.debian.maint.python Subject: help to fix ftbfs issue #1052815 for python-sparse Date: Sat, 28 Oct 2023 19:30:01 +0200 Message-ID: X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Oct 28 17:25:54 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Gm-Message-State: AOJu0YzRVV91LIXXiB/pjeCAymmPvhrt+F0qzwZ2aF6biR+by3NNkCnX zz6gjTX9gM2CGIecWuiYcw0O2WLRljNdpu/Hdxeyx1dyrhrh9Mgm X-Google-SMTP-Source: AGHT+IGSf+x5aeHLkkAFG99YyBrl/hetPbuZemPPmPy/sbQ8+e+6Klwdcm2COEbT0tdYPOLLa3h5huKsnydIg+q/2Sg= X-Received: by 2002:a05:6102:b:b0:457:c982:57fa with SMTP id j11-20020a056102000b00b00457c98257famr5732271vsp.5.1698513931090; Sat, 28 Oct 2023 10:25:31 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/21209 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAKq8=3+dEfbakhgLyQXgmx47AtuYS4ZR5f9JH8m-EehELev87g@mail.gmail.com Approved: robomod@news.nic.it Lines: 63 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Oct 2023 01:25:18 +0800 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:15276 Hi, I am looking at the issue and trying to fix it. If upgrading to 0.14.0[0] directly does not fix the issue and it is in complicated situation. So below I will explain what I do. First to fix #1052815[1], wo need to adjust pybuild with custom way: ``` PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="{interpreter} -m pytest -v" \ ``` Okay, it works. But unfortunately, the test cases failed. ``` -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED sparse/tests/test_coo_numba.py::TestBasic::test_roundtrip - numba.core... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_roundtrip_constant - n... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_unpack_attrs - numba.c... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_repack_attrs - numba.c... FAILED sparse/tests/test_dot.py::test_tensordot[coo-gcxs-a_shape1-b_shape1-axes1] FAILED sparse/tests/test_dot.py::test_tensordot[coo-gcxs-a_shape3-b_shape3-axes3] FAILED sparse/tests/test_dot.py::test_tensordot[coo-gcxs-a_shape7-b_shape7-axes7] FAILED sparse/tests/test_dot.py::test_tensordot[coo-gcxs-a_shape9-b_shape9-0] FAILED sparse/tests/test_dot.py::test_tensordot[gcxs-coo-a_shape1-b_shape1-axes1] ==== 9 failed, 5402 passed, 36 xfailed, 49 xpassed, 3729 warnings in 44.59s ==== ``` The upstream has reported the bug[2] then I applied the workaround in issue 8993[3], but it still got some cases failed: ``` =========================== short test summary info ============================ FAILED sparse/tests/test_coo_numba.py::TestBasic::test_roundtrip - numba.core... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_roundtrip_constant - n... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_unpack_attrs - numba.c... FAILED sparse/tests/test_coo_numba.py::TestBasic::test_repack_attrs - numba.c... ``` It seems the bug was raised by numba and fixed in 0.57 but not sure why it fails on Debian here. But maybe I am wrong to get the conclusion above because from upstream issue 393[4], the problem maybe due to entry points of sparse. But I have no idea how to fix the issue properly. For example, If I install python3-hyperspy[5] to run tests and it will pass. I suspect python-sparse was installed properly when installing python3-hyperspy which depend on python-sparse and installing python3-hyperspy should not to as workaround at all. So what is properly way to fix the issue? TIA. BR, Bo [0]: https://tracker.debian.org/pkg/python-sparse [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052815 [2]: https://github.com/pydata/sparse/issues/594 [3]: https://github.com/numba/numba/issues/8993 [4]: https://github.com/pydata/sparse/issues/393 [5]: https://salsa.debian.org/python-team/packages/python-sparse/-/pipelines/595732