Seadas installation

Please enter here to ask a question about any NASA Science related topics!
Post Reply
fahimabdulgafoor123
Posts: 6
Joined: Wed May 26, 2021 9:10 am America/New_York

Seadas installation

by fahimabdulgafoor123 » Wed May 26, 2021 9:25 am America/New_York

Hi there,
Just downloaded v8.0 and ran ./install_ocssw.py --install-dir=/opt/user/ocssw --git-branch=v8.0 --aqua. But got the following error:

Installing common (2 of 10)
fatal: Cannot update paths and switch to branch 'v8.0' at the same time.
Did you intend to checkout 'remotes/origin/v8.0' which can not be resolved as commit?
Error - Could not run "cd /opt/user/ocssw/share/common; git checkout -t -B v8.0 remotes/origin/v8.0 -q > /dev/null"

Thanks.

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 87
Joined: Tue Feb 09, 2021 5:42 pm America/New_York

Re: Seadas installation

by OB SeaDAS - xuanyang02 » Wed May 26, 2021 1:51 pm America/New_York

It seems to me that you had ocssw installed in /opt/user/ocssw from SeaDAS 7.5. You may need to delete /opt/user/ocssw and then try
./install_ocssw -i /opt/user/ocssw –-seadas --modisa --tag V2021.1

There is instruction on Manual Installation in the middle of the download page:
https://seadas.gsfc.nasa.gov/downloads/

fahimabdulgafoor123
Posts: 6
Joined: Wed May 26, 2021 9:10 am America/New_York

Re: Seadas installation

by fahimabdulgafoor123 » Thu May 27, 2021 4:28 am America/New_York

Thank you, but while trying to install as you instructed the following error occurs:
/opt/seadas/ocssw --seadas --modisa --tag V2021.1
Traceback (most recent call last):
File "./install_ocssw", line 490, in <module>
sys.exit(run())
File "./install_ocssw", line 260, in run
downloadBundleList(options1[0])
File "./install_ocssw", line 221, in downloadBundleList
status = mf.httpdl(host, request, localpath="/tmp", outputfilename=MANIFEST_BASENAME, force_download=True)
File "/opt/seadas/ocssw/manifest.py", line 131, in httpdl
with open(ofile, 'wb') as fd:
PermissionError: [Errno 13] Permission denied: '/tmp/manifest.json'

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 211
Joined: Thu Mar 05, 2009 10:25 am America/New_York

Re: Seadas installation

by OB SeaDAS - dshea » Thu May 27, 2021 10:01 am America/New_York

Looks like you can not create the file /tmp/manifest.json

Could you give me the output of these commands:

Code: Select all

ls -l /tmp/manifest*
touch /tmp/manifest.json
don

fahimabdulgafoor123
Posts: 6
Joined: Wed May 26, 2021 9:10 am America/New_York

Re: Seadas installation

by fahimabdulgafoor123 » Thu May 27, 2021 10:41 am America/New_York

That is sorted but now, this is the error :
Traceback (most recent call last):
File "./install_ocssw", line 490, in <module>
sys.exit(run())
File "./install_ocssw", line 260, in run
downloadBundleList(options1[0])
File "./install_ocssw", line 226, in downloadBundleList
bundleListUrl = "%s/%s/root/%s" % (options.base_url, getBundleListTag(manifestFilename), BUNDLELIST_BASENAME)
File "./install_ocssw", line 179, in getBundleListTag
manifest = json.load(manifestFile)
File "/usr/lib/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 211
Joined: Thu Mar 05, 2009 10:25 am America/New_York

Re: Seadas installation

by OB SeaDAS - dshea » Thu May 27, 2021 12:21 pm America/New_York

Looks like we forgot to update the requirements for the python version. Python 3.6+ will take care of this problem and it looks like you are running python 3.5

don

Post Reply