Crop production_AttributeError

Hi,
When i run the crop production model, I get the following error:
11/14/2024 14:29:45 osgeo WARNING [errno 1] The definition of projected CRS EPSG:32618 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
11/14/2024 14:29:45 osgeo WARNING [errno 1] PROJ: proj_create_from_name: Cannot find proj.db
11/14/2024 14:29:45 osgeo ERROR [errno 1] PROJ: proj_create_from_database: Cannot find proj.db
11/14/2024 14:29:45 osgeo ERROR [errno 1] PROJ: proj_create: unrecognized format / unknown name
11/14/2024 14:29:45 natcap.invest.utils ERROR Exception while executing natcap.invest.crop_production_percentile
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 165, in prepare_workspace
File “invest\cli.py”, line 470, in main
File “natcap\invest\crop_production_percentile.py”, line 506, in execute
File “pygeoprocessing\geoprocessing.py”, line 3608, in transform_bounding_box
File “pygeoprocessing\geoprocessing.py”, line 3588, in _transform_point
AttributeError: ‘NoneType’ object has no attribute ‘TransformPoint’
11/14/2024 14:29:45 natcap.invest.utils INFO Elapsed time: 0.05s
11/14/2024 14:29:45 natcap.invest.utils INFO Execution finished; version: 3.14.2

Anyone can help this problem?Thank you!

A post was split to a new topic: HRA: expected column “path” but did not find it

Probably it’s about “AttributeError: ‘NoneType’ object has no attribute ‘TransformPoint’”, but i can’t find a solution.

Hi @leo thanks for your patience here! I have to say, this is an unusual collection of errors. Are you running InVEST from a conda installation, from the workbench, or in some other way?

And do you have any other GDAL installations on your computer, such as within a separate conda/Anaconda installation? If so, could you try running the InVEST workbench version at this download link and see if it resolves the issue? InVEST doesn't start - #5 by dave

Thanks!
James

Hi @jdouglass, thanks for your reply!i have tried the download link to re-install,but seem not usefull. please see error:

12/05/2024 10:29:46 osgeo WARNING [errno 1] PROJ: proj_create_from_database: Cannot find proj.db
12/05/2024 10:29:46 osgeo WARNING [errno 1] The definition of projected CRS EPSG:32618 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
12/05/2024 10:29:46 osgeo WARNING [errno 1] PROJ: proj_create_from_name: Cannot find proj.db
12/05/2024 10:29:46 natcap.invest.utils ERROR Exception while executing natcap.invest.crop_production_percentile
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 186, in prepare_workspace
File “invest\cli.py”, line 472, in main
File “natcap\invest\crop_production_percentile.py”, line 505, in execute
File “osgeo\osr.py”, line 1734, in ImportFromEPSG
RuntimeError: PROJ: proj_create_from_database: Cannot find proj.db
12/05/2024 10:29:46 natcap.invest.utils INFO Elapsed time: 0.03s
12/05/2024 10:29:46 natcap.invest.utils INFO Execution finished; version: 3.14.1.post486+g1628966be