# Coastal Vulnerability TypeError expected str - how to interpret logfile?

**URL:** <https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303>\
**Category:** Software Support\
**Tags:** coastal-vulnerability\
**Created:** [November 12, 2021, 6:12pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303 "2021-11-12T18:12:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhayden](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mhayden](https://community.naturalcapitalalliance.org/u/mhayden)\
**Post date:** [November 12, 2021, 6:12pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303/1 "2021-11-12T18:12:54Z")

</div>

Hello,  
Am using the CV model for the first time and received the following error  
TypeError: expected str, bytes or os.PathLike object, not float

But from the log file I can’t figure out what this is referring to. From a similar post it seems it may be an issue with one of my input files lacking spatial reference, but I can’t interpret which one (and I’ve checked all the files in ArcGIS and they do have). Please help! Log file attached.

[InVEST-Coastal-Vulnerability-log-2021-11-11–14\_54\_40.txt](https://community.naturalcapitalalliance.org/uploads/short-url/wLsNaOEKkBOpYDWk2RmBKOvmxpS.txt) (4.8 KB)

Thanks,  
M

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [November 12, 2021, 7:26pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303/2 "2021-11-12T19:26:34Z")

</div>

Hi @mhayden , thanks for posting. I think the problem might be with one of the filepaths embedded in the habitat table csv. The `path` column of that table needs to be an absolute path or a relative path (relative to the csv). The error is indicating maybe there is a number or a blank value instead? If you can’t figure it out, please share the habitat table csv here.

Thanks,

---

<div class="post-metadata">

**Author:** ![mhayden](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mhayden](https://community.naturalcapitalalliance.org/u/mhayden)\
**Post date:** [November 15, 2021, 7:49pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303/3 "2021-11-15T19:49:43Z")

</div>

Thanks @dave! I had a relative filepath issue.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)\
**Post date:** [November 22, 2021, 7:50pm UTC](https://community.naturalcapitalalliance.org/t/coastal-vulnerability-typeerror-expected-str-how-to-interpret-logfile/2303/4 "2021-11-22T19:50:28Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
