You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the current main branch or the latest release. Please indicate.
I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.
Error Message
Our rasterio version is restricted in PyPSA-Earth to rasterio!=1.2.10
When deinstallaing pypsa-earth conda remove --name pypsa-earth --all and installing it from scratch conda env create -f envs/environment.yaml I get the following error when running the workflow:
rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6 (appears in build_natura raster rule)
When the patch-4 of @davide-f Atlite fork is merged the issue should disappear.
Let me explain how the error appears. Our rasterio version is restricted in PyPSA-Earth to rasterio!=1.2.10. By default anaconda resolves the version in PyPSA-Earth such that rasterio=1.2.9. Well that so far no problem. However, since atlite is in PyPSA-Earth forked and can be only installed over pip, pip will overwrite the 1.2.9 version because atlite enforces rasterio>=1.2.10. What pip will install is than either rasterio==1.3.3 and rasterio==1.3.4. But why does that trigger an error? My assumption after reading some stuff: rasterio, gdal and fiona should be installed with the same conda installation --> updating one of it afterwards can cause issues.
The patch-4 solution makes out of rasterio>=1.2.10 now rasterio!=1.2.10. This will lead to the case that rasterio will not be reinstalled by the pip process:
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.
Error Message
Our rasterio version is restricted in PyPSA-Earth to
rasterio!=1.2.10
When deinstallaing pypsa-earth
conda remove --name pypsa-earth --all
and installing it from scratchconda env create -f envs/environment.yaml
I get the following error when running the workflow:rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6 (appears in build_natura raster rule)
When the patch-4 of @davide-f Atlite fork is merged the issue should disappear.
Let me explain how the error appears. Our rasterio version is restricted in PyPSA-Earth to
rasterio!=1.2.10
. By default anaconda resolves the version in PyPSA-Earth such thatrasterio=1.2.9
. Well that so far no problem. However, since atlite is in PyPSA-Earth forked and can be only installed over pip, pip will overwrite the 1.2.9 version because atlite enforcesrasterio>=1.2.10
. What pip will install is than eitherrasterio==1.3.3
andrasterio==1.3.4
. But why does that trigger an error? My assumption after reading some stuff: rasterio, gdal and fiona should be installed with the same conda installation --> updating one of it afterwards can cause issues.The patch-4 solution makes out of
rasterio>=1.2.10
nowrasterio!=1.2.10
. This will lead to the case that rasterio will not be reinstalled by the pip process:The text was updated successfully, but these errors were encountered: