Error on import with numpy HEAD
See original GitHub issueReporting a bug
- I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
- I have included a self contained code sample to reproduce the problem. i.e. it’s possible to run as ‘python bug.py’.
This will be a somewhat sparse bug report, but putting here early in case anyone recognizes this. We can do more work to replicate the environment if not.
In our upstream tests, xarray tests nightly against unreleased versions of our dependencies to get ahead of any incompatible code. Occasionally it also catches bugs in upstream libraries.
Here, we’re getting an error importing some items from numba.np.ufunc, including the somewhat confusing SystemError: initialization of _internal failed without raising an exception at the bottom of the stack trace.
https://github.com/pydata/xarray/issues/7306
Any ideas on what might be causing this?
Thanks in advance!
Issue Analytics
- State:
- Created 10 months ago
- Reactions:4
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Data frame error when trying to display head - python
try using>>> import matplotlib.pyplot as plt import pandas as pd import numpy as np %matplotlib inline Pop_By_County ...
Read more >3 Things to Know Before Building with PyScript
One of the big advantages of using PyScript is the ability to import Python libraries such as NumPy or Pandas, which is first...
Read more >AttributeError: 'numpy.ndarray' object has no attribute ' ...
The problem is that train_test_split(X, y, ...) returns numpy arrays and not pandas dataframes. Numpy arrays have no attribute named columns.
Read more >NumPy User Guide
It is a Python library that provides a multidi- mensional array object, various derived objects (such as masked arrays and matrices), and an ......
Read more >Error - unable to read the csv file in pandas
after importing panda i am unable to read the csv file. import pandas as pd df=pd.read_csv(“data.csv”). the error i am getting is :- ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just a heads up that I think I’m hitting this error in CIs now that NumPy 1.24 has been released:
https://github.com/mne-tools/mne-python/actions/runs/3732610574/jobs/6332287508#step:9:56
I expect others might hit it soon, too.
For devs who are trying to fix their environments The problem occurs in the latest version of numpy. Installing a lower version of numpy (<1.24) fixed the problem for us.