Replies: 4 comments 6 replies
-
Hello @tcournut! Agree that the issue looks like there is something wrong with the dependencies. Could you please share an output of |
Beta Was this translation helpful? Give feedback.
-
Hi Ekatef ! :) In my pypsa-earth ensv I have this list in the output of the archspec 0.2.3 pyhd8ed1ab_0 conda-forge |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the report @tcournut! I confirm that the issue can be reproduced, and we are working to find a solution. I suspect, shapely 2.0.3 -> 2.0.4 has caused troubles, but finding a solutions requires some additional testing. I'll let you know, once the solution will be found. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone ! Sorry to bring bad news but even with 2.0.3 version of shapely, I still have the same issue .. Does it change something from you side ? |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone !
I am trying to use Pypsa earth with a single country Tunisia.
For the moment i manage to use the retrieve data bundle light rule and the Download OSM data rule without any error.
But when it comes to the build_shapes rule I had this error :
Restricted license - for non-production use only - expires 2025-11-24
C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\pulp\apis\gurobi_api.py:170: UserWarning:
GUROBI error: Unknown parameter '_test'.
warnings.warn("GUROBI error: {}.".format(e))
C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\pypsa\networkclustering.py:16: UserWarning: The namespace
pypsa.networkclustering
is deprecated and will be removed in PyPSA v0.24. Please usepypsa.clustering.spatial instead
.warnings.warn(
Building DAG of jobs...
WARNING:snakemake.logging:Building DAG of jobs...
Provided cores: 1 (use --cores to define parallelism)
WARNING:snakemake.logging:Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
WARNING:snakemake.logging:Rules claiming more threads will be scaled down.
Job stats:
job count
build_shapes 1
total 1
WARNING:snakemake.logging:Job stats:
job count
build_shapes 1
total 1
Select jobs to execute...
WARNING:snakemake.logging:Select jobs to execute...
INFO:snakemake.logging:
[Mon Apr 22 15:32:04 2024]
INFO:snakemake.logging:[Mon Apr 22 15:32:04 2024]
rule build_shapes:
input: data/eez/eez_v11.gpkg
output: resources/shapes/country_shapes.geojson, resources/shapes/offshore_shapes.geojson, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson
log: logs/build_shapes.log
jobid: 0
benchmark: benchmarks/build_shapes
reason: Missing output files: resources/shapes/country_shapes.geojson, benchmarks/build_shapes, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson, resources/shapes/offshore_shapes.geojson
resources: tmpdir=C:\Users\c19782\AppData\Local\Temp, mem_mb=3096, mem_mib=2953
INFO:snakemake.logging:rule build_shapes:
input: data/eez/eez_v11.gpkg
output: resources/shapes/country_shapes.geojson, resources/shapes/offshore_shapes.geojson, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson
log: logs/build_shapes.log
jobid: 0
benchmark: benchmarks/build_shapes
reason: Missing output files: resources/shapes/country_shapes.geojson, benchmarks/build_shapes, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson, resources/shapes/offshore_shapes.geojson
resources: tmpdir=C:\Users\c19782\AppData\Local\Temp, mem_mb=3096, mem_mib=2953
INFO:snakemake.logging:
Traceback (most recent call last):
File "C:\Users\c19782\Desktop\pypsa-earth.snakemake\scripts\tmpo6l3gquy.build_shapes.py", line 22, in
import geopandas as gpd
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\geopandas_init_.py", line 1, in
from geopandas._config import options
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\geopandas_config.py", line 109, in
default_value=_default_use_pygeos(),
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\geopandas_config.py", line 95, in _default_use_pygeos
import geopandas.compat as compat
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\geopandas_compat.py", line 9, in
import shapely
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\site-packages\shapely_init.py", line 1, in
from shapely.lib import GEOSException # NOQA
ImportError: DLL load failed while importing lib: La procédure spécifiée est introuvable.
[Mon Apr 22 15:32:09 2024]
INFO:snakemake.logging:[Mon Apr 22 15:32:09 2024]
Error in rule build_shapes:
jobid: 0
input: data/eez/eez_v11.gpkg
output: resources/shapes/country_shapes.geojson, resources/shapes/offshore_shapes.geojson, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson
log: logs/build_shapes.log (check log file(s) for error details)
ERROR:snakemake.logging:Error in rule build_shapes:
jobid: 0
input: data/eez/eez_v11.gpkg
output: resources/shapes/country_shapes.geojson, resources/shapes/offshore_shapes.geojson, resources/shapes/africa_shape.geojson, resources/shapes/gadm_shapes.geojson
log: logs/build_shapes.log (check log file(s) for error details)
RuleException:
CalledProcessError in file C:\Users\c19782\Desktop\pypsa-earth\Snakefile, line 259:
Command 'C:/Users/c19782/AppData/Local/anaconda3/envs/pypsa-earth/python.exe "C:\Users\c19782\Desktop\pypsa-earth.snakemake\scripts\tmpo6l3gquy.build_shapes.py"' returned non-zero exit status 1.
File "C:\Users\c19782\Desktop\pypsa-earth\Snakefile", line 259, in __rule_build_shapes
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\concurrent\futures\thread.py", line 58, in run
ERROR:snakemake.logging:RuleException:
CalledProcessError in file C:\Users\c19782\Desktop\pypsa-earth\Snakefile, line 259:
Command 'C:/Users/c19782/AppData/Local/anaconda3/envs/pypsa-earth/python.exe "C:\Users\c19782\Desktop\pypsa-earth.snakemake\scripts\tmpo6l3gquy.build_shapes.py"' returned non-zero exit status 1.
File "C:\Users\c19782\Desktop\pypsa-earth\Snakefile", line 259, in __rule_build_shapes
File "C:\Users\c19782\AppData\Local\anaconda3\envs\pypsa-earth\lib\concurrent\futures\thread.py", line 58, in run
Shutting down, this might take some time.
WARNING:snakemake.logging:Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
ERROR:snakemake.logging:Exiting because a job execution failed. Look above for error message
Complete log: .snakemake\log\2024-04-22T153148.168818.snakemake.log
WARNING:snakemake.logging:Complete log: .snakemake\log\2024-04-22T153148.168818.snakemake.log
It seems that there is a probleme with the shapely library .. Howerver I reinstalled everything via the environment.yaml file with conda.
Someone can give me some advice ?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions