棲地運行時偵測到錯誤
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?
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.
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.