Dear, when I want to execute results of SDR then this error has occurred. kindly help me to sort out this problem.
Initializing…
Showing messages with level INFO and higher
05/23/2019 19:13:11 natcap.invest.utils INFO Writing log messages to C:\Users\Hashim\Desktop\new\thar final collection\results\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2019-05-23–19_13_11.txt
05/23/2019 19:13:11 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable ‘spatial_ref’ referenced before assignment
Traceback (most recent call last):
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py”, line 176, in _merge_local_bounding_boxes
UnboundLocalError: local variable ‘spatial_ref’ referenced before assignment
05/23/2019 19:13:11 natcap.invest.ui.model Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.sdr 3.4.4:
biophysical_table_path C:/Users/Hashim/Desktop/new/biophysical_thar.xlsx
dem_path C:/Users/Hashim/Desktop/final projected/dem/dem11.tif
drainage_path
erodibility_path C:/Users/Hashim/Desktop/new/thar final collection/k_factor/thar_PolygonToRaster1.tif
erosivity_path C:/Users/Hashim/Desktop/new/thar final collection/k_factor/thar_PolygonToRaster1.tif
ic_0_param .8
k_param .5
lulc_path C:/Users/Hashim/Desktop/final projected/land use land cover/expolyfinal_PolygonToRaster22.tif
results_suffix 1
sdr_max 0.8
threshold_flow_accumulation 13
watersheds_path C:/Users/Hashim/Desktop/new/thar final collection/dem/Export_Output_5.shp
workspace_dir C:\Users\Hashim\Desktop\new\thar final collection\results
05/23/2019 19:13:11 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x10BFEAF0>
Traceback (most recent call last):
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py”, line 1505, in _logged_target
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\sdr.py”, line 117, in execute
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\utils.py”, line 448, in build_lookup_from_csv
Error: line contains NULL byte
05/23/2019 19:13:11 natcap.invest.ui.usage._log_model WARNING an exception encountered when logging AttributeError("‘NoneType’ object has no attribute ‘ExportToWkt’",)
05/23/2019 19:13:11 natcap.invest.ui.model INFO Execution finished
05/23/2019 19:13:11 natcap.invest.utils INFO Elapsed time: 0.21s
05/23/2019 19:13:11 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x02901130> failed with exception
Traceback (most recent call last):
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\execution.py”, line 68, in run
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py”, line 1505, in _logged_target
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\sdr.py”, line 117, in execute
File “c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\utils.py”, line 448, in build_lookup_from_csv
Error: line contains NULL byte
05/23/2019 19:13:11 natcap.invest.ui.execution INFO Execution finished