A large number of software packages are available for working with gravitational wave data. A whole bunch of these can be easily installed using the IGWN Conda environment.
To try it out in a mac or linux environment:
conda config --add channels conda-forge
conda env create --file igwn-py39.yaml
conda activate igwn-py39
And … that’s it! You should have a full suite of IGWN software on your computer. Now you can run tutorials from the Open Data Workshop locally on your laptop. Please try it out, and let us know how it goes.
I checked the Option 3 of the Setup (odw-2022/setup.md at main · gw-odw/odw-2022 · GitHub), it seems to work (and to work quite easily), but maybe I’m biased by the fact that the conda environment was already installed on my mac. Anyway, everything else seems to be ok, the instructions are clear and the tutorial (at least 1.1) works as well.
It seems like it could not install the entirety of the packages on the stack. I can only think of a network connection problem. Can you post as well the commands you typed? Deleting the environment and creating a fresh new one may also help.
@harryyeh I’m sorry you are running into a problem!
I just tried it on my mac, and it worked for me. Sometimes, conda packages can go missing for a few hours due to network and/or server issues. I’d encourage you to try again after 24 hours, and let us know if the problems persists.
Can you post the output of
conda info? I have a hunch that you are missing a configuration setting.
I just reinstalled conda in my arm MacBook and I get the same error as above.
$ conda config --add channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the top
$ conda env create --file igwn-py39.yaml
Collecting package metadata (repodata.json): done
Solving environment: failed
... long list of packages ...
conda info returns this:
$ conda info
active environment : base
active env location : /Users/martin/opt/anaconda3
shell level : 1
user config file : /Users/martin/.condarc
populated config files : /Users/martin/.condarc
conda version : 4.13.0
conda-build version : 3.21.9
python version : 3.9.12.final.0
virtual packages : __osx=11.6.7=0
base environment : /Users/martin/opt/anaconda3 (writable)
conda av data dir : /Users/martin/opt/anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
package cache : /Users/martin/opt/anaconda3/pkgs
envs directories : /Users/martin/opt/anaconda3/envs
platform : osx-arm64
user-agent : conda/4.13.0 requests/2.27.1 CPython/3.9.12 Darwin/20.6.0 OSX/11.6.7
UID:GID : 501:20
netrc file : None
offline mode : False
Ok, I think I understand. There is a crucial difference in architectures here. The link that @jonah originally posted (https://computing.docs.ligo.org/conda/environments/osx/igwn-py39.yaml) is only valid for macOS with x86_64 (Intel or AMD) CPUs. Conda calls this
For the new ARM-powered macOS hardware, you need environments built for
osx-arm64. These should become available this week, I will post here again when that work is complete.
Related to this issue, I think Apple removed Rosetta (the osx-64 to arm translator) in one of the latest updates because I used to be able to make it work before with the previous yaml, but not after I last updated the OS.
osx-arm64 environments are now available, and linked from, e.g. https://computing.docs.ligo.org/conda/environments/igwn/.
Note: as documented, the
osx-arm64 environments are provided on a best-effort basis only, and may be incomplete with respect to the
osx-64 environments. If there are packages that you wish to find in
osx-arm64 that currently aren’t included, please (a) coordinate with the maintainers of the conda-forge recipe for that package to have it built for
osx-arm64 then (b) contact a member of IGWN Computing (e.g. me) to get that package added to the distribution.
Thanks, I tested on my laptop and installation went smoothly, no issues.