igrf icon indicating copy to clipboard operation
igrf copied to clipboard

Using IGRF on Google Colab

Open ghost opened this issue 4 years ago • 2 comments

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.

ghost avatar Sep 04 '21 21:09 ghost

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

buaa-luzhi avatar Sep 14 '21 12:09 buaa-luzhi

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

scivision avatar Oct 11 '21 08:10 scivision