Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.numba: fix compatibility with numpy 2.0.1 #336281

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

GaetanLepage
Copy link
Contributor

@GaetanLepage GaetanLepage commented Aug 21, 2024

Description of changes

numba got broken by the latest numpy update.
While waiting for the next release, this patch should let it build.

Upstream issue: numba/numba#9687
Upstream PR: numba/numba#9683

cc @doronbehar

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@doronbehar
Copy link
Contributor

Looks good, but I wonder if it would be possible to make this compatible with numpy 2.1 although numba/numba#9708 ... I have a few questions from numba users: You use both numpy_2 and numpy_1 for the build... How does it work? I noticed that removing numpy_2 makes the build fail, but OTH upstream states in their setup.py that very low numpy_1 versions are supported...

@doronbehar
Copy link
Contributor

My alternative: #336284

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 336281 run on aarch64-linux 1

22 packages marked as broken and skipped:
  • khoj
  • khoj.dist
  • piper-train
  • piper-train.dist
  • python311Packages.aeppl
  • python311Packages.aeppl.dist
  • python311Packages.aesara
  • python311Packages.aesara.dist
  • python311Packages.bambi
  • python311Packages.bambi.dist
  • python311Packages.clifford
  • python311Packages.clifford.dist
  • python311Packages.stytra
  • python311Packages.stytra.dist
  • python311Packages.trackpy
  • python311Packages.trackpy.dist
  • python312Packages.clifford
  • python312Packages.clifford.dist
  • python312Packages.stytra
  • python312Packages.stytra.dist
  • python312Packages.trackpy
  • python312Packages.trackpy.dist
26 packages failed to build:
  • python311Packages.arviz
  • python311Packages.arviz.dist
  • python311Packages.corner
  • python311Packages.corner.dist
  • python311Packages.ffcv
  • python311Packages.ffcv.dist
  • python311Packages.pymc
  • python311Packages.pymc.dist
  • python311Packages.ydata-profiling
  • python311Packages.ydata-profiling.dist
  • python312Packages.arviz
  • python312Packages.arviz.dist
  • python312Packages.corner
  • python312Packages.corner.dist
  • python312Packages.graphrag
  • python312Packages.graphrag.dist
  • python312Packages.graspologic
  • python312Packages.graspologic.dist
  • python312Packages.gumath
  • python312Packages.gumath.dist
  • python312Packages.hyppo
  • python312Packages.hyppo.dist
  • python312Packages.tinygrad
  • python312Packages.tinygrad.dist
  • python312Packages.ydata-profiling
  • python312Packages.ydata-profiling.dist
