scverse / pertpy

Perturbation Analysis in the scverse ecosystem.
https://pertpy.readthedocs.io/en/latest/
MIT License
91 stars 19 forks source link

numba pre-release breaks tests #503

Closed Zethson closed 5 months ago

Zethson commented 5 months ago

Report

FAILED tests/tools/test_mixscape.py::TestMixscape::test_perturbation_signature - numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) Failed in nopython mode pipeline (step: nopython frontend) Internal error at <numba.core.typeinfer.CallConstraint object at 0x7fdd4263d290>. Failed in nopython mode pipeline (step: parfor prelowering) 'NoneType' object has no attribute 'name' During: resolving callee type: type(CPUDispatcher(<function apply_graph_updates_low_memory at 0x7fdd4c50dd00>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/sparse_nndescent.py (218)

Enable logging at debug level for details.

File "../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/sparse_nndescent.py", line 218: def nn_descent_internal_low_memory_parallel(

        c += apply_graph_updates_low_memory(current_graph, updates, n_threads)
        ^

During: resolving callee type: type(CPUDispatcher(<function nn_descent_internal_low_memory_parallel at 0x7fdd7c77aca0>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/sparse_nndescent.py (318)

During: resolving callee type: type(CPUDispatcher(<function nn_descent_internal_low_memory_parallel at 0x7fdd7c77aca0>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/sparse_nndescent.py (318)

File "../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/sparse_nndescent.py", line 318: def nn_descent(

if low_memory:
    nn_descent_internal_low_memory_parallel(
    ^

FAILED tests/tools/test_mixscape.py::TestMixscape::test_lda - numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) Failed in nopython mode pipeline (step: nopython frontend) Failed in nopython mode pipeline (step: nopython frontend) Internal error at <numba.core.typeinfer.CallConstraint object at 0x7fdd7f687dd0>. Failed in nopython mode pipeline (step: parfor prelowering) 'NoneType' object has no attribute 'name' During: resolving callee type: type(CPUDispatcher(<function apply_graph_updates_lowmemory at 0x7fdd4c50dd00>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent.py (228)

Enable logging at debug level for details.

File "../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent_.py", line 228: def process_candidates(

    c += apply_graph_updates_low_memory(current_graph, updates, n_threads)
    ^

During: resolving callee type: type(CPUDispatcher(<function processcandidates at 0x7fdcf1e01440>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent.py (258)

During: resolving callee type: type(CPUDispatcher(<function processcandidates at 0x7fdcf1e01440>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent.py (258)

File "../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent_.py", line 258: def nn_descent_internal_low_memory_parallel(

    c = process_candidates(
    ^

During: resolving callee type: type(CPUDispatcher(<function nn_descent_internal_low_memoryparallel at 0x7fdcf1e01940>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent.py (358)

During: resolving callee type: type(CPUDispatcher(<function nn_descent_internal_low_memoryparallel at 0x7fdcf1e01940>)) During: typing of call at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent.py (358)

File "../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/pynndescent/pynndescent_.py", line 358: def nn_descent(

if low_memory:
    nn_descent_internal_low_memory_parallel(
    ^

Version information

No response

Zethson commented 5 months ago

Probably upstream in pynndescent https://github.com/lmcinnes/pynndescent/issues/235

theAeon commented 5 months ago

https://github.com/numba/numba/pull/9407

upstream in numba, bugfix will be in the 0.59.0 release.