question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on import with numpy HEAD

See original GitHub issue

Reporting 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:open
  • Created 10 months ago
  • Reactions:4
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
larsonercommented, Dec 19, 2022

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.

3reactions
zarifazizcommented, Dec 21, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found