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

error in rule build_natura_raster #1214

Open
2 tasks done
mirjam-ji opened this issue Nov 28, 2024 · 1 comment
Open
2 tasks done

error in rule build_natura_raster #1214

mirjam-ji opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mirjam-ji
Copy link

Checklist

  • 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.

I do receive an error in rule build_natura_raster. I think the problem is in th inputs from data/landcover but I don't know how to fix it. ## Describe the Bug

Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.

Error Message

[Thu Nov 28 13:17:50 2024]
rule build_natura_raster:
input: data/landcover, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc
output: resources/PL_2050_with_nuclear/natura.tiff
log: logs/PL_2050_with_nuclear/build_natura_raster.log
jobid: 8
benchmark: benchmarks/PL_2050_with_nuclear/build_natura_raster
reason: Missing output files: resources/PL_2050_with_nuclear/natura.tiff; Input files updated by another job: cutouts/cutout-2013-era5.nc
resources: tmpdir=/tmp

/home/mirjam-ji/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pypsa/networkclustering.py:16: UserWarning: The namespace pypsa.networkclustering is deprecated and will be removed in PyPSA v0.24. Please use pypsa.clustering.spatial instead.
warnings.warn(
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 1/5: Determine cutout boundaries
INFO:main:Stage 1/5: Determine cutout boundaries
Stage 2/5: Get transform and shape
INFO:main:Stage 2/5: Get transform and shape
Stage 3/5: Unify protected shape area.
INFO:main:Stage 3/5: Unify protected shape area.
Stage 3/5: Unify protected shape area. Step 1: Create one geodataframe with all shapes
INFO:main:Stage 3/5: Unify protected shape area. Step 1: Create one geodataframe with all shapes
[Thu Nov 28 13:25:16 2024]
Error in rule build_natura_raster:
jobid: 8
input: data/landcover, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc, cutouts/cutout-2013-era5.nc
output: resources/PL_2050_with_nuclear/natura.tiff
log: logs/PL_2050_with_nuclear/build_natura_raster.log (check log file(s) for error details)

RuleException:
CalledProcessError in file /mnt/c/Users/mirja/OneDrive/Dokumente/pypsa-earth/Snakefile, line 375:
Command 'set -euo pipefail; /home/mirjam-ji/anaconda3/envs/pypsa-earth/bin/python3.10 /mnt/c/Users/mirja/OneDrive/Dokumente/Studium/Semester7/Projektarbeit/Repositories/pypsa-earth/.snakemake/scripts/tmpntwbitiy.build_natura_raster.py' died with <Signals.SIGKILL: 9>.
File "/mnt/c/Users/mirja/OneDrive/Dokumente/pypsa-earth/Snakefile", line 375, in __rule_build_natura_raster
File "/home/mirjam-ji/anaconda3/envs/pypsa-earth/lib/python3.10/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error messageIf applicable, paste any terminal output to help illustrating your problem.
In some cases it may also be useful to share your list of installed packages: conda list.

<paste here>
@mirjam-ji mirjam-ji added the bug Something isn't working label Nov 28, 2024
@ekatef
Copy link
Member

ekatef commented Nov 29, 2024

Hello @mirjam-ji, a likely reason is lack of RAM: there is an indication on Signals.SIGKILL: 9 in the traceback you shared

Note please that a pre-compiled natura.tiff raster exists. To get a feeling on how all the pieces work together, I'd recommend to go trough the Short Tutorial, and Model Customisation in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants