The main reason this error occurs is when there is an issue with the underlying environment and/or installation of the natcap.invest python package. The easiest way to resolve this is generally to recreate your environment. I would strongly recommend making sure that your environment is created using conda or mamba, as described in our API documentation: Installing the InVEST Python Package — InVEST 3.16.2.dev78+g92a1509.d20250811 documentation. This way you can make sure that all appropriate dependencies are installed, and this is significantly easier than trying to work with python’s venv.