Habitat-quality ValueError

03/08/2023 14:08:01 natcap.invest.utils ERROR Exception while executing natcap.invest.habitat_quality
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 486, in main
File “natcap\invest\habitat_quality.py”, line 295, in execute
File “natcap\invest\habitat_quality.py”, line 296, in
ValueError: invalid literal for int() with base 10: ‘farm’

[invalid literal for int() with base 10: ‘farm’]
How do I fix it?

Hi @shie,

Thanks for posting and welcome to the forums. Could you please attach the logfile that is created in the workspace directory? It will make it easier for us to debug the problem.

This looks like one of the table inputs might not be set up properly, but it’s hard to say without more information.



Thanks,I put up the 2 tables needed for the model。

Hello, have you solved this problem?

Hi @shie , for the Sensitivity table, the “LULC” column should contain the integer codes that you have listed under the “lucode” column. So you may rename the “lucode” column to “lulc”, and then remove/rename the “LULC” column. Please let us know if that works.


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