Hello,
I am having problems running update_luts.py and getanc.py (SeaDAS 7.5.3).
update_luts.py -v aqua
Downloading files into /usr/local/seadas/ocssw/var/modis
Traceback (most recent call last):
File "/usr/local/seadas/ocssw/scripts/update_luts.py", line 66, in <module>
luts.get_luts()
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/LutUtils.py", line 132, in get_luts
regex='^((?!\d+).)*' + suffix, check_times=True)
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/JsonUtils.py", line 272, in download_allfiles
all_links = self.get_links(url, regex=regex)
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/JsonUtils.py", line 237, in get_links
response = self.open_url(url, get=True)
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/JsonUtils.py", line 169, in open_url
self.session, proxy = httpinit(parts.netloc, timeout=self.timeout)
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/ProcUtils.py", line 50, in httpinit
urlConn = hclient.HTTPSConnection(url, timeout=timeout)
AttributeError: 'module' object has no attribute 'HTTPSConnection'
getanc.py -v V2019118044800.L1A_SNPP.nc
Traceback (most recent call last):
File "/usr/local/seadas/ocssw/scripts/getanc.py", line 196, in <module>
exit(main())
File "/usr/local/seadas/ocssw/scripts/getanc.py", line 185, in main
if filename and g.finddb():
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/anc_utils.py", line 321, in finddb
import modules.ancDB as db
File "/net/new_linsoft/CentOS7_64bit_local/seadas/ocssw/scripts/modules/ancDB.py", line 4, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
I am am able to download L1A files so I don't think it is a connection issue.
Thanks for your help,
Kim
update_luts and getanc errors
-
- Subject Matter Expert
- Posts: 271
- Joined: Thu Mar 05, 2009 10:25 am America/New_York
- Been thanked: 2 times
update_luts and getanc errors
Looks like your python setup is having problems. The first issue is that your python looks like it was compiled without SSL support. The second issue is that python can not find sqlite3 which has been built into python for a long time.
A bad PYTHONPATH could be the problem, but I doubt it since python is having trouble finding functions that should be built in .
If possible, I would suggest installing anaconda. Our scripts will work with python 2 or 3.
don
A bad PYTHONPATH could be the problem, but I doubt it since python is having trouble finding functions that should be built in .
If possible, I would suggest installing anaconda. Our scripts will work with python 2 or 3.
don
update_luts and getanc errors
Don,
It turns out it was a python path error. We recently made some changes and the system switched to using an older version of python.
Thanks for your advice,
Kim
It turns out it was a python path error. We recently made some changes and the system switched to using an older version of python.
Thanks for your advice,
Kim