Install OCSSW SeaDAS 8.3 Mac OS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cliffordoo
Posts: 17
Joined: Mon Jul 17, 2017 8:36 am America/New_York
Answers: 0

Install OCSSW SeaDAS 8.3 Mac OS

by cliffordoo » Thu Mar 02, 2023 9:29 pm America/New_York

Hi

I am having trouble installing the OCSSW processor in SeaDAS 8.3. I have tried to go through all of the recommendation such as installing requests and pointing to the system python 3, but I continue to get the following error.

execution exception: java.io.IOException: install_ocssw failed with exit code 1.
Check log for more details.
Traceback (most recent call last):
File "/var/folders/4p/87d70zqs1_n_rs3tnyvdycjr0000gn/T/install_ocssw", line 25, in <module>
import manifest as mf
File "/private/var/folders/4p/87d70zqs1_n_rs3tnyvdycjr0000gn/T/manifest.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

% which python3
/Users/andy/opt/anaconda3/bin/python3

% echo $PATH
/Users/andy/SeaDAS/ocssw/opt/bin:/Users/andy/SeaDAS/ocssw/bin:/Users/andy/opt/anaconda3/bin/python3:/Users/andy/SeaDAS/bin:/Users/andy/opt/anaconda3/bin:/Users/andy/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I have tried this both in bash and zsh shells.

Any help is appreciated.

Andy

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 258
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

Re: Install OCSSW SeaDAS 8.3 Mac OS

by OB SeaDAS - dshea » Fri Mar 03, 2023 8:45 am America/New_York

Send me the output from the menu item:
SeaDAS-Toolbox->Software & System Info...

don

cliffordoo
Posts: 17
Joined: Mon Jul 17, 2017 8:36 am America/New_York
Answers: 0

Re: Install OCSSW SeaDAS 8.3 Mac OS

by cliffordoo » Sun Mar 05, 2023 5:58 pm America/New_York

Thanks, Don. Here is the output. Looks like the SeaDAS .conf file is the problem?

-----------------------------------------------------------
Main Application Platform:
-----------------------------------------------------------
Application Version: SeaDAS 8.3.0
SNAP Engine Version: 9.0.3* (SeaDAS Platform modified)
SNAP Desktop Version: 9.0.3* (SeaDAS Platform modified)
SNAP Engine Build Date: 202212081832
SNAP Desktop Build Date: 202212081837
Installation Directory: /Users/andy/SeaDAS
Data Directory: /Users/andy/.seadas8
Configuration: /Users/andy/SeaDAS/etc/snap.properties
VM Configuration: /Users/andy/SeaDAS/etc/seadas.conf
WARNING!! File '/Users/andy/SeaDAS/etc/seadas.conf' does not exist
VM Configuration: /Users/andy/SeaDAS/etc/snap.conf
WARNING!! File '/Users/andy/SeaDAS/etc/snap.conf' does not exist
VM Configuration (gpt): /Users/andy/SeaDAS/bin/gpt.vmoptions
VM Configuration (pconvert): /Users/andy/SeaDAS/bin/pconvert.vmoptions
Runtime Configuration: /Users/andy/.seadas8/etc/snap.properties
Runtime Configuration (SeaDAS Toolbox): /Users/andy/.seadas8/etc/seadas.properties
JRE: Java(TM) SE Runtime Environment 1.8.0_201-b09
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Memory: 3641 MiB
OCSSWROOT (Java Env): /Users/andy/SeaDAS/ocssw
Python3 Directory: /usr/local/bin/python3


-----------------------------------------------------------
SeaDAS Toolbox:
-----------------------------------------------------------
SeaDAS Toolbox Version: 1.3.0
SeaDAS Toolbox Build Date: 202212081844
Configuration: /Users/andy/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Users/andy/SeaDAS/ocssw
OCSSW Log Directory: /Users/andy
OCSSW Location: local
Environment {$OCSSWROOT} (external): /Users/andy/SeaDAS/ocssw


-----------------------------------------------------------
NASA Science Processing (OCSSW):
-----------------------------------------------------------
OCSSWROOT=/Users/andy/SeaDAS/ocssw
OCDATAROOT=/Users/andy/SeaDAS/ocssw/share
l2gen version: msl12 9.6.0-V2022.2 (Nov 28 2022 12:24:20)
l2bin version: 7.0.3
l3bin version: 5.13
l3mapgen version: l3mapgen 2.3.0-V2022.2 (Nov 28 2022 12:25:33)
Installed Missions: ['aqua']


-----------------------------------------------------------
General System and Software:
-----------------------------------------------------------
Operating system: MacOS 11.7.4
Java version: 19.0.2
Python3 version: 3.11.2
Python3 Path: /usr/local/bin/python3
Env:
CC=gcc
CXX=g++
ELEMENTS=/Users/andy/SeaDAS/ocssw/var/seawifs
EOS_LIB_PREFIX=macintel64
FC=gfortran
GCC_TUNE=
HDFEOS_LIB=/Users/andy/SeaDAS/ocssw/opt/EOS/lib/macintel64
HRPT_STATION_IDENTIFICATION_FILE=/Users/andy/SeaDAS/ocssw/share/seawifs/station/station_id.dat
L2GEN_ANC=/Users/andy/SeaDAS/ocssw/var/anc
LIB3_BIN=/Users/andy/SeaDAS/ocssw/opt/bin
LIB3_CHECK=0
LIB3_DIR=/Users/andy/SeaDAS/ocssw/opt
LIB3_INC=/Users/andy/SeaDAS/ocssw/opt/include
LIB3_LIB=/Users/andy/SeaDAS/ocssw/opt/lib
NAVCTL=/Users/andy/SeaDAS/ocssw/share/seawifs/nav
NAVQC=/Users/andy/SeaDAS/ocssw/share/seawifs/nav
OCSSW_ARCH=macosx_intel
OCSSW_BIN=/Users/andy/SeaDAS/ocssw/bin
OCSSW_DEBUG=0
OCTS_REGISTRATION_TABLES=/Users/andy/SeaDAS/ocssw/share/octs/nav
OCVARROOT=/Users/andy/SeaDAS/ocssw/var
ORBCTL=/Users/andy/SeaDAS/ocssw/share/seawifs/nav
PGSINC=/Users/andy/SeaDAS/ocssw/opt/EOS/include
PGSLIB=/Users/andy/SeaDAS/ocssw/opt/EOS/lib/macintel64
PROJ_LIB=/Users/andy/SeaDAS/ocssw/opt/share/proj
SWFTBL=/Users/andy/SeaDAS/ocssw/share/seawifs/qc
SWTBL=/Users/andy/SeaDAS/ocssw/share/seawifs

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: Install OCSSW SeaDAS 8.3 Mac OS

by OB SeaDAS - xuanyang02 » Mon Mar 06, 2023 10:51 am America/New_York

SeaDAS-Toolbox->Software & System Info... says

"Python3 Path: /usr/local/bin/python3"

You probably opened SeaDAS from a shell that has the path set to /usr/local/bin/python3.

Try

Code: Select all

/usr/bin/pip3 install requests


cliffordoo
Posts: 17
Joined: Mon Jul 17, 2017 8:36 am America/New_York
Answers: 0

Re: Install OCSSW SeaDAS 8.3 Mac OS

by cliffordoo » Mon Mar 06, 2023 5:39 pm America/New_York

Hi xuanyang,

I still get the same error when trying to install the processors. I was able to install requests given your commands in the previous post. I have tried adjust the python3 path in the .bashrc file a couple different ways after installing requests but each iteration leads to the same error.

.bashrc
#export PATH="/Users/andy/opt/anaconda3/bin/python3:$PATH"
export OCSSWROOT="/Users/andy/SeaDAS/ocssw"
source $OCSSWROOT/OCSSW_bash.env
#export PATH="/Users/andy/Library/Python/3.8/bin:$PATH"
export PATH="/usr/local/bin/python3:$PATH"

andy$ which python
/Users/andy/opt/anaconda3/bin/python

andy$ which python3
/Users/andy/opt/anaconda3/bin/python3

andy$ echo $PATH
/Users/andy/SeaDAS/ocssw/opt/bin:/Users/andy/SeaDAS/ocssw/bin:/Users/andy/SeaDAS/bin:/Users/andy/opt/anaconda3/bin:/Users/andy/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Thanks again for your help.

