Open
Description
Following the provided instructions (readme and wiki). The conda environment does not provide the right mix of libraries and their version for a successful run out of the box. There is a conflict in the versions of proj.db
required by ras2fim and Geopandas.
Current behavior
Error:
2024-02-09 16:23:39 <CRITICAL> : Traceback (most recent call last):
File "ras2fim.py", line 730, in <module>
init_and_run_ras2fim(**args)
File "ras2fim.py", line 197, in init_and_run_ras2fim
fn_run_ras2fim(
File "ras2fim.py", line 323, in fn_run_ras2fim
fn_cut_dems_from_shapes(
File "D:\Users\abdul.siddiqui\workbench\repos\ras2fim\src\clip_dem_from_shape.py", line 113, in fn_cut_dems_from_shapes
gdf_boundary_raster_prj = gdf_boundary_prj.to_crs(str_raster_prj)
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\geopandas\geodataframe.py", line 1364, in to_crs
geom = df.geometry.to_crs(crs=crs, epsg=epsg)
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\geopandas\geoseries.py", line 1124, in to_crs
self.values.to_crs(crs=crs, epsg=epsg), index=self.index, name=self.name
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\geopandas\array.py", line 777, in to_crs
transformer = Transformer.from_crs(self.crs, crs, always_xy=True)
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\pyproj\transformer.py", line 600, in from_crs
return Transformer(
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\pyproj\transformer.py", line 326, in __init__
self._local.transformer = transformer_maker()
File "D:\Users\abdul.siddiqui\AppData\Local\anaconda3\envs\ras2fim\lib\site-packages\pyproj\transformer.py", line 102, in __call__
return _Transformer.from_crs(
File "pyproj\_transformer.pyx", line 530, in pyproj._transformer._Transformer.from_crs
File "pyproj\_transformer.pyx", line 309, in pyproj._transformer.proj_create_crs_to_crs
pyproj.exceptions.ProjError: Error creating Transformer from CRS.
Expected behavior
No error.
Steps to replicate behavior (include URLs)
Follow the provided instructions and run the sample model on a new machine.