Closed nannau closed 1 year ago
Hi @nannau !
As far as I could see in my quick search, no version of numba
has ever supported numpy
1.24 in the last year. I might be wrong, but I think this might be a bug from your package manager? Conda shouldn't have installed that numpy
. May be this is related to #185 ? There, the conda recipe for numba
was wrong.
In any case, AFAIU this is not an issue of xESMF, but of upstream packages.
Hi there @aulemahal -- thanks for the speedy reply.
As far as I could see in my quick search, no version of
numba
has ever supportednumpy
1.24 in the last year. I might be wrong, but I think this might be a bug from your package manager? Conda shouldn't have installed thatnumpy
.
Interesting! Actually, I just tried again from scratch with:
conda install -c conda-forge xesmf
and it did install numpy == 1.23.5
, so you're absolutely right.
I should mention I deviated slightly from the documentation and installed jupyterlab
with pip
after conda install -c conda-forge pip
. Somehow I must have inadvertently upgraded numpy and angered the dependency gods. I'm trying to reproduce the error at the moment but can't. 🤷🤷🤷
In any case, AFAIU this is not an issue of xESMF, but of upstream packages.
Agreed! This appears to be a weird order-of-operations style issue that's my fault. Closing this issue. Thanks again for your response!
In case someone has this issue in the future, try from scratch following the documentation exactly, or just downgrade numpy. :)
Hi folks! I'm brand new to xESMF. It looks like a great initiative, and I'm looking forward to getting started.
While following the installation instructions with conda (https://xesmf.readthedocs.io/en/latest/installation.html), I ran into a system error when importing xesmf.
The Problem
The error is (full trace below):
From an initial glance, this may be a numba issue, not an xESMF issue, but in case it's helpful I thought I'd open it here for other users. See this thread: https://github.com/numba/numba/issues/8615
My System:
OS: Ubuntu 22.04 Conda: 23.1.0 Python: 3.10.9 xesmf: 0.7.0 numpy: 1.24.2
My Solution:
The above numba GH issue hints that it's related to recent versions of numpy. Indeed, downgrading to
numpy == 1.23.5
solves the issue.Full trace:
Happy to provide more details if necessary.