181 packages built:
  • backgroundremover
  • backgroundremover.dist
  • molbar (python312Packages.molbar)
  • molbar.dist (python312Packages.molbar.dist)
  • openai-whisper (python312Packages.openai-whisper)
  • openai-whisper.dist (python312Packages.openai-whisper.dist)
  • pianotrans
  • pianotrans.dist
  • pitivi
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.awkward
  • python311Packages.awkward.dist
  • python311Packages.coffea
  • python311Packages.coffea.dist
  • python311Packages.correctionlib
  • python311Packages.correctionlib.dist
  • python311Packages.cppe
  • python311Packages.cppe.dist
  • python311Packages.dask-awkward
  • python311Packages.dask-awkward.dist
  • python311Packages.dask-glm
  • python311Packages.dask-glm.dist
  • python311Packages.dask-ml
  • python311Packages.dask-ml.dist
  • python311Packages.datashader
  • python311Packages.datashader.dist
  • python311Packages.dscribe
  • python311Packages.dscribe.dist
  • python311Packages.galois
  • python311Packages.galois.dist
  • python311Packages.graphrag
  • python311Packages.graphrag.dist
  • python311Packages.graspologic
  • python311Packages.graspologic.dist
  • python311Packages.gumath
  • python311Packages.gumath.dist
  • python311Packages.hyppo
  • python311Packages.hyppo.dist
  • python311Packages.librosa
  • python311Packages.librosa.dist
  • python311Packages.molbar
  • python311Packages.molbar.dist
  • python311Packages.mplhep
  • python311Packages.mplhep.dist
  • python311Packages.numba
  • python311Packages.numba-scipy
  • python311Packages.numba-scipy.dist
  • python311Packages.numba.dist
  • python311Packages.numbaWithCuda
  • python311Packages.numbaWithCuda.dist
  • python311Packages.numpy-groupies
  • python311Packages.numpy-groupies.dist
  • python311Packages.openai-whisper
  • python311Packages.openai-whisper.dist
  • python311Packages.outlines
  • python311Packages.outlines.dist
  • python311Packages.piano-transcription-inference
  • python311Packages.piano-transcription-inference.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python311Packages.pygmo
  • python311Packages.pymatting
  • python311Packages.pymatting.dist
  • python311Packages.pymoo
  • python311Packages.pymoo.dist
  • python311Packages.pynndescent
  • python311Packages.pynndescent.dist
  • python311Packages.pytensor
  • python311Packages.pytensor.dist
  • python311Packages.quaternion
  • python311Packages.quaternion.dist
  • python311Packages.resampy
  • python311Packages.resampy.dist
  • python311Packages.scikit-tda
  • python311Packages.scikit-tda.dist
  • python311Packages.shap
  • python311Packages.shap.dist
  • python311Packages.sparse
  • python311Packages.sparse.dist
  • python311Packages.stumpy
  • python311Packages.stumpy.dist
  • python311Packages.timezonefinder
  • python311Packages.timezonefinder.dist
  • python311Packages.tinygrad
  • python311Packages.tinygrad.dist
  • python311Packages.torch-audiomentations
  • python311Packages.torch-audiomentations.dist
  • python311Packages.torchcrepe
  • python311Packages.torchcrepe.dist
  • python311Packages.torchlibrosa
  • python311Packages.torchlibrosa.dist
  • python311Packages.tsfresh
  • python311Packages.tsfresh.dist
  • python311Packages.umap-learn
  • python311Packages.umap-learn.dist
  • python311Packages.uproot
  • python311Packages.uproot.dist
  • python311Packages.vector
  • python311Packages.vector.dist
  • python311Packages.xarray-einstats
  • python311Packages.xarray-einstats.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.awkward
  • python312Packages.awkward.dist
  • python312Packages.coffea
  • python312Packages.coffea.dist
  • python312Packages.correctionlib
  • python312Packages.correctionlib.dist
  • python312Packages.cppe
  • python312Packages.cppe.dist
  • python312Packages.dask-awkward
  • python312Packages.dask-awkward.dist
  • python312Packages.dask-glm
  • python312Packages.dask-glm.dist
  • python312Packages.dask-ml
  • python312Packages.dask-ml.dist
  • python312Packages.dscribe
  • python312Packages.dscribe.dist
  • python312Packages.galois
  • python312Packages.galois.dist
  • python312Packages.librosa
  • python312Packages.librosa.dist
  • python312Packages.mplhep
  • python312Packages.mplhep.dist
  • python312Packages.numba
  • python312Packages.numba-scipy
  • python312Packages.numba-scipy.dist
  • python312Packages.numba.dist
  • python312Packages.numbaWithCuda
  • python312Packages.numbaWithCuda.dist
  • python312Packages.numpy-groupies
  • python312Packages.numpy-groupies.dist
  • python312Packages.outlines
  • python312Packages.outlines.dist
  • python312Packages.piano-transcription-inference
  • python312Packages.piano-transcription-inference.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • python312Packages.pygmo
  • python312Packages.pymatting
  • python312Packages.pymatting.dist
  • python312Packages.pymoo
  • python312Packages.pymoo.dist
  • python312Packages.pynndescent
  • python312Packages.pynndescent.dist
  • python312Packages.quaternion
  • python312Packages.quaternion.dist
  • python312Packages.resampy
  • python312Packages.resampy.dist
  • python312Packages.scikit-tda
  • python312Packages.scikit-tda.dist
  • python312Packages.shap
  • python312Packages.shap.dist
  • python312Packages.sparse
  • python312Packages.sparse.dist
  • python312Packages.stumpy
  • python312Packages.stumpy.dist
  • python312Packages.timezonefinder
  • python312Packages.timezonefinder.dist
  • python312Packages.torch-audiomentations
  • python312Packages.torch-audiomentations.dist
  • python312Packages.torchcrepe
  • python312Packages.torchcrepe.dist
  • python312Packages.torchlibrosa
  • python312Packages.torchlibrosa.dist
  • python312Packages.umap-learn
  • python312Packages.umap-learn.dist
  • python312Packages.uproot
  • python312Packages.uproot.dist
  • python312Packages.vector
  • python312Packages.vector.dist
  • python312Packages.xarray-einstats
  • python312Packages.xarray-einstats.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist

Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be merged in the meantime until a numba with numpy 2.1 support will be released.

