No module named 'pyaps3'

302 views
Skip to first unread message

UserMx

unread,
Apr 21, 2020, 1:43:00 PM4/21/20
to MintPy
Hello everyone

      I have a problem with the example (WellsEnvD2T399)  in tropospheric correction steps. Command is (smallbaselineApp.py WellsEnvD2T399.txt), I didn't touch any options, just run. Unfortunately I received the error : 

      Error in “ModuleNotFoundError: No module named 'pyaps3'”. It cannot import pyaps module in python. 

      When I run it alone, it will also report an error. I confirm the path has been added. I'm seeking help, thank you.
      
      ps: ubuntu 16.04.5  python 3.7.7
error in processing.png
echo PATH.png
error in import pyaps.png

Yunjun Zhang

unread,
Apr 21, 2020, 8:45:59 PM4/21/20
to MintPy
You need to setup the $PYTHONPATH variable, it's different from $PATH, as explained here: https://github.com/insarlab/MintPy/blob/master/docs/installation.md#1-download-and-setup-mintpy

Matt Cook

unread,
May 26, 2021, 4:09:08 AM5/26/21
to MintPy
Hi Zhang,

I also have a similar error regarding pyaps3. 

I followed the install guidelines from https://github.com/insarlab/MintPy/blob/main/docs/installation.md and I downloaded MintPY using conda. I also updated my .bashrc file to include PyAPS to my PYTHONPATH (see attached) and Mintpy is working fine but when I get to the correct_topography step it says the pyaps3 module is not installed. I've reinstalled mintpy and created the environment from scratch but I still get the same problem. I'd really appreciate any help with this. 

(mintpy) mcoo951@sc-cer00279:~/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy$ smallbaselineApp.py input.txt --dostep correct_troposphere
MintPy release version v1.3.0-34, release date 2021-05-22
--RUN-at-2021-05-26 19:54:19.042344--
Current directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy
Run routine processing with smallbaselineApp.py on steps: ['correct_troposphere']
Remaining steps: ['deramp', 'correct_topography', 'residual_RMS', 'reference_date', 'velocity', 'geocode', 'google_earth', 'hdfeos5']
--------------------------------------------------
Project name: input
Go to work directory: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy
read custom template file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/input.txt
update default template based on input custom template
    mintpy.load.metaFile: /home/mcoo951/ressci201900043-insar-data/Vault/wallis/reference/IW\*.xml --> /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/reference/IW*.xml
    mintpy.load.unwFile: /home/mcoo951/ressci201900043-insar-data/Vault/wallis/merged/interferograms/\*/filt_\*.unw --> /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/merged/interferograms/*/filt_*.unw
    mintpy.load.corFile: /home/mcoo951/ressci201900043-insar-data/Vault/wallis/merged/interferograms/\*/filt_\*.cor --> /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/merged/interferograms/*/filt_*.cor
    mintpy.load.connCompFile: /home/mcoo951/ressci201900043-insar-data/Vault/wallis/merged/interferograms/\*/filt_\*.unw.conncomp --> /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/merged/interferograms/*/filt_*.unw.conncomp
    mintpy.load.azOffFile: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/coreg_secondarys/\*/IW1/azimuth_\*.off --> auto
    mintpy.load.rgOffFile: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/coreg_secondarys/\*/IW1/range_\*.off --> auto
copy smallbaselineApp.cfg to inputs   directory for backup.
copy smallbaselineApp.cfg to pic      directory for backup.
read default template file: /home/mcoo951/ressci201900043-insar-data/isce/Projects/mintpy/Richardson/mintpy/smallbaselineApp.cfg


******************** step - correct_troposphere ********************
Atmospheric correction using Weather Re-analysis dataset (PyAPS, Jolivet et al., 2011)
Weather Re-analysis dataset: ERA5
Traceback (most recent call last):
  File "/data/MintPy/MintPy/mintpy/tropo_pyaps3.py", line 20, in <module>
    import pyaps3 as pa
ModuleNotFoundError: No module named 'pyaps3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/MintPy/MintPy/mintpy/smallbaselineApp.py", line 1255, in <module>
    main(sys.argv[1:])
  File "/data/MintPy/MintPy/mintpy/smallbaselineApp.py", line 1237, in main
    app.run(steps=inps.runSteps)
  File "/data/MintPy/MintPy/mintpy/smallbaselineApp.py", line 1053, in run
    self.run_tropospheric_delay_correction(sname)
  File "/data/MintPy/MintPy/mintpy/smallbaselineApp.py", line 807, in run_tropospheric_delay_correction
    from mintpy import tropo_pyaps3
  File "/data/MintPy/MintPy/mintpy/tropo_pyaps3.py", line 22, in <module>
    raise ImportError('Cannot import pyaps3!')
ImportError: Cannot import pyaps3!

Thanks a lot,

Matt

bashrc.png

Russell Grew

unread,
May 26, 2021, 4:17:02 AM5/26/21
to MintPy
Hi Matt,

Assuming you did the clone of pyaps and have restarted your bash shell, and so on, I think you have a typo in your ~/.bashrc file such that MintPY should be MintPy on the last line.

Cheers.

Matt Cook

unread,
May 26, 2021, 4:21:32 AM5/26/21
to MintPy
Ahh yes thats done the trick. Thanks for the keen eye Russell!!
Reply all
Reply to author
Forward
0 new messages