yumorishita / LiCSBAS2

GNU General Public License v3.0
28 stars 5 forks source link

Installing LiCSBAS (import requests error) #84

Open ATDehkordi opened 3 weeks ago

ATDehkordi commented 3 weeks ago

Hi,

I am using Macbook Air with M3 chip.

I am trying to install LiCSBAS from the licsbas2 repository. I have completed all the installation steps, and running check_install returns "OK" for all packages. I’ve also attached the output printout for the installation check.

Check install

Then, I created a new folder with the name of my desired FrameID and copied batch_LiCSBAS.sh into it. I made the necessary changes to the file, but when I run it to download the images, it returns an error:


(licsbas) alireza@Alirezas-Air 028A_05385_191813 % ./batch_LiCSBAS.sh

Start step: 01 End step: 02 Log file: log/202411070812batch_LiCSBAS_01_02.log

Traceback (most recent call last): File "/Users/alireza/AlirezaMac/InSAR processing/LiCSBAS/LiCSBAS2/bin/LiCSBAS01_get_geotiff.py", line 78, in import requests ModuleNotFoundError: No module named 'requests'

For testing, I created a test.py file with the following code:

import requests print('hello world')

I ran the above .py file using the LiCSBAS environment, and it executed successfully.

Do you know what might be causing the issue?

yumorishita commented 2 weeks ago

Did you source bashrc_LiCSBAS.sh in the terminal you ran batch_LiCSBAS.sh?

ATDehkordi commented 2 weeks ago

Did you source bashrc_LiCSBAS.sh in the terminal you ran batch_LiCSBAS.sh?

Yes. I am using source bashrc_LiCSBAS.sh and still getting that error.

yumorishita commented 2 weeks ago

I have no idea... Please show the screenshot of the single terminal where you run check_install and batch_LiCSBAS.

ATDehkordi commented 2 weeks ago

I have no idea... Please show the screenshot of the single terminal where you run check_install and batch_LiCSBAS.

First, I use source command. Then I go to another directory to start running LiCSBAS.

Screenshot 2024-11-10 at 09 25 12
yumorishita commented 2 weeks ago

Run check_install there

ATDehkordi commented 2 weeks ago

Run check_install there

I just have to go to main directory of LiCSBAS for running that.

Screenshot 2024-11-10 at 09 31 18
yumorishita commented 2 weeks ago

Can you try python LiCSBAS01_get_geotiff.py?

ATDehkordi commented 2 weeks ago

python LiCSBAS01_get_geotiff.py I am running python LiCSBAS01_get_geotiff.py in the main LiCSBAS folder. However, I want my InSAR data in another directory.

Screenshot 2024-11-10 at 09 46 39
yumorishita commented 2 weeks ago

Please try:

  1. Add python before LiCSBAS01_get_geotiff.py in the following line in batch_LiCSBAS.sh https://github.com/yumorishita/LiCSBAS2/blob/f1e2592dfb37cfde243f644fcfe554ab4b67bba7/batch_LiCSBAS.sh#L137
  2. Run batch_LiCSBAS.sh
yumorishita commented 2 weeks ago

Or just run python LiCSBAS01_get_geotiff.py in your working directory (028A...)