-
Notifications
You must be signed in to change notification settings - Fork 303
configparser.NoSectionError: No section: 'CDS' when I doing troposphere correction #1008
Description
I get the error : configparser.NoSectionError: No section: 'CDS' when I doing the step - correct_troposphere with the line script : !smallbaselineApp.py --dir {work_dir} {mintpy_config}
I have followed all the requirements to install PyAps but also it not working when I run the test from the terminal : " site-packages/pyaps3/autoget.py", line 102, in ECMWFdload
key = config.get('CDS', 'key')
AttributeError: 'NoneType' object has no attribute 'get'
When I install on the computer it's working with the .cdsapirc in my home directory on MacOS
Here are my script to deal with the insar
Full script that generated the error
Download global atmospheric model files...
update mode: ON
output file: /home/ec2-user/SageMaker/efs/underwriters/CLEMENT/DockerMINTPY/TESTJACKARTA/inputs/ERA5.h5
1) output file either do NOT exist or is NOT newer than all GRIB files.
run or skip: run
--------------------------------------------------
downloading weather model data using PyAPS ...
number of grib files to download: 4
--------------------------------------------------
Traceback (most recent call last):
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/bin/smallbaselineApp.py", line 10, in <module>
sys.exit(main())
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/cli/smallbaselineApp.py", line 208, in main
run_smallbaselineApp(inps)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/smallbaselineApp.py", line 1117, in run_smallbaselineApp
app.run(steps=inps.runSteps)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/smallbaselineApp.py", line 898, in run
self.run_tropospheric_delay_correction(sname)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/smallbaselineApp.py", line 648, in run_tropospheric_delay_correction
mintpy.cli.tropo_pyaps3.main(iargs)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/cli/tropo_pyaps3.py", line 166, in main
run_tropo_pyaps3(inps)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/tropo_pyaps3.py", line 702, in run_tropo_pyaps3
inps.grib_files = dload_grib_files(
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/tropo_pyaps3.py", line 425, in dload_grib_files
check_pyaps_account_config(tropo_model)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/site-packages/mintpy/tropo_pyaps3.py", line 394, in check_pyaps_account_config
val = cfg.get(section, opt)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/home/ec2-user/SageMaker/efs/.persisted_conda/axa_juliette/lib/python3.9/configparser.py", line 1152, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'CDS'
Full error message
configparser.NoSectionError: No section: 'CDS' when I doing the step - correct_troposphere
System information
- Operating system: LINUX AWS S3
MintPy run perfectly with the example (Ridge Crest and Galapagos) so it's only this part which made some problem.
I put my .cdsapirc file not directly in the basic home but here : "efs/underwriters/CLEMENT/DockerMINTPY/.cdsapirc" because I work on virtual machine with amazon which I think doesn't allow to put a config file directly in the home