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

[BUG] Possible issue with numba and numpy 1.24 compatibilitiy #344

Closed
bdpedigo opened this issue Jan 6, 2023 · 0 comments · Fixed by #345
Closed

[BUG] Possible issue with numba and numpy 1.24 compatibilitiy #344

bdpedigo opened this issue Jan 6, 2023 · 0 comments · Fixed by #345
Labels
bug Something isn't working

Comments

@bdpedigo
Copy link
Contributor

bdpedigo commented Jan 6, 2023

Reproducing code example:

import hyppo

Error message

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/__init__.py", line 1, in <module>
    import hyppo.discrim
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/discrim/__init__.py", line 1, in <module>
    from .discrim_one_samp import DiscrimOneSample
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/discrim/discrim_one_samp.py", line 5, in <module>
    from ._utils import _CheckInputs
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/discrim/_utils.py", line 4, in <module>
    from ..tools import check_ndarray_xy, check_reps, contains_nan, convert_xy_float64
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/tools/__init__.py", line 4, in <module>
    from .power import *
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/tools/power.py", line 5, in <module>
    from ..independence import INDEP_TESTS
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/independence/__init__.py", line 3, in <module>
    from .dcorr import Dcorr
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/hyppo/independence/dcorr.py", line 2, in <module>
    from numba import jit
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/numba/__init__.py", line 43, in <module>
    from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/numba/np/ufunc/__init__.py", line 3, in <module>
    from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
  File "/Users/bpedigo/JHU_code/neuropull/neuropull/.venv/lib/python3.9/site-packages/numba/np/ufunc/decorators.py", line 3, in <module>
    from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception

Version information

  • OS: macOS 12.4
  • Python Version: 3.9
  • Package Version:
    • numpy 1.24.0
    • hyppo 0.3.2
    • numba 0.53.1

Other info

Documented already in numba:
numba/numba#8615

In the meantime, it may be worth pinning the numpy version to prevent this until they have a fix? This is causing graspologic to break with a fresh environment if the most recent version of everything is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant