space-physics / NCAR-GLOW

CMake, Meson, Matlab, Python additions to GLOW. NCAR wants to publish only base code.
https://github.com/NCAR/GLOW
Apache License 2.0
9 stars 8 forks source link

Installation issue #5

Open bharding512 opened 2 years ago

bharding512 commented 2 years ago

This might be my own environment issue, but if anyone has any tips or things to try, please let me know. (Linux, Python3.7)

"pip install -e ncar-glow" appears to run with no errors, but "python -m pytest ncar-glow" gives me the following error. I also get this error when I try to manually run GLOW (e.g., test_maxwellian())

subprocess.CalledProcessError: Command '['/home/bharding/envs/env_glow_maax/ncar-glow/src/ncarglow/build/glow.bin', '2015347', '36000', '65.1', '-147.5', '106.22037037037008', '118.7', '113.1', '7', '1.0', '100000.0', '250']' died with <Signals.SIGSEGV: 11>.

bharding512 commented 2 years ago

When I try to run glow.bin directly, I get a seg fault. So this seems like a problem with the underlying GLOW build.

[env_glow_maax] gyarados-build [142] ./glow.bin Segmentation fault

cwesterlund94 commented 2 years ago

Running this on macos catalina 10.15.7. Previously, I had this working with some exceptions, but now I get a similar error when running Maxwellian.py: "raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/Users/cameronwesterlund/ncar-glow/build/glow.bin', '2013077', '32400', '65.1', '-147.5', '113.80000000000001', '116.6', '124.5', '6', '1.0', '100000.0', '250']' died with <Signals.SIGABRT: 6>."

This used to work for me, but maybe recent updates have messed it up. https://github.com/NCAR/GLOW and https://github.com/gemini3d/glow have also been giving me issues that I have yet to resolve. It could be build related.

bharding512 commented 1 year ago

In case this is helpful to anyone... I was able to install and run this successfully on MacOS Catalina 10.15.7 / Python 3.10, but I had to modify the code to use geomagdata (thanks @sunipkm) instead of geomagindices. Working branch is here: https://github.com/bharding512/NCAR-GLOW/tree/steve

sunipkm commented 1 year ago

In case this is helpful to anyone... I was able to install and run this successfully on MacOS Catalina 10.15.7 / Python 3.10, but I had to modify the code to use geomagdata (thanks @sunipkm) instead of geomagindices. Working branch is here: https://github.com/bharding512/NCAR-GLOW/tree/steve

I have actually created a fork of NCAR-GLOW as glowpython with better documentation (both in xarray outputs and functions themselves) using geomagdata. You could try to use that as well.