-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Hi,
I have run into a somewhat fatal error when installing Climada (Version 4.0.1) anew, using both the easy instructions, as well as the advanced instructions.
Upon running the line 'python -m unittest climada.engine.test.test_impact' in the VSCode terminal within the dedicated Climada environment, the following error occurs:
CPLE_AppDefinedError Traceback (most recent call last)
File fiona\crs.pyx:585, in fiona.crs.CRS.from_epsg()
File fiona\_err.pyx:265, in fiona._err.exc_wrap_int()
CPLE_AppDefinedError: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code,
area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
File fiona\crs.pyx:1265, in fiona.crs.from_epsg()
File fiona\crs.pyx:589, in fiona.crs.CRS.from_epsg()
CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
I tried to solve the error (while keeping the latest version of Climada) by installing Climada fresh in VSCode again using simple and advanced instructions, but to no avail. Similarly, I tried to install it on a dedicated Miniconda-Kernel and run it on Jupyter Lab, but the issue persists. Have others observed similar issues?
My current workaround:
Fixing GDAL and PROJ versions to the ones reported when installing fiona 1.9.1 on a pristine Python kernel (checked GDAL&PROJ versions with fiona install on Python 3.8, 3.9, 3.10). This downgrades Climada and Climada Petals to versions 3.3.2. Further, the hotfix for stamen needed to be applied, pinning the xyzservices to version 2023.10.0.
Any insight is greatly appreciated.^^
Kind regards