When I run this model I keep receiving a “Type Error” message that says is not a string. I have no idea what to do or what it is related to. I was getting value errors at first but I fixed that and now I am getting this message.
Update: log file is included below.
2019-11-06 10:21:59,793 utils.prepare_workspace(109) INFO Writing log messages to C:\Users\cwallace1\Pictures\School Stuff\outputs\InVEST-Coastal-Vulnerability-log-2019-11-06–10_21_59.txt
2019-11-06 10:21:59,799 model._logged_target(1633) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.coastal_vulnerability 3.7.0:
aoi_vector_path C:/Users/cwallace1/Documents/New Research Data/AOI_CK_11_7.shp
dem_averaging_radius 5000
dem_path C:/Users/cwallace1/Documents/New Research Data/ned38/ned38/ned38.ovr
geomorphology_fill_value 3
geomorphology_vector_path C:/Users/cwallace1/Documents/New Research Data/Gmms_1.shp
habitat_table_path C:/Users/cwallace1/Documents/New Research Data/geo1.csv
landmass_vector_path C:/Users/cwallace1/Documents/New Research Data/LP_Final.shp
max_fetch_distance 1200
model_resolution 3000
n_workers -1
population_radius
population_raster_path
results_suffix
shelf_contour_vector_path C:/Users/cwallace1/Documents/New Research Data/conshe/conshe.shp
slr_field H
slr_vector_path C:/Users/cwallace1/Documents/New Research Data/CVInputs_GulfWide_JMS/SLR_WGS84.shp
workspace_dir C:\Users\cwallace1\Pictures\School Stuff\outputs
wwiii_vector_path C:/Users/cwallace1/Pictures/School Stuff/InVEST_3.7.0_x86/CoastalProtection/Input/WaveWatchIII.shp
2019-11-06 10:21:59,818 coastal_vulnerability.execute(95) INFO Validating arguments
2019-11-06 10:21:59,842 validation._wrapped_validate_func(148) DEBUG Validation warnings: []
2019-11-06 10:21:59,928 coastal_vulnerability.calculate_relief_exposure(1136) INFO Calculating relief exposure
2019-11-06 10:21:59,937 Task.add_task(636) ERROR Something went wrong when adding task calculate relief exposure (7), terminating taskgraph.
Traceback (most recent call last):
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add_task
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in _call
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal_vulnerability.py”, line 1152, in calculate_relief_exposure
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal_vulnerability.py”, line 1763, in clip_and_project_raster
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2683, in transform_bounding_box
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt
TypeError: not a string
2019-11-06 10:21:59,938 model._logged_target(1639) ERROR Exception while executing <function execute at 0x0F00F8F0>
Traceback (most recent call last):
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\model.py”, line 1636, in _logged_target
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal_vulnerability.py”, line 277, in execute
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 602, in add_task
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\taskgraph\Task.py”, line 1068, in _call
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal_vulnerability.py”, line 1152, in calculate_relief_exposure
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\coastal_vulnerability.py”, line 1763, in clip_and_project_raster
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2683, in transform_bounding_box
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt
TypeError: not a string
2019-11-06 10:21:59,938 model._logged_target(1642) INFO Execution finished
2019-11-06 10:21:59,940 utils.prepare_workspace(115) INFO Elapsed time: 0.14s