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

Error report #13

Open
JouleCai opened this issue May 10, 2022 · 4 comments
Open

Error report #13

JouleCai opened this issue May 10, 2022 · 4 comments

Comments

@JouleCai
Copy link

I got the following message when I call the igrf module. It looks like that the required files cannot be found and the search path is redirected to my home folder. Could you please help to check the problem?

import igrf
mag = igrf.igrf('2010-07-12', glat=65, glon=-148, alt_km=100)
Traceback (most recent call last):
File "", line 1, in
File "/home/lei/igrf/src/igrf/base.py", line 134, in igrf
ret = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/lei/.conda/envs/eiscat_cdt/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/home/lei/.conda/envs/eiscat_cdt/lib/python3.10/subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/lei/.conda/envs/eiscat_cdt/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/lei/igrf/src/igrf/igrf13_driver'

@JWiker
Copy link

JWiker commented May 12, 2022

I'm also getting this - @scivision would you be able to help us find the issue?

@umbertowski
Copy link

I'm also got this issue, I've tried to make some changes in base.py but it still not working

Traceback (most recent call last):
File "/Users/umbertomoffa/PycharmProjects/pythonProject7/main.py", line 68, in
print_hi ('PyCharm')
File "/Users/umbertomoffa/PycharmProjects/pythonProject7/main.py", line 51, in print_hi
mag = igrf ('2010-07-12', glat = 65, glon = -148, alt_km = 100)
File "/Users/umbertomoffa/opt/anaconda3/envs/pythonProject7/lib/python3.10/site-packages/igrf/base.py", line 137, in igrf
ret = subprocess.run(cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/Users/umbertomoffa/opt/anaconda3/envs/pythonProject7/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/umbertomoffa/opt/anaconda3/envs/pythonProject7/lib/python3.10/subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/umbertomoffa/opt/anaconda3/envs/pythonProject7/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/umbertomoffa/opt/anaconda3/envs/pythonProject7/lib/python3.10/site-packages/igrf/igrf13_driver'

Have you guys find a solution for this problem? @JWiker @JouleCai

Can you help us? @scivision

@JWiker
Copy link

JWiker commented Jun 27, 2022

Have you guys find a solution for this problem? @JWiker @JouleCai

Unfortunately not, still seeing the issue. Hopefully @scivision can help?

@hisahon
Copy link

hisahon commented Jul 12, 2022

I think i found the solution, to me the problem was solved building compiler manually. (Just once.)
image
image

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

4 participants