Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using IGRF on Google Colab #9

Open
ghost opened this issue Sep 4, 2021 · 2 comments
Open

Using IGRF on Google Colab #9

ghost opened this issue Sep 4, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 4, 2021

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
Copy link

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

@scivision
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants