Unable to get ancillary data/luts using scripts (or, this old guy needs help)
Posted: Sun Mar 15, 2020 8:39 pm America/New_York
Hi - It's been a while since I've done any SeaDAS processing, certainly not since the new authentication requirement has been operational. I wasn't _that_ surprised when my attempt to update my ancillary data files failed with the following:
bash-3.2$ ./getanc.py -s 1997267000000 -e 2002365235959
Traceback (most recent call last):
File "./getanc.py", line 10, in <module>
import modules.anc_utils as ga
File "/Applications/seadas-7.5/ocssw/scripts/modules/anc_utils.py", line 9, in <module>
import modules.ProcUtils as ProcUtils
File "/Applications/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
I looked through the forum archive and, after trying to de-cypher some the advice, did the following:
1. Created a ~/.netrc file that consists of one line: machine urs.earthdata.nasa.gov login MYID password MYPW
2. Installed the python requests library (used 'pipenv install requests')
I tried getanc.py again and got the same error message. I also get an error message when I try update_luts.py. That message is:
bash-3.2$ ./update_luts.py
Traceback (most recent call last):
File "./update_luts.py", line 9, in <module>
import modules.LutUtils as Lut
File "/Applications/seadas-7.5/ocssw/scripts/modules/LutUtils.py", line 5, in <module>
import JsonUtils as Session
ModuleNotFoundError: No module named 'JsonUtils'
Finally, when trying from the SeaDAS7.5.3 GUI to Update Data Processors, I get:
execution exception: java.io.IOException: install_ocssw.py failed with exit code 1.
Check log for more details.
.... Whole bunch of information .... followed by:
2020-03-15 19:32:29 (722 KB/s) - ‘opt-src-v7.5.tar’ saved [230021120/230021120]
Installing scripts (16 of 20)
Python version acceptable
Installing seawifs-luts (17 of 20)
Traceback (most recent call last):
File "/Applications/seadas-7.5/ocssw/scripts/update_luts.py", line 9, in <module>
import modules.LutUtils as Lut
File "/Applications/seadas-7.5/ocssw/scripts/modules/LutUtils.py", line 5, in <module>
import JsonUtils as Session
File "/Applications/seadas-7.5/ocssw/scripts/modules/JsonUtils.py", line 7, in <module>
from ProcUtils import getSession, httpdl
File "/Applications/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Error - Could not install luts for seawifs
So - maybe I messed up installing the python requests library; are there some specific instructions somewhere? I run SeaDAS on a MacBookPro under OS10.14.6
Thanks, Barry
bash-3.2$ ./getanc.py -s 1997267000000 -e 2002365235959
Traceback (most recent call last):
File "./getanc.py", line 10, in <module>
import modules.anc_utils as ga
File "/Applications/seadas-7.5/ocssw/scripts/modules/anc_utils.py", line 9, in <module>
import modules.ProcUtils as ProcUtils
File "/Applications/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
I looked through the forum archive and, after trying to de-cypher some the advice, did the following:
1. Created a ~/.netrc file that consists of one line: machine urs.earthdata.nasa.gov login MYID password MYPW
2. Installed the python requests library (used 'pipenv install requests')
I tried getanc.py again and got the same error message. I also get an error message when I try update_luts.py. That message is:
bash-3.2$ ./update_luts.py
Traceback (most recent call last):
File "./update_luts.py", line 9, in <module>
import modules.LutUtils as Lut
File "/Applications/seadas-7.5/ocssw/scripts/modules/LutUtils.py", line 5, in <module>
import JsonUtils as Session
ModuleNotFoundError: No module named 'JsonUtils'
Finally, when trying from the SeaDAS7.5.3 GUI to Update Data Processors, I get:
execution exception: java.io.IOException: install_ocssw.py failed with exit code 1.
Check log for more details.
.... Whole bunch of information .... followed by:
2020-03-15 19:32:29 (722 KB/s) - ‘opt-src-v7.5.tar’ saved [230021120/230021120]
Installing scripts (16 of 20)
Python version acceptable
Installing seawifs-luts (17 of 20)
Traceback (most recent call last):
File "/Applications/seadas-7.5/ocssw/scripts/update_luts.py", line 9, in <module>
import modules.LutUtils as Lut
File "/Applications/seadas-7.5/ocssw/scripts/modules/LutUtils.py", line 5, in <module>
import JsonUtils as Session
File "/Applications/seadas-7.5/ocssw/scripts/modules/JsonUtils.py", line 7, in <module>
from ProcUtils import getSession, httpdl
File "/Applications/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Error - Could not install luts for seawifs
So - maybe I messed up installing the python requests library; are there some specific instructions somewhere? I run SeaDAS on a MacBookPro under OS10.14.6
Thanks, Barry