Closed guigrpa closed 1 year ago
Sorry if this has been asked elsewhere (I couldn't find it). Are there plans to support ARM binaries for M1 Macs?
maybe it's the question of esmpy which depended by xesmf.
@rokuingh Are there plans for ESMpy to be built on ARM?
@huard we don't currently have plans for this, but I added a feature request. Unfortunately the ESMF support repo is private but someone will contact you when this issue is prioritized.
@huard a port for ARM64 has been added to the upcoming patch release 8.3.1, this will show up in conda-forge when it is available.
@guigrpa Do you want to give it a try now ?
I will definitely try it out, probably when I come back to this feature of our project in a month or so. Thanks!
Looks like ESMF ARM support has been merged https://github.com/conda-forge/esmf-feedstock/commit/bfdd28c64db029292bdfe19c9dbcba7760c161ed
@guigrpa Any news on this ?
Just tried to install right now on a M1
, and I got the following results:
$ conda install xesmf
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /opt/homebrew/Caskroom/mambaforge/base/envs/dev
added / updated specs:
- xesmf
The following packages will be downloaded:
package | build
---------------------------|-----------------
esmf-8.4.0 | nompi_h57e96e1_3 21.4 MB conda-forge
esmpy-8.4.0 |nompi_py311h756c473_1 231 KB conda-forge
netcdf-fortran-4.6.0 |nompi_ha19a45f_102 393 KB conda-forge
xesmf-0.3.0 | py_0 19 KB conda-forge
------------------------------------------------------------
Total: 22.1 MB
The following NEW packages will be INSTALLED:
esmf conda-forge/osx-arm64::esmf-8.4.0-nompi_h57e96e1_3
esmpy conda-forge/osx-arm64::esmpy-8.4.0-nompi_py311h756c473_1
netcdf-fortran conda-forge/osx-arm64::netcdf-fortran-4.6.0-nompi_ha19a45f_102
xesmf conda-forge/noarch::xesmf-0.3.0-py_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Then, in ipython:
import xesmf as xe
...
ModuleNotFoundError: No module named 'esmf'
This is issue #212, i.e. a breaking change in ESMpy
8.4. xESMF
was adapted to this change in v 0.7.
Is there a reason v 0.3 was installed here, seems quite vintage ?
ARM architecture seems supported in ESMpy 8.3.1, as hinted at above, you could try to downgrade ESMpy
if upgrading xESMF
fails for now.
Yeah, I'm not sure why it installed such an outdated version in my main environment. I've created a new one for xesmf
and it's working. Thanks for the fast answer :D
Thanks for the update!
Sorry if this has been asked elsewhere (I couldn't find it). Are there plans to support ARM binaries for M1 Macs?