You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a previous installation of 0.3.3, which operated correctly. I upgraded to v1.0.0 using pip install pyIGRF --upgrade. After a successful upgrade, I attempted to re-run my script, but got the following errors:
import pyIGRF # Geomagnetic field model
File "/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/init.py", line 11, in
from pyIGRF.value import igrf_variation, igrf_value
File "/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/value.py", line 3, in
import pyIGRF.calculate as calculate
File "/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/calculate.py", line 5, in
from pyIGRF.loadCoeffs import get_coeffs
File "/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/loadCoeffs.py", line 35, in
gh = load_coeffs(os.path.dirname(os.path.abspath(file)) + '/src/igrf14coeffs.txt')
File "/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/loadCoeffs.py", line 15, in load_coeffs
with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/testaccount/Documents/project/venvdir/lib/python3.9/site-packages/pyIGRF/src/igrf14coeffs.txt'
Hypotheses:
Looking at the merged pull request update to igrf14 and remove numpy #13 , I suspect that pyIGRF.egg-info/SOURCES.txt may have been modified incompletely, especially this line where the igrf13coeffs.txt file is removed, but not replaced with the igrf14coeffs.txt file:
Problem statement:
There was a previous installation of 0.3.3, which operated correctly. I upgraded to v1.0.0 using
pip install pyIGRF --upgrade. After a successful upgrade, I attempted to re-run my script, but got the following errors:Hypotheses: