OCSSW installation error

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
skolluru
Posts: 8
Joined: Sun Nov 14, 2021 7:03 pm America/New_York
Answers: 0

OCSSW installation error

by skolluru » Tue Aug 22, 2023 3:04 pm America/New_York

Hello,

I installed SeaDAS 8.3.10 (macOS) bug fix version for ventura. When I try to install OCSSW, I get an error.
Below is the seadas/system information
-----------------------------------------------------------
Main Application Platform:
-----------------------------------------------------------
Application Version: SeaDAS 8.3.10
SNAP Engine Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Desktop Version: 10.0.0.0* (SeaDAS Platform modified)
SNAP Engine Build Date: 202306140444
SNAP Desktop Build Date: 202306140448
Installation Directory: /Users/Sri/SEADAS_HOME
Data Directory: /Users/Sri/.seadas8
Configuration: /Users/Sri/SEADAS_HOME/etc/snap.properties
VM Configuration: /Users/Sri/SEADAS_HOME/etc/seadas.conf
WARNING!! File '/Users/Sri/SEADAS_HOME/etc/seadas.conf' does not exist
VM Configuration: /Users/Sri/SEADAS_HOME/etc/snap.conf
WARNING!! File '/Users/Sri/SEADAS_HOME/etc/snap.conf' does not exist
VM Configuration (gpt): /Users/Sri/SEADAS_HOME/bin/gpt.vmoptions
VM Configuration (pconvert): /Users/Sri/SEADAS_HOME/bin/pconvert.vmoptions
Runtime Configuration: /Users/Sri/.seadas8/etc/snap.properties
Runtime Configuration (SeaDAS Toolbox): /Users/Sri/.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/Sri/miniconda3/bin/python3


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


-----------------------------------------------------------
NASA Science Processing (OCSSW):
-----------------------------------------------------------
WARNING! Cannot find 'seadas_info' in the OCSSW bin directory



-----------------------------------------------------------
General System and Software (from GUI):
-----------------------------------------------------------

Operating System: Mac OS X 13.5
Java Version: 11.0.19

Filters:

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

Re: OCSSW installation error

by OB SeaDAS - xuanyang02 » Thu Aug 24, 2023 3:53 pm America/New_York

Can you share what error did you get?

Does your Mac have Intel chip or Apple chip?

Is this Mac the same Mac as in this post? -- viewtopic.php?t=4580

skolluru
Posts: 8
Joined: Sun Nov 14, 2021 7:03 pm America/New_York
Answers: 0

Re: OCSSW installation error

by skolluru » Thu Aug 24, 2023 4:44 pm America/New_York

Hello,

I use Mac with Apple M1 Max chip and yes, it is the same Mac. I apologize for posting it multiple times.

This is the error which I got
execution exception: java.io.IOException: install_ocssw failed with exit code 127.
Check log for more details.
env: python3: No such file or directory

I do have python3 installed and requests installed.
when I do "which python" in bash. I get /Users/Sri/miniconda3/bin/python

and when I do "pip3 install requests" in bash, I get the following
Requirement already satisfied: requests in ./miniconda3/lib/python3.11/site-packages (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./miniconda3/lib/python3.11/site-packages (from requests) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in ./miniconda3/lib/python3.11/site-packages (from requests) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./miniconda3/lib/python3.11/site-packages (from requests) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./miniconda3/lib/python3.11/site-packages (from requests) (2023.7.22)

if I do echo $PATH, I get
/Users/Sri/miniconda3/bin:/Applications/seadas-8.3/ocssw/opt/bin:/Applications/seadas-8.3/ocssw/bin:/Users/Sri/miniconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/SEADAS_HOME/ocssw:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/Sri/Library/Python/3.9/bin

Finally,I also have the following in my .bashrc file
export OCSSWROOT=/Applications/seadas-8.3/ocssw
source $OCSSWROOT/OCSSW_bash.env
export PATH="/Users/Sri/miniconda3/bin:$PATH"
alias python=/usr/bin/python3
Last edited by skolluru on Thu Aug 24, 2023 4:49 pm America/New_York, edited 1 time in total.

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

Re: OCSSW installation error

by OB SeaDAS - dshea » Fri Aug 25, 2023 9:31 am America/New_York

Unfortunately we are having problems delivering OCSSW binaries for the Mac M1/M2. Right now you have 2 choices. Use a Docker container to run OCSSW:

https://seadas.gsfc.nasa.gov/client_server/

or build OCSSW on your mac. This is quite involved. For the mac you need to install XQuartz to get the X11 libs and use Homebrew to install all of the other required libs.

https://seadas.gsfc.nasa.gov/build_ocssw/

skolluru
Posts: 8
Joined: Sun Nov 14, 2021 7:03 pm America/New_York
Answers: 0

Re: OCSSW installation error

by skolluru » Fri Aug 25, 2023 12:05 pm America/New_York

Thank you for the information. I will try to use Docker.

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

Re: OCSSW installation error

by OB SeaDAS - xuanyang02 » Thu Aug 31, 2023 11:03 am America/New_York

We found a way for OCSSW to work on M2.

1. install homebrew -- https://mac.install.guide/homebrew/3.html
2. use homebrew to install gcc 12
CODE: SELECT ALL

brew install gcc@12
3. use homebrew to install jpeg-turbo
CODE: SELECT ALL

brew install jpeg-turbo
4. install XQuartz -- https://www.xquartz.org/
5. install OCSSW T2023.21 -- https://seadas.gsfc.nasa.gov/downloads/

Please let us know if it works on your M1.

Post Reply