spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
156 stars 60 forks source link

pyspedas installation issue on Mac M1(?) (building blosc library) #873

Open jameswilburlewis opened 5 months ago

jameswilburlewis commented 5 months ago

A user had some issues installing pyspedas on an Apple Silicon Mac. Looking through my notes, I also had the same issue and was able to solve it by installing another package. (The issue was several layers of dependencies deep in the NetCDF4 package, there was a package called 'blosc' that didn't install cleanly). The user and I were both eventually able to finish the install -- I'm waiting to find out exactly what they did and compare it to my solution.

We will want to address this and similar issues users might encounter in our "getting started with pyspedas" documentation.

jameswilburlewis commented 5 days ago

The original issue might have been resolved upstream by now. However, installing netCDF4 under Python 3.13 on Mac Ventura/ARM is still an issue. (Github dropped ARM support for Ventura, so netCDF4 is only making ARM wheels for OSX 14 and 15.). See the issue I opened on their repo: https://github.com/Unidata/netcdf4-python/issues/1385

conda install -c conda-forge netCDF4 works for now. Also, there is supposedly a working binary wheel here:

https://files.pythonhosted.org/packages/58/3e/5736880a607edabca4c4fc49f1ccf9a2bb2485f84478e4cd19ba11c3b803/netCDF4-1.7.2-cp313-cp313-macosx_14_0_arm64.whl

So we should give this wheel a try, and if it works, refer to it in our installation guide. (conda install -c conda-forge netCDF4 also works, but people don't necessarily want to mix pip and conda).