space-physics / igrf

International Geomagnetic Reference Field IGRF13 in Python and Matlab
https://www.ngdc.noaa.gov/IAGA/vmod/
MIT License
66 stars 28 forks source link

Using IGRF on Google Colab #9

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello! I am attempting to use IGRF through Google Colab. I am stymied by this error, as it seems to be an environmental issue, but I have been unable to resolve it despite many attempts. GCC, GFortran, Cmake, all the necessary dependencies are present in the environment when I check for them, and are up to date. Any insight into this issue would be greatly appreciated.

-----CODE------

Install IGRF

!pip install igrf

Run IGRF Example

import igrf mag = igrf.igrf('2010-07-12', glat=65, glon=-148, alt_km=100)

-----OUTPUT------ CalledProcessError Traceback (most recent call last)

in () 5 6 import igrf ----> 7 mag = igrf.igrf('2010-07-12', glat=65, glon=-148, alt_km=100) 8 3 frames /usr/lib/python3.7/subprocess.py in check_call(*popenargs, **kwargs) 361 if cmd is None: 362 cmd = popenargs[0] --> 363 raise CalledProcessError(retcode, cmd) 364 return 0 365 CalledProcessError: Command '['/usr/local/bin/ctest', '-S', '/usr/local/lib/python3.7/dist-packages/igrf/setup.cmake', '-VV']' returned non-zero exit status 255.
buaa-luzhi commented 3 years ago

@ itsalljokay I also encountered this problem, how to solve it. Thanks so much!

scivision commented 3 years ago

I'm not sure, I haven't seen this issue. I just rearranged the build to see if it helps, at least if it will give some error output