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.

Compat error with `numpy>1.20`

See original GitHub issue

Describe the bug Cannot install the latest version of xarray-spatial with an up-to-date stack (numpy>1.20).

Expected behavior Install the latest version of xarray-spatial through conda

Screenshots I’m trying to update the gds_env and trying an install that pins xarray-spatial to its latest release returns the following error:

package xarray-spatial-0.2.9-pyhd8ed1ab_0 requires numpy >=1.7,<=1.20, but none of the providers can be installed

The numpy version it is installing (for compatibility with other libraries) is 1.21.2. Is there any reason why it pins to 1.20 as the most recent version?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ianthomas23commented, Nov 12, 2021

@darribas My earlier answer was wrong. It turns out that we do need to pin numpy to <=1.20 as that is what numba 0.54.x requires. This restriction has been removed in numba’s master branch, so we will need to wait until their next release. I don’t think will be long, they are finishing off their python 3.10 support and I expect a release after that.

0reactions
ianthomas23commented, Nov 15, 2021

Yes, I agree.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cvxpy 1.1.7 no longer compatible with numpy<1.20? #1229
So: the issue is not that CVXPY is incompatible with older versions of NumPy, but rather installation via pip is building the cvxcore...
Read more >
NumPy 1.20.0 Release Notes
The following code stops raising an error: np.array([np.float64(np.nan)], dtype=np.uint64). To avoid backward compatibility issues, at this time assignment ...
Read more >
ValueError: numpy.ndarray size changed, may indicate binary ...
I had this issue when using the tensorflow object api. Tensorflow is currently NOT compatible with numpy==1.20 (although this issue is not ...
Read more >
[Python] pyarrow<3 incompatible with numpy>=1.20.0 - Apache
pyarrow 1.0 and 2.0 is not compatible with numpy 1.20.0 Running the following command would fail: pa.array(np.arange(10)) with error ...
Read more >
TensorFlow and Numpy Issue M1 | Apple Developer Forums
Uninstall your numpy, and conda install numpy~=1.19.5 , this will work. numpy 1.20+ is not compatible with this tensorflow. https://github.com/tensorflow/ ...
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