Error in rule simplify_network:Pypsa-eur #909
Replies: 10 comments 4 replies
-
Hello @Javier-Andres-Gonzalez ! |
Beta Was this translation helpful? Give feedback.
-
Hello @davide-f! thank you for your prompt response. I attach the log of the failure 2023-10-26T232821.927934.snakemake.log Thanks |
Beta Was this translation helpful? Give feedback.
-
Unfortunately the log is not saying much, could you post the output from the command (bash/prompt)? |
Beta Was this translation helpful? Give feedback.
-
Yes @davide-f! snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile config/test/config.electricity.yaml I follow what the tutorial recommends (https://pypsa-eur.readthedocs.io/en/latest/tutorial.html) |
Beta Was this translation helpful? Give feedback.
-
Not sure exactly, but this seems more related to pypsa-eur than pypsa-earth. |
Beta Was this translation helpful? Give feedback.
-
We had some exchange on this issue in #908. As discussed with @Javier-Andres-Gonzalez, the problem has been connected with different design of PyPSA-Earth and PyPSA-Europe. Since Javier is interested in modeling Argentina, pypsa-earth is needed, which tutorial is available here https://pypsa-earth.readthedocs.io/en/latest/short_tutorial.html @Javier-Andres-Gonzalez happy to be kept updated :D As @davide-f has mentioned, feel free also to use pypsa-earth Discord, which still has a considerable knowledge base on usability issues. |
Beta Was this translation helpful? Give feedback.
-
Hello @davide-f! Error summary: Benchmark: unable to collect cpu and memory benchmark statistics Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @Javier-Andres-Gonzalez! Thanks a lot for posting the problem here. The error means that the workflow can't load the files needed to run the full-scale model. Not sure about the reasons. Probably, @davide-f may have some insights on it. You can fix this issue by manual loading of the required files, using urls specified in bundle_config.yaml:
|
Beta Was this translation helpful? Give feedback.
-
Hi Ekaterina! There seems to be a problem running Snakemake, specifically in the retrieve_databundle_light rule. The error indicates that some output files are missing after the job has completed successfully. I attach images of the config.yaml file after running the tutorial. Thanks!! |
Beta Was this translation helpful? Give feedback.
-
Davide-f! Thank you for your quick response. I have just finished running the AR model successfully. I will continue now to explore with Jupyter notebook the downloaded models. Thank you very much for all the advice. |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried to run pypsa-eur (snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile config/test/config.electricity.yaml)
many times, and it keep failed in the step of simplify_network, showing "NameError: name 'config' is not defined" and "errors in rule simply_network".
Does anyone has the experience or suggestion on how to solve it?
The information about the errors in the terminal is as the follows:
Error in rule simplify_network:
jobid: 4
input: resources/networks/elec.nc, data/costs_2030.csv, resources/regions_onshore.geojson, resources/regions_offshore.geojson
output: resources/networks/elec_s.nc, resources/regions_onshore_elec_s.geojson, resources/regions_offshore_elec_s.geojson, resources/busmap_elec_s.csv, resources/connection_costs_s.csv
log: logs/test-elec/simplify_network/elec_s.log (check log file(s) for error details)
conda-env: C:\Users\romin\pypsa\pypsa-eur.snakemake\conda\8c2b696ba135d3886bd6a114623c8c83_
RuleException:
CalledProcessError in file C:\Users\romin\pypsa\pypsa-eur\rules/build_electricity.smk, line 404:
Command 'C:/Users/romin/miniconda3/envs/pypsa-earth-env/python.exe "C:\Users\romin\pypsa\pypsa-eur.snakemake\scripts\tmpzegn1oac.simplify_network.py"' returned non-zero exit status 1.
File "C:\Users\romin\pypsa\pypsa-eur\rules/build_electricity.smk", line 404, in __rule_simplify_network
File "C:\Users\romin\miniconda3\envs\pypsa-earth-env\lib\concurrent\futures\thread.py", line 58, in run
Removing output files of failed job simplify_network since they might be corrupted:
resources/connection_costs_s.csv
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake\log\2023-10-26T002300.707239.snakemake.log
Beta Was this translation helpful? Give feedback.
All reactions