What is the issue or question you have?
What do you expect to happen?
What have you tried so far?
Attach the logfile here:
Hello.
I was using InVEST_3.10.2_x64 to run the sample data of coastal vulnerability, but it couldn’t work. The last time I use it, it seems fine. Hope someone else could help me with this, thank you!
At first, I thought I might need the latest version of Invest. So I installed the Invest workbench, but still receive the same error message listed as below:
01/26/2023 08:12:51 natcap.invest.utils Level 100 Writing log messages to [E:\testt\InVEST-natcap.invest.coastal_vulnerability-log-2023-01-26–08_12_51.txt]
01/26/2023 08:12:51 main Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.coastal_vulnerability 3.12.1:
aoi_vector_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\aoi_grandbahama_utm.shp
bathymetry_raster_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\bathymetry.tif
dem_averaging_radius 5000
dem_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\dem_srtm_grandbahama.tif
geomorphology_fill_value 5
geomorphology_vector_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\geomorphology_grandbahama.shp
habitat_table_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\GrandBahama_Habitats\Natural_Habitats.csv
landmass_vector_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\landmass_polygon.shp
max_fetch_distance 10000
model_resolution 200
n_workers -1
population_radius 1000
population_raster_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\population_grandbahama.tif
results_suffix
shelf_contour_vector_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\continental_shelf_polyline_global.shp
slr_field SLR
slr_vector_path
workspace_dir E:\testt
wwiii_vector_path E:\Software Installation\InVEST\sample_data\CoastalVulnerability\WaveWatchIII_global.shp
01/26/2023 08:12:51 natcap.invest.coastal_vulnerability INFO Validating arguments
01/26/2023 08:12:51 natcap.invest.validation INFO Starting whole-model validation with ARGS_SPEC
01/26/2023 08:12:52 pygeoprocessing.geoprocessing INFO starting reprojection
01/26/2023 08:12:52 pygeoprocessing.geoprocessing INFO reprojection 100.0% complete on clipped_projected_landmass.gpkg
01/26/2023 08:12:52 natcap.invest.coastal_vulnerability INFO Masking positive values from bathymetry
01/26/2023 08:12:52 natcap.invest.coastal_vulnerability WARNING E:\Software Installation\InVEST\sample_data\CoastalVulnerability\bathymetry.tif is unprojected and will be warped to match the AOI and resampled to a pixel size of 200.0 meters
01/26/2023 08:12:52 pygeoprocessing.geoprocessing INFO starting stats_worker
01/26/2023 08:12:52 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-11 (stats_worker), started daemon 5052)>
01/26/2023 08:12:52 pygeoprocessing.geoprocessing ERROR exception encountered in raster_calculator
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd5 in position 93: invalid continuation byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “pygeoprocessing\geoprocessing.py”, line 415, in raster_calculator
File “osgeo\gdal.py”, line 3743, in ReadAsArray
File “C:\Users\Ziwon\AppData\Local\Temp\embedded.ckdsacoy.zip\shibokensupport_feature_.py”, line 142, in _import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “PyInstaller\loader\pyimod02_importers.py”, line 499, in exec_module
File “osgeo\gdal_array.py”, line 137, in
SystemError: _PyEval_EvalFrameDefault returned a result with an exception set
01/26/2023 08:12:52 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
01/26/2023 08:12:52 pygeoprocessing.geoprocessing_core WARNING No valid pixels were received, sending None.
01/26/2023 08:12:52 taskgraph.Task ERROR Something went wrong when adding task prepare bathymetry (1), terminating taskgraph.
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd5 in position 93: invalid continuation byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in call
File “natcap\invest\coastal_vulnerability.py”, line 1830, in warp_and_mask_bathymetry
File “pygeoprocessing\geoprocessing.py”, line 415, in raster_calculator
File “osgeo\gdal.py”, line 3743, in ReadAsArray
File "C:\Users\Ziwon\AppData\Local\Temp\embedded.ckdsacoy.zip\shibokensupport_feature.py", line 142, in _import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “PyInstaller\loader\pyimod02_importers.py”, line 499, in exec_module
File “osgeo\gdal_array.py”, line 137, in
SystemError: _PyEval_EvalFrameDefault returned a result with an exception set
01/26/2023 08:12:52 natcap.invest.utils ERROR Exception while executing natcap.invest.coastal_vulnerability
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd5 in position 93: invalid continuation byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
SystemError: <class ‘UnicodeDecodeError’> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 72, in _log_gdal_errors
SystemError: returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 486, in main
File “natcap\invest\coastal_vulnerability.py”, line 457, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in call
File “natcap\invest\coastal_vulnerability.py”, line 1830, in warp_and_mask_bathymetry
File “pygeoprocessing\geoprocessing.py”, line 415, in raster_calculator
File “osgeo\gdal.py”, line 3743, in ReadAsArray
File "C:\Users\Ziwon\AppData\Local\Temp\embedded.ckdsacoy.zip\shibokensupport_feature.py", line 142, in _import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “PyInstaller\loader\pyimod02_importers.py”, line 499, in exec_module
File “osgeo\gdal_array.py”, line 137, in
SystemError: _PyEval_EvalFrameDefault returned a result with an exception set
01/26/2023 08:12:52 natcap.invest.utils INFO Elapsed time: 0.91s
01/26/2023 08:12:52 natcap.invest.utils INFO Execution finished