Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict in the versions of proj.db required by ras2fim and Geopandas #284

Open
ar-siddiqui opened this issue Feb 13, 2024 · 0 comments
Open
Labels
bug Something isn't working ras2fim_V2

Comments

@ar-siddiqui
Copy link
Contributor

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.

Screenshots

@RobHanna-NOAA RobHanna-NOAA added bug Something isn't working ras2fim_V2 labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ras2fim_V2
Projects
None yet
Development

No branches or pull requests

2 participants