# TypeError encountered: not a string

**URL:** <https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877>\
**Category:** Software Support\
**Tags:** sdr\
**Created:** [March 13, 2020, 12:26pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877 "2020-03-13T12:26:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhyuan](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mhyuan](https://community.naturalcapitalalliance.org/u/mhyuan)\
**Post date:** [March 13, 2020, 12:26pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/1 "2020-03-13T12:26:37Z")

</div>

hi,  
I am running a sediment delivery ratio model. it shows “TypeError encountered: not a string”. can you kindly check it for me?

Initializing…  
Showing messages with level INFO and higher  
2020-03-13 20:18:44,799 utils.prepare\_workspace(109) INFO Writing log messages to F:\GIS\invest\FEWE\sdr\city\taipei\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2020-03-13–20\_18\_44.txt  
2020-03-13 20:18:44,801 model.\_logged\_target(1633) Level 100 Starting model with parameters:  
Arguments for InVEST natcap.invest.sdr 3.7.0:  
biophysical\_table\_path F:/GIS/invest/FEWE/sdr/city/biophysical\_table\_Gura\_num1.csv  
dem\_path F:/GIS/invest/FEWE/ndr/cities/taipei/DEM.tif  
drainage\_path  
erodibility\_path F:/GIS/invest/FEWE/sdr/city/taipei/soil2.tif  
erosivity\_path F:/GIS/invest/FEWE/sdr/city/taipei/rain2.tif  
ic\_0\_param 0.5  
k\_param 0.55  
lulc\_path F:/GIS/invest/FEWE/sdr/city/taipei/land4/w001001.adf  
n\_workers -1  
results\_suffix  
sdr\_max 0.8  
threshold\_flow\_accumulation 100000  
watersheds\_path F:/GIS/invest/FEWE/ndr/cities/taipei/waterwsid.shp  
workspace\_dir F:\GIS\invest\FEWE\sdr\city\taipei

2020-03-13 20:18:44,875 usage.\_log\_model(275) WARNING an exception encountered when logging TypeError(‘not a string’,)  
2020-03-13 20:21:54,019 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,020 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,020 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,022 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,022 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,022 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,022 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,023 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,025 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,026 utils.\_log\_gdal\_errors(66) ERROR [errno 1] Reprojection failed, err = -14, further errors will be suppressed on the transform object.  
2020-03-13 20:21:54,026 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,026 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,026 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,028 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,028 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,028 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,029 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,029 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,029 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,029 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,029 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,030 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,030 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,030 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-13 20:21:54,032 utils.\_log\_gdal\_errors(66) ERROR [errno 1] Reprojection failed, err = -14, further errors will be suppressed on the transform object.  
2020-03-13 20:21:54,035 Task.add\_task(636) ERROR Something went wrong when adding task align input rasters (0), 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-13 20:21:54,036 model.\_logged\_target(1639) ERROR Exception while executing \<function execute at 0x0FA257F0\>  
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\sdr.py”, line 189, 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-13 20:21:54,036 model.\_logged\_target(1642) INFO Execution finished  
2020-03-13 20:21:54,038 utils.prepare\_workspace(115) INFO Elapsed time: 3m 9.24s  
2020-03-13 20:21:54,039 execution.run(78) ERROR Target \<function \_logged\_target at 0x149AB1B0\> failed with exception  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\execution.py”, line 68, in run  
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\sdr.py”, line 189, 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-13 20:21:54,039 execution.run(83) INFO Execution finished

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [March 13, 2020, 3:22pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/2 "2020-03-13T15:22:58Z")

</div>

Hi @mhyuan -

I wonder if the error is related to the LULC input “w001001.adf”. It looks like this is an ESRI GRID raster, so try entering the associated file “hdr.adf” and see if that helps. Alternately, I advise converting the file to a TIFF, like your erodibility and erosivity rasters are, since they’re easier to work with in a lot of ways, and it’s much more obvious which file to enter into the model.

~ Stacie

---

<div class="post-metadata">

**Author:** ![mhyuan](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mhyuan](https://community.naturalcapitalalliance.org/u/mhyuan)\
**Post date:** [March 16, 2020, 3:56am UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/3 "2020-03-16T03:56:20Z")

</div>

Dear Stacie,  
Thanks for your quick response. I have done something according to your suggestion. However, it shows similar error information. Can you kindly check it for me?  
Initializing…  
Showing messages with level INFO and higher  
2020-03-16 11:49:50,509 utils.prepare\_workspace(109) INFO Writing log messages to F:\GIS\invest\FEWE\sdr\city\taipei\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2020-03-16–11\_49\_50.txt  
2020-03-16 11:49:50,510 model.\_logged\_target(1633) Level 100 Starting model with parameters:  
Arguments for InVEST natcap.invest.sdr 3.7.0:  
biophysical\_table\_path F:/GIS/invest/FEWE/sdr/city/biophysical\_table\_Gura\_num2.csv  
dem\_path F:/GIS/invest/FEWE/sdr/city/taipei/dem4.tif  
drainage\_path  
erodibility\_path F:/GIS/invest/FEWE/sdr/city/taipei/soil2.tif  
erosivity\_path F:/GIS/invest/FEWE/sdr/city/taipei/rain2.tif  
ic\_0\_param 0.5  
k\_param 0.55  
lulc\_path F:/GIS/invest/FEWE/sdr/city/taipei/land4.tif  
n\_workers -1  
results\_suffix  
sdr\_max 0.8  
threshold\_flow\_accumulation 100000  
watersheds\_path F:/GIS/invest/FEWE/sdr/city/taipei/watershed4.shp  
workspace\_dir F:\GIS\invest\FEWE\sdr\city\taipei

2020-03-16 11:49:50,592 usage.\_log\_model(275) WARNING an exception encountered when logging TypeError(‘not a string’,)  
2020-03-16 11:52:59,983 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,984 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,984 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,986 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,987 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,987 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,987 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,987 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,989 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,989 utils.\_log\_gdal\_errors(66) ERROR [errno 1] Reprojection failed, err = -14, further errors will be suppressed on the transform object.  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,990 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,992 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,992 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,992 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,993 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,994 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,994 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,994 utils.\_log\_gdal\_errors(66) ERROR [errno 1] latitude or longitude exceeded limits  
2020-03-16 11:52:59,996 utils.\_log\_gdal\_errors(66) ERROR [errno 1] Reprojection failed, err = -14, further errors will be suppressed on the transform object.  
2020-03-16 11:52:59,996 Task.add\_task(636) ERROR Something went wrong when adding task align input rasters (0), 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-16 11:52:59,996 model.\_logged\_target(1639) ERROR Exception while executing \<function execute at 0x0FD507F0\>  
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\sdr.py”, line 189, 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-16 11:52:59,996 model.\_logged\_target(1642) INFO Execution finished  
2020-03-16 11:52:59,996 utils.prepare\_workspace(115) INFO Elapsed time: 3m 9.49s  
2020-03-16 11:52:59,996 execution.run(78) ERROR Target \<function \_logged\_target at 0x0FD917B0\> failed with exception  
Traceback (most recent call last):  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\execution.py”, line 68, in run  
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\sdr.py”, line 189, 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\pygeoprocessing\geoprocessing.py”, line 682, in align\_and\_resize\_raster\_stack  
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\pygeoprocessing\geoprocessing.py”, line 2680, in transform\_bounding\_box  
File “C:\Python27\lib\site-packages\osgeo\osr.py”, line 765, in ImportFromWkt  
TypeError: not a string  
2020-03-16 11:52:59,996 execution.run(83) INFO Execution finished

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [March 16, 2020, 12:42pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/4 "2020-03-16T12:42:35Z")

</div>

Hi @mhyuan,

Sorry to see you’re still having troubles. A few things:

1. Could you download, install, and run the latest version of InVEST and SDR that has a pretty significant bug fix? [InVEST 3.8 SDR-BugFix](https://storage.googleapis.com/natcap-dev-build-artifacts/invest/phargogh/3.8.0.post171+g059df5bf/InVEST_3.8.0.post171+g059df5bf_x86_Setup.exe)
2. Can you check that your input rasters and watershed shapefile are properly projected with valid Coordinate Systems? It appears that at least one of the input files is not behaving correctly.

Cheers,

Doug

---

<div class="post-metadata">

**Author:** ![mhyuan](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mhyuan](https://community.naturalcapitalalliance.org/u/mhyuan)\
**Post date:** [April 16, 2020, 9:19am UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/5 "2020-04-16T09:19:30Z")

</div>

Hi,  
I have carefully checked input files and all the problems have solved out. Thanks for your suggestion.  
I am working on another one - Habitat Quality. It shows different errors. I have upload messages here. Can you kindly check it up for me?  
Regards,  
[https://drive.google.com/open?id=1zTDfFwF5B62TdXe3G5aPx97kNiaxlqnu](https://drive.google.com/open?id=1zTDfFwF5B62TdXe3G5aPx97kNiaxlqnu)

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 16, 2020, 12:16pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/6 "2020-04-16T12:16:22Z")

</div>

Hi @mhyuan,

Glad the SDR issue was resolved and happy to answer questions on Habitat Quality. However, _could you post again under a new topic / thread_? We try to keep each question isolated so that it is easier for people to follow and find later. I am going to close this topic / thread and look for your new post!

Thanks!

Doug

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 16, 2020, 12:16pm UTC](https://community.naturalcapitalalliance.org/t/typeerror-encountered-not-a-string/877/7 "2020-04-16T12:16:27Z")

</div>

Closed on April 16, 2020, 12:16pm UTC


