SeaDAS 7.5 update_luts.py is broken
Posted: Tue Jan 28, 2020 4:40 pm America/New_York
I am attempting a new SeaDAS 7.5 install on 64-bit CentOS 7.7 today. This is the install command:
curl -O https://oceandata.sci.gsfc.nasa.gov/ocssw/install_ocssw.py
chmod ugo+x install_ocssw.py
./install_ocssw.py --verbose --install-dir=$PWD/ocssw --arch=linux_64 --terra --aqua --viirsn --viirsj1 --direct-broadcast
The install is failing at the point where it tries to download Aqua LUTS as shown below:
Installing aqua-luts (14 of 17)
Traceback (most recent call last):
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/update_luts.py", line 64, in <module>
luts.get_luts()
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/LutUtils.py", line 134, in get_luts
check_times=True)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 203, in download_allfiles
all_links = self.get_links(url, regex=regex)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 170, in get_links
with session.get(url, stream=True, timeout=self.timeout) as response:
AttributeError: __exit__
Error - Could not install luts for aqua
Note the same error is seen if I try to download the Aqua LUTS using update_luts.py as shown below:
[gumley@bolt test]$ export OCSSWROOT=$PWD/ocssw
[gumley@bolt test]$ source $OCSSWROOT/OCSSW_bash.env
[gumley@bolt test]$ update_luts.py -v aqua
Downloading files into /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/common
OBPG session started
Traceback (most recent call last):
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/update_luts.py", line 64, in <module>
luts.get_luts()
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/LutUtils.py", line 134, in get_luts
check_times=True)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 203, in download_allfiles
all_links = self.get_links(url, regex=regex)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 170, in get_links
with session.get(url, stream=True, timeout=self.timeout) as response:
AttributeError: __exit__
curl -O https://oceandata.sci.gsfc.nasa.gov/ocssw/install_ocssw.py
chmod ugo+x install_ocssw.py
./install_ocssw.py --verbose --install-dir=$PWD/ocssw --arch=linux_64 --terra --aqua --viirsn --viirsj1 --direct-broadcast
The install is failing at the point where it tries to download Aqua LUTS as shown below:
Installing aqua-luts (14 of 17)
Traceback (most recent call last):
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/update_luts.py", line 64, in <module>
luts.get_luts()
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/LutUtils.py", line 134, in get_luts
check_times=True)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 203, in download_allfiles
all_links = self.get_links(url, regex=regex)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 170, in get_links
with session.get(url, stream=True, timeout=self.timeout) as response:
AttributeError: __exit__
Error - Could not install luts for aqua
Note the same error is seen if I try to download the Aqua LUTS using update_luts.py as shown below:
[gumley@bolt test]$ export OCSSWROOT=$PWD/ocssw
[gumley@bolt test]$ source $OCSSWROOT/OCSSW_bash.env
[gumley@bolt test]$ update_luts.py -v aqua
Downloading files into /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/common
OBPG session started
Traceback (most recent call last):
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/update_luts.py", line 64, in <module>
luts.get_luts()
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/LutUtils.py", line 134, in get_luts
check_times=True)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 203, in download_allfiles
all_links = self.get_links(url, regex=regex)
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 170, in get_links
with session.get(url, stream=True, timeout=self.timeout) as response:
AttributeError: __exit__