SeaDAS 7.5 update_luts.py is broken
-
- Posts: 25
- Joined: Tue Aug 09, 2005 12:58 pm America/New_York
SeaDAS 7.5 update_luts.py is broken
My system already has Python3:
[gumley@bolt modules]$ which python3
/usr/bin/python3
[gumley@bolt modules]$ python3 --version
Python 3.6.8
[gumley@bolt modules]$ which python3
/usr/bin/python3
[gumley@bolt modules]$ python3 --version
Python 3.6.8
Filters:
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
SeaDAS 7.5 update_luts.py is broken
Liam,
Well, you could try running with python3 - or update again :grin:. I've put in a minor change the should resolve the issue with using python 2.7.5
Sean
Edit: Ultimately, you'll want to use python3 anyway. The next major release of SeaDAS (and the underlying OCSSW code) will not support python2. We won't intentionally break things that currently work with python2, but neither will we bother making sure updates work with it. We're moving on and not looking back.
Well, you could try running with python3 - or update again :grin:. I've put in a minor change the should resolve the issue with using python 2.7.5
Sean
Edit: Ultimately, you'll want to use python3 anyway. The next major release of SeaDAS (and the underlying OCSSW code) will not support python2. We won't intentionally break things that currently work with python2, but neither will we bother making sure updates work with it. We're moving on and not looking back.
-
- Posts: 25
- Joined: Tue Aug 09, 2005 12:58 pm America/New_York
SeaDAS 7.5 update_luts.py is broken
Sean, I just did a completely new install from scratch. Software install works, but it still fails when installing Aqua LUTS. The error message is different as shown below:
Installing aqua-luts (14 of 17)
Exception: __exit__
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 211, in download_allfiles
set_mtime(filepath, link['mtime'])
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 69, in set_mtime
os.utime(filepath, (atime, mtime)) # python 2
OSError: [Errno 2] No such file or directory: '/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/common/polar_wander.ascii'
Error - Could not install luts for aqua
Installing aqua-luts (14 of 17)
Exception: __exit__
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 211, in download_allfiles
set_mtime(filepath, link['mtime'])
File "/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts/modules/JsonUtils.py", line 69, in set_mtime
os.utime(filepath, (atime, mtime)) # python 2
OSError: [Errno 2] No such file or directory: '/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/var/common/polar_wander.ascii'
Error - Could not install luts for aqua
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
SeaDAS 7.5 update_luts.py is broken
Liam,
Try one more time. I had missed one "with context" that needed wrapping to make python2 happy.
Sean
Try one more time. I had missed one "with context" that needed wrapping to make python2 happy.
Sean
-
- Posts: 25
- Joined: Tue Aug 09, 2005 12:58 pm America/New_York
SeaDAS 7.5 update_luts.py is broken
Success!. See below for the tail of the stdout from running the following install workflow this morning (Thu Jan 30 16:33:52 UTC 2020) on CentOS 7.7 64-bit:
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 --terra --aqua --viirsn --viirsj1
Installer output follows:
Cloning into '/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts'...
Receiving objects: 100% (698/698), 334.32 KiB | 0 bytes/s, done.
Resolving deltas: 100% (526/526), done.
Updating (fetch) existing repository - /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts
From https://oceandata.sci.gsfc.nasa.gov/ocssw/scripts
8632be3..e25cd1c master -> origin/master
* [new branch] v7.0.2 -> origin/v7.0.2
8632be3..e25cd1c v7.5 -> origin/v7.5
Switching to branch - v7.5
Branch v7.5 set up to track remote branch v7.5 from origin.
Switched to a new branch 'v7.5'
Pulling from remote repository - /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts
Checking that an installed executable can run
Checking Python version
Python version acceptable
Installing aqua-luts (14 of 17)
Installing terra-luts (15 of 17)
Installing viirsnpp-luts (16 of 17)
Installing viirsj1-luts (17 of 17)
Thanks Sean.
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 --terra --aqua --viirsn --viirsj1
Installer output follows:
Cloning into '/home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts'...
Receiving objects: 100% (698/698), 334.32 KiB | 0 bytes/s, done.
Resolving deltas: 100% (526/526), done.
Updating (fetch) existing repository - /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts
From https://oceandata.sci.gsfc.nasa.gov/ocssw/scripts
8632be3..e25cd1c master -> origin/master
* [new branch] v7.0.2 -> origin/v7.0.2
8632be3..e25cd1c v7.5 -> origin/v7.5
Switching to branch - v7.5
Branch v7.5 set up to track remote branch v7.5 from origin.
Switched to a new branch 'v7.5'
Pulling from remote repository - /home/gumley/dbvm/ocssw_build/tarfiles/test/ocssw/scripts
Checking that an installed executable can run
Checking Python version
Python version acceptable
Installing aqua-luts (14 of 17)
Installing terra-luts (15 of 17)
Installing viirsnpp-luts (16 of 17)
Installing viirsj1-luts (17 of 17)
Thanks Sean.