modis_L1B.py failed with exit code 1.

Please enter here to ask a question about any NASA Science related topics!
Post Reply
osrani
Posts: 19
Joined: Mon Nov 19, 2018 10:11 am America/New_York

modis_L1B.py failed with exit code 1.

by osrani » Tue Nov 27, 2018 6:36 am America/New_York

Haii
I have installed seadas 7.5.1 GUI  in ubuntu 18.04 .When I tried to process modis L1B from modis L1A using modis_L1B.py . the error was:
Execution exception: java.io.IOException: modis_L1B.py failed with exit code 1.
Check log for more details.
Traceback (most recent call last):
  File "/home/itra/seadas-7.5.1/ocssw/scripts/modis_L1B.py", line 144, in <module>
    sys.exit(main())
  File "/home/itra/seadas-7.5.1/ocssw/scripts/modis_L1B.py", line 137, in main
    modis_env(l1b_instance)
  File "/home/itra/seadas-7.5.1/ocssw/scripts/modules/modis_utils.py", line 379, in modis_env
    print("ERROR: Could not find LUTs in".self.lutdir)
AttributeError: 'str' object has no attribute 'self'

Can any one suggest how to solve the issue

Tags:

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

modis_L1B.py failed with exit code 1.

by OB SeaDAS - dshea » Tue Nov 27, 2018 10:38 am America/New_York

can you type this on the command line and post the results

export SEADAS=<SeaDAS install directory>
$SEADAS/ocssw/scripts/ocssw_runner --ocsswroot $SEADAS/ocssw get_sys_info.py

you should get something like:

Platform: Linux-4.4.0-137-generic-x86_64-with-debian-stretch-sid
Python version: 2.7.12 (part of an Anaconda installation)
Java version: 1.8.0_111
SEADAS_ROOT: /accounts/dshea/local/seadas-7.5.1
OCSSWROOT: /accounts/dshea/local/seadas-7.5.1/ocssw
l2gen version: msl12 9.3.0-044d4967 (May 31 2018 12:45:33)
l2bin version: 4.5.0
l3bin version: 5.12
l3mapgen version: l3mapgen 2.1.0-044d4967 (May 31 2018 12:44:44)


don

osrani
Posts: 19
Joined: Mon Nov 19, 2018 10:11 am America/New_York

modis_L1B.py failed with exit code 1.

by osrani » Tue Nov 27, 2018 11:15 am America/New_York

Thank you for the response..
This was the output of the command..

Platform: Linux-4.15.0-39-generic-x86_64-with-Ubuntu-18.04-bionic
Python version: 2.7.15rc1
Java version: 1.8.0_191
SEADAS_ROOT: /home/itra/seadas-7.5.1
OCSSWROOT: /home/itra/seadas-7.5.1/ocssw
l2gen version: msl12 9.3.0-044d4967 (May 31 2018 12:45:33)
l2bin version: 4.5.0
l3bin version: 5.12
l3mapgen version: l3mapgen 2.1.0-044d4967 (May 31 2018 12:44:44)

gfireman
Posts: 59
Joined: Thu Jan 07, 2010 2:59 pm America/New_York

modis_L1B.py failed with exit code 1.

by gfireman » Thu Feb 14, 2019 11:18 am America/New_York

That line is indeed in error; we will fix it on our side.

In the meantime, you could change the first period to a comma:
  File "/home/itra/seadas-7.5.1/ocssw/scripts/modules/modis_utils.py", line 379
from
   print("ERROR: Could not find LUTs in".self.lutdir)
to
   print("ERROR: Could not find LUTs in", self.lutdir)

It will still fail if LUTs aren't installed, but will fail cleanly.

Post Reply