Error with 'which enpt_run_cmd.sh'
installation is as suggested:
enpt_enmapboxapp is located at /.local/lib/python3.8/site-packages
while enpt is installed in the enpt "conda" environment:
/miniconda3/envs/enpt/lib/python3.8/site-packages
QGIS version: 3.18.0-Zürich
QGIS code revision: bdef9fb328
Qt version: 5.12.8
GDAL version: 3.0.4
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.3.1, February 10th, 2020
PDAL version: 2.0.1 (git-version: Release)
Processing algorithm…
Algorithm 'EnMAP processing tool algorithm (v0.4.7)' starting…
Input parameters:
{ 'CPUs' : 16, 'anaconda_root' : '/home/csys/bsilva/miniconda3', 'auto_download_ecmwf' : True, 'average_elevation' : 0, 'blocksize' : 100, 'deadpix_P_algorithm' : 'spectral', 'deadpix_P_interp_spatial' : 'linear', 'deadpix_P_interp_spectral' : 'linear', 'disable_progress_bars' : True, 'enable_ac' : True, 'enable_cloud_screening' : False, 'enable_ice_retrieval' : True, 'enable_keystone_correction' : False, 'enable_vnir_swir_coreg' : False, 'json_config' : '', 'mode_ac' : 'combined', 'n_lines_to_append' : None, 'ortho_resampAlg' : 'bilinear', 'output_dir' : '/home/csys/bsilva/EnPT/Output/20210318__1', 'path_dem' : '', 'path_earthSunDist' : '', 'path_l1b_enmap_image' : '/home/csys/bsilva/dev/acenmap/EnPT/tests/data/EnMAP_Level_1B/ENMAP01-____L1B-DT000400126_20170218T110115Z_002_V000204_20200206T182719Z__rows700-730.zip', 'path_l1b_enmap_image_gapfill' : '', 'path_reference_image' : '', 'path_solar_irr' : '', 'polymer_root' : '/home/csys/bsilva/dev/acenmap/polymer-v4.13', 'run_deadpix_P' : True, 'run_smile_P' : False, 'scale_factor_boa_ref' : 10000, 'scale_factor_toa_ref' : 10000, 'threads' : -1, 'vswir_overlap_algorithm' : 'swir_only', 'working_dir' : '' }
Found Anaconda installation at /home/csys/bsilva/miniconda3.
The Anaconda installation contains the 'enpt' environment as expected.
Calling EnPT with the following command:
python enpt_cli.py --CPUs 16 --auto_download_ecmwf True --average_elevation 0 --blocksize 100 --deadpix_P_algorithm spectral --deadpix_P_interp_spatial linear --deadpix_P_interp_spectral linear --disable_progress_bars True --enable_ac True --enable_cloud_screening False --enable_ice_retrieval True --enable_keystone_correction False --enable_vnir_swir_coreg False --mode_ac combined --ortho_resampAlg bilinear --output_dir /home/csys/bsilva/EnPT/Output/20210318__1 --path_l1b_enmap_image /home/csys/bsilva/dev/acenmap/EnPT/tests/data/EnMAP_Level_1B/ENMAP01-____L1B-DT000400126_20170218T110115Z_002_V000204_20200206T182719Z__rows700-730.zip --polymer_root /home/csys/bsilva/dev/acenmap/polymer-v4.13 --run_deadpix_P True --run_smile_P False --scale_factor_boa_ref 10000 --scale_factor_toa_ref 10000 --threads -1 --vswir_overlap_algorithm swir_only
Traceback (most recent call last):
File "/home/csys/bsilva/.local/lib/python3.8/site-packages/enpt_enmapboxapp/enpt_enmapboxapp.py", line 545, in _locate_enpt_run_script
return check_output('which enpt_run_cmd.sh', shell=True).decode('UTF-8').strip()
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'which enpt_run_cmd.sh' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/csys/bsilva/.local/lib/python3.8/site-packages/enpt_enmapboxapp/enpt_enmapboxapp.py", line 619, in processAlgorithm
path_enpt_runscript = self._locate_enpt_run_script()
File "/home/csys/bsilva/.local/lib/python3.8/site-packages/enpt_enmapboxapp/enpt_enmapboxapp.py", line 549, in _locate_enpt_run_script
raise EnvironmentError('The EnPT run script could not be found. Please make sure, that enpt_enmapboxapp '
OSError: The EnPT run script could not be found. Please make sure, that enpt_enmapboxapp is correctly installed into your QGIS Python environment.
Execution failed after 0.65 seconds
Loading resulting layers
Algorithm 'EnMAP processing tool algorithm (v0.4.7)' finished