# Could not convert string to float: ''

**URL:** <https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411>\
**Category:** Software Support\
**Tags:** ndr\
**Created:** [May 15, 2026, 9:56am UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411 "2026-05-15T09:56:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimple](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dimple](https://community.naturalcapitalalliance.org/u/Dimple)\
**Post date:** [May 15, 2026, 9:56am UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/1 "2026-05-15T09:56:09Z")

</div>

When I use this module to calculate water purificationIt has never been successful.Always show could not convert string to float:＂I revised the biophysics table again and checked that it was out of control.And I downloaded it in the model.sample dataAfter running, it is still not successful. This is the problem.I don’t know how to do.Uploaded my failed work log and my own biophysics table.Ask the boss for guidance.

### Upload the logfile using the 📤 button

[biophysical.csv](https://community.naturalcapitalalliance.org/uploads/short-url/6c8pYSgEAqb90brRZCOkP7CM4lz.csv) (328 Bytes)

[InVEST-natcap.invest.ndr.ndr-log-2026-05-15–17\_34\_59.txt](https://community.naturalcapitalalliance.org/uploads/short-url/aFdAdlvJxm3DUFZL260sBX1FXoN.txt) (2.4 KB)

---

<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:** [May 15, 2026, 12:25pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/2 "2026-05-15T12:25:15Z")

</div>

Hi @Dimple , thank you for posting here. The version of InVEST you are running is quite old at this point. I think it is likely you will be successful if you upgrade to the latest version of InVEST: [InVEST Downloads, User Guides, and Data Sources | Natural Capital Alliance](https://naturalcapitalalliance.stanford.edu/software/invest/invest-downloads-data)

---

<div class="post-metadata">

**Author:** ![Dimple](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dimple](https://community.naturalcapitalalliance.org/u/Dimple)\
**Post date:** [May 15, 2026, 4:42pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/3 "2026-05-15T16:42:55Z")

</div>

[InVEST-ndr-log-2026-05-16–00\_33\_36.txt](https://community.naturalcapitalalliance.org/uploads/short-url/s1GBW3wSCl7cWWjJBLv95GDEfPw.txt) (2.4 KB)Thank you very much. Under your guidance, I have downloaded the latest version of the Invest model.But I encountered another problem in the operation. It shows proj\_identify:Cannot find pro.db.I think I am in the download process, which place is not downloaded, what should I do to make it run successfully, to solve this problem?

---

<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:** [May 15, 2026, 5:57pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/4 "2026-05-15T17:57:13Z")

</div>

This new error is interesting. The issue may be related to environment variables on your system. In the InVEST Workbench, can you please do the following:

1. Go to the “About” menu,
2. Click “Report a problem”
3. Click “Find My Logs” and then upload any `.log` files you have.

These logs may have additional information about environment variables that could be useful to see. Thank you,

---

<div class="post-metadata">

**Author:** ![Dimple](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dimple](https://community.naturalcapitalalliance.org/u/Dimple)\
**Post date:** [May 15, 2026, 7:21pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/5 "2026-05-15T19:21:18Z")

</div>

[main.log](https://community.naturalcapitalalliance.org/uploads/short-url/64CMxTrIxqTFBaBNdQu9tYAZyWZ.log) (144.4 KB)Thanks.This is the logs found by following your instructions.Please help me to see what’s wrong with the system variable environment. Should I add a new variable environment or modify something?

---

<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:** [May 15, 2026, 8:00pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/6 "2026-05-15T20:00:30Z")

</div>

@Dimple , thank you for sharing this new logfile. The following environment variables are of interest:

```auto
  "PROJ-DB": "D:\\软件\\Invest\\InVEST 3.19.0 Workbench\\resources\\invest\\_internal\\Library\\share\\proj",
  "PROJ-LIB": "D:\\软件\\ABBYY\\InVEST 3.14.2 Workbench\\resources\\invest\\_internal\\proj",
  "PROJ.DB": "D:\\软件\\Invest\\InVEST 3.19.0 Workbench\\resources\\invest\\_internal\\proj",
  "PROJ_DATA": "D:\\软件\\Invest\\InVEST 3.19.0 Workbench\\resources\\invest\\_internal\\proj",

```

Some of these variables may be interfering with InVEST as it tries to find the `proj.db` file, causing the `RuntimeError: PROJ: proj_identify: Cannot find proj.db`. I am not sure how these variables were created on your system. Do you know?

In Windows, you could try searching for “edit the system environment variables” and then if you find these specific Variables, you could delete each one. You should be careful when editing or deleting environment variables, as other software on your computer could also be using them. But in this case, because all the variables reference “InVEST”, I think it is safe to delete them. Then close and re-open the Workbench and try running the model again.

---

<div class="post-metadata">

**Author:** ![Dimple](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@Dimple](https://community.naturalcapitalalliance.org/u/Dimple)\
**Post date:** [May 16, 2026, 4:47am UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/7 "2026-05-16T04:47:20Z")

</div>

Thank you for your reply. These environment variables were created in the system environment variable when I was looking for a solution.But this problem also occurs before these new variables are created.In the system, I removed these variables and the problem still occurred. I don’t know why. Could you give me some advise?

---

<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:** [May 18, 2026, 1:29pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/8 "2026-05-18T13:29:24Z")

</div>

> [@Dimple](#):
>
> These environment variables were created in the system environment variable when I was looking for a solution.But this problem also occurs before these new variables are created.In the system, I removed these variables and the problem still occurred.

@Dimple Thank you for clarifying this. It is best to remove these variables.

I don’t know exactly why the problem still occurs. One thing that could be causing the problem are the non-ASCII (Chinese) characters in the installation path. If possible, you could try installing InVEST to a different location on your computer, such as somewhere on the `C:/` drive where there are no non-ASCII characters in the path. Please let us know if that works.

---

<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:** [May 25, 2026, 1:30pm UTC](https://community.naturalcapitalalliance.org/t/could-not-convert-string-to-float/6411/9 "2026-05-25T13:30:18Z")

</div>

Closed on May 25, 2026, 1:30pm UTC

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