Andy

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: Install OCSSW SeaDAS 8.3 Mac OS

by OB SeaDAS - xuanyang02 » Tue Mar 07, 2023 12:00 pm America/New_York

Your .bashrc has

Code: Select all

export PATH="/usr/local/bin/python3:$PATH"
If you open a new terminal,

Code: Select all

which python3
should return /usr/local/bin/python3.

If you open SeaDAS from the same terminal, SeaDAS-Toolbox->Software & System Info... should return
"Python3 Path: /usr/local/bin/python3".

If you did

Code: Select all

/usr/bin/pip3 install requests
SeaDAS should no longer complain ModuleNotFoundError: No module named 'requests'.

The fact "/usr/local/bin/python3" is not in your PATH
"/Users/andy/SeaDAS/ocssw/opt/bin:/Users/andy/SeaDAS/ocssw/bin:/Users/andy/opt/anaconda3/bin/python3:/Users/andy/SeaDAS/bin:/Users/andy/opt/anaconda3/bin:/Users/andy/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
indicates that your .bashrc is not being used.

It's best that you consult with your system admin to sort out this PATH issue.

Bing

cliffordoo
Posts: 17
Joined: Mon Jul 17, 2017 8:36 am America/New_York
Answers: 0

Re: Install OCSSW SeaDAS 8.3 Mac OS

by cliffordoo » Tue Mar 07, 2023 9:19 pm America/New_York

Thanks, Bing.

I modified all of the paths accordingly but still came up with the error. I reinstalled requests as root, which came up with all sorts of warnings, and now the processors are installing. Hopefully there won't be problems later.

Thanks again for your help. Always very helpful.

Andy

misgech
Posts: 2
Joined: Mon Nov 06, 2023 1:22 am America/New_York
Answers: 0

Re: Install OCSSW SeaDAS 8.3 Mac OS

by misgech » Mon Nov 06, 2023 1:27 am America/New_York

Please help me,
I am installing Seadas 8.4.0 but I am facing the following errors:
execution exception: java.io.IOException: install_ocssw failed with exit code 1.
Check log for more details.
Installing (1 of 9) - bin_macosx_intel
Installing (2 of 9) - lib_macosx_intel
Installing (3 of 9) - opt_macosx_intel
Installing (4 of 9) - root
Installing (5 of 9) - common
Installing (6 of 9) - ocrvc
Installing (7 of 9) - seawifs
Installing (8 of 9) - sgli
Installing (9 of 9) - viirsdem
Traceback (most recent call last):
File "/Users/misganawchoto/SeaDAS/ocssw/bin/update_luts", line 9, in <module>
import seadasutils.LutUtils as Lut
File "/Users/misganawchoto/SeaDAS/ocssw/bin/seadasutils/LutUtils.py", line 3, in <module>
import seadasutils.JsonUtils as Session
File "/Users/misganawchoto/SeaDAS/ocssw/bin/seadasutils/JsonUtils.py", line 6, in <module>
from seadasutils.ProcUtils import getSession, httpdl
File "/Users/misganawchoto/SeaDAS/ocssw/bin/seadasutils/ProcUtils.py", line 15, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Installing lut - seawifs
Error: trying to run = /Users/misganawchoto/SeaDAS/ocssw/bin/ocssw_runner --ocsswroot /Users/misganawchoto/SeaDAS/ocssw update_luts seawifs

please help me to solve the above errors.