@doronbehar
Copy link
Contributor

Ofborg's CI error with aarch64-linux is weird... How come it didn't fail for you @GaetanLepage locally?

..................................................................................................................................sss......................................................................../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_array_analysis.py", line 990:
        def test_impl():
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_array_analysis.py", line 1053:
        def test_impl():
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
.../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_array_analysis.py", line 1017:
        # these tests shouldn't throw error in array analysis
        def test_impl1():
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_array_analysis.py", line 1023:
        def test_impl2(A, a):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
...s..........sssssssssssssssss...........s.............sssss..ss.............sssssssss..........................ssssssssssssssssssssssssss.........ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.............ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss/nix/store/wviq85xs5awfp75mj5sjq9mn1nkqhq12-python3-3.12.4/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=8) is multi-threaded, use of fork() may lead to deadlocks in the child.
  self.pid = os.fork()
..........s/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 117:
    def test_alias_flat(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 193:
    def test_alias_func_ext(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 110:
    def test_alias_ravel(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 179:
    def test_alias_reshape1(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 186:
    def test_alias_reshape2(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 124:
    def test_alias_transpose1(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 131:
    def test_alias_transpose2(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_remove_dead.py", line 138:
    def test_alias_transpose3(self):
        def func(A, i):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
.......................................s...................s...................................../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_stencils.py", line 75:
    @njit(parallel=True)
    def addone_pjit(a):
    ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
........./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)
.s/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)
.s............/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/typed_passes.py:336: NumbaPerformanceWarning: 
The keyword argument 'parallel=True' was specified but no transformation for parallel execution was possible.
To find out why, try turning on parallel diagnostics, see https://numba.readthedocs.io/en/stable/user/parallel.html#diagnostics for help.
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_stencils.py", line 521:
        """
        def test_impl(A):
        ^
  warnings.warn(errors.NumbaPerformanceWarning(msg,
./nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/ir_utils.py:2172: NumbaPendingDeprecationWarning: 
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'b' of function '__numba_stencil_0xffff6ab2a030_6'.
For more information visit https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-reflection-for-list-and-set-types
File "<string>", line 1:
<source missing, REPL/exec in use?>
  warnings.warn(NumbaPendingDeprecationWarning(msg, loc=loc))
....ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
======================================================================
ERROR: test_wrapper_address_protocol_libm (numba.tests.test_function_type.TestFunctionTypeExtensions.test_wrapper_address_protocol_libm) [<object object at 0xffff6bb515d0>] (jit={'nopython': True})
Call cos and sinf from standard math library.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_function_type.py", line 625, in test_wrapper_address_protocol_libm
    self.assertEqual(jit_(myeval)(mycos, 0.0), 1.0)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/dispatcher.py", line 423, in _compile_for_args
    error_rewrite(e, 'typing')
  File "/nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/core/dispatcher.py", line 364, in error_rewrite
    raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
non-precise type pyobject
During: typing of argument at /nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_function_type.py (616)
File "../../nix/store/58drm3jnmp1mkw1xvijdl4rkwclblaz8-python3-3.12.4-env/lib/python3.12/site-packages/numba/tests/test_function_type.py", line 616:
        def myeval(f, x):
        ^
----------------------------------------------------------------------
Ran 10500 tests in 1300.432s
FAILED (errors=1, skipped=695, expected failures=22)

@GaetanLepage
Copy link
Contributor Author

Ofborg's CI error with aarch64-linux is weird... How come it didn't fail for you @GaetanLepage locally?

Good question... maybe it has just been flaky on hydra...

@GaetanLepage GaetanLepage merged commit b05f231 into NixOS:master Aug 21, 2024
32 of 34 checks passed
@GaetanLepage GaetanLepage deleted the numba branch August 21, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants