Get AttributeError: 'NoneType' object has no attribute 'ExportToWkt' when using Water Yield Model

Is there anybody has the same problem with me? I just get a notice AttributeError: 'NoneType' object has no attribute 'ExportToWkt'

Initializing...

Showing messages with level INFO and higher

11/26/2018 16:00:25 natcap.invest.utils INFO Writing log messages to C:\Users\wu921\Desktop\InVEST-Hydropower-Water-Yield-log-2018-11-26--16_00_25.txt

11/26/2018 16:00:25 natcap.invest.ui.model Level 100 Starting model with parameters:

Arguments for InVEST natcap.invest.hydropower.hydropower_water_yield 3.5.0:

biophysical_table_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/biophysical_table.csv

calculate_valuation False

calculate_water_scarcity False

depth_to_root_rest_layer_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/soil_depth.tif

eto_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/evp1980.tif

lulc_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/lulc1980r.tif

pawc_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/pawc.tif

precipitation_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/pre1980.tif

results_suffix

seasonality_constant 25

sub_watersheds_uri

watersheds_uri H:/Thesis data/invest scenario/inVEST/wateryield_CGCS/watershed.shp

workspace_dir C:\Users\wu921\Desktop


11/26/2018 16:00:25 natcap.invest.hydropower.hydropower_water_yield INFO Validating arguments

11/26/2018 16:00:25 pygeoprocessing.geoprocessing INFO n_workers > 1 (2) so starting a processes pool.

11/26/2018 16:00:26 pygeoprocessing.geoprocessing INFO 1 of 5 aligned: eto.tif

11/26/2018 16:00:26 pygeoprocessing.geoprocessing INFO 2 of 5 aligned: precip.tif

11/26/2018 16:00:26 pygeoprocessing.geoprocessing INFO 3 of 5 aligned: depth_to_root_rest_layer.tif

11/26/2018 16:00:26 pygeoprocessing.geoprocessing INFO 4 of 5 aligned: pawc.tif

11/26/2018 16:00:26 pygeoprocessing.geoprocessing INFO 5 of 5 aligned: clipped_lulc.tif

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO aligned all 5 rasters.

11/26/2018 16:00:27 natcap.invest.hydropower.hydropower_water_yield INFO Reclassifying temp_Kc raster

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-23, started daemon 2656)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 natcap.invest.hydropower.hydropower_water_yield INFO Reclassifying tmp_root raster

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-24, started daemon 12480)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 natcap.invest.hydropower.hydropower_water_yield INFO Reclassifying tmp_veg raster

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-25, started daemon 6632)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 natcap.invest.hydropower.hydropower_water_yield INFO Calculate PET from Ref Evap times Kc

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-26, started daemon 32)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-27, started daemon 6512)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 natcap.invest.hydropower.hydropower_water_yield INFO Performing wyield operation

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-28, started daemon 6596)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO starting stats_worker

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-29, started daemon 6648)>

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 100.0%% complete

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO signaling stats worker to terminate

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO n_workers == 1 so a threadpool is sufficient

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO 1 of 1 aligned: clipped_raster8pnmv0

11/26/2018 16:00:27 pygeoprocessing.geoprocessing INFO aligned all 1 rasters.

11/26/2018 16:00:27 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x17661470>

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\hydropower\hydropower_water_yield.py", line 458, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1162, in zonal_statistics

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1776, in calculate_disjoint_polygon_set

AttributeError: 'NoneType' object has no attribute 'ExportToWkt'

11/26/2018 16:00:27 natcap.invest.ui.model INFO Execution finished

11/26/2018 16:00:27 natcap.invest.utils INFO Elapsed time: 2.2s

11/26/2018 16:00:27 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x1858EA30> failed with exception

Traceback (most recent call last):

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\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\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\hydropower\hydropower_water_yield.py", line 458, in execute

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1162, in zonal_statistics

File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1776, in calculate_disjoint_polygon_set

AttributeError: 'NoneType' object has no attribute 'ExportToWkt'

11/26/2018 16:00:27 natcap.invest.ui.execution INFO Execution finished


Comments

  • DaveDave Member, Administrator, NatCap Staff
    This is interesting. If you'd like you can send me your datastack via dropbox or google drive and I can troubleshoot for you. davefisher@stanford.edu
Sign In or Register to comment.