seadas system information as follows:
Main Application Platform:
-----------------------------------------------------------
Application Version: SeaDAS 8.4.0
SNAP Engine Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Desktop Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Engine Build Date: 202310041459
SNAP Desktop Build Date: 202310041504
Installation Directory: /Users/misganawchoto/SeaDAS
Data Directory: /Users/misganawchoto/.seadas8
Configuration: /Users/misganawchoto/SeaDAS/etc/snap.properties
VM Configuration: /Users/misganawchoto/SeaDAS/etc/seadas.conf
VM Configuration: /Users/misganawchoto/SeaDAS/etc/snap.conf
VM Configuration (gpt): /Users/misganawchoto/SeaDAS/bin/gpt.vmoptions
VM Configuration (pconvert): /Users/misganawchoto/SeaDAS/bin/pconvert.vmoptions
Runtime Configuration: /Users/misganawchoto/.seadas8/etc/snap.properties
Runtime Configuration (SeaDAS Toolbox): /Users/misganawchoto/.seadas8/etc/seadas.properties
JRE: OpenJDK Runtime Environment 11.0.19+7
JVM: OpenJDK 64-Bit Server VM by Eclipse Adoptium
Memory: 4096 MiB
OCSSWROOT (Java Env): null
Python3 Directory: /Users/misganawchoto/anaconda3/bin/python3


-----------------------------------------------------------
SeaDAS Toolbox:
-----------------------------------------------------------
SeaDAS Toolbox Version: 1.4.0
SeaDAS Toolbox Build Date: 202310041514
Configuration: /Users/misganawchoto/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Users/misganawchoto/SeaDAS/ocssw
OCSSW Docker Log Directory: /
OCSSW Location: local
Environment {$OCSSWROOT} (external): null


-----------------------------------------------------------
NASA Science Processing (OCSSW):
-----------------------------------------------------------
OCSSWROOT=/Users/misganawchoto/SeaDAS/ocssw
OCDATAROOT=/Users/misganawchoto/SeaDAS/ocssw/share
l2gen version: Reason: tried: '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)
l2bin version: Reason: tried: '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)
l3bin version: Reason: tried: '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)
l3mapgen version: Reason: tried: '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)
Installed Missions: ['seawifs', 'sgli', 'viirsdem']


-----------------------------------------------------------
General System and Software:
-----------------------------------------------------------
Operating system: MacOS 14.0
Java version: 19.0.2
Python3 version: 3.9.6
Python3 Path: /usr/bin/python3
Env:
CC=gcc
CXX=g++
ELEMENTS=/Users/misganawchoto/SeaDAS/ocssw/var/seawifs
EOS_LIB_PREFIX=macintel64
FC=gfortran
GCC_TUNE=
HDFEOS_LIB=/Users/misganawchoto/SeaDAS/ocssw/opt/EOS/lib/macintel64
HRPT_STATION_IDENTIFICATION_FILE=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs/station/station_id.dat
L2GEN_ANC=/Users/misganawchoto/SeaDAS/ocssw/var/anc
LIB3_BIN=/Users/misganawchoto/SeaDAS/ocssw/opt/bin
LIB3_CHECK=0
LIB3_DIR=/Users/misganawchoto/SeaDAS/ocssw/opt
LIB3_INC=/Users/misganawchoto/SeaDAS/ocssw/opt/include
LIB3_LIB=/Users/misganawchoto/SeaDAS/ocssw/opt/lib
NAVCTL=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs/nav
NAVQC=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs/nav
OCSSW_ARCH=macosx_intel
OCSSW_BIN=/Users/misganawchoto/SeaDAS/ocssw/bin
OCSSW_DEBUG=0
OCSSW_MODIS=1
OCTS_REGISTRATION_TABLES=/Users/misganawchoto/SeaDAS/ocssw/share/octs/nav
OCVARROOT=/Users/misganawchoto/SeaDAS/ocssw/var
ORBCTL=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs/nav
PGSINC=/Users/misganawchoto/SeaDAS/ocssw/opt/EOS/include
PGSLIB=/Users/misganawchoto/SeaDAS/ocssw/opt/EOS/lib/macintel64
PROJ_DATA=/Users/misganawchoto/SeaDAS/ocssw/opt/share/proj
PROJ_LIB=/Users/misganawchoto/SeaDAS/ocssw/opt/share/proj
SWFTBL=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs/qc
SWTBL=/Users/misganawchoto/SeaDAS/ocssw/share/seawifs

Waiting your kind response.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: Install OCSSW SeaDAS 8.3 Mac OS

by OB SeaDAS - xuanyang02 » Tue Nov 21, 2023 7:18 pm America/New_York

"ModuleNotFoundError: No module named 'requests'" indicates that you need to install requests module

Try

Code: Select all

/usr/bin/pip3 install requests

Post Reply