igrf
igrf copied to clipboard
Using IGRF on Google Colab
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)
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.
@ itsalljokay I also encountered this problem, how to solve it. Thanks so much!
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