FAQ¶
Common issues when running PyPSA-Earth, especially on a first workflow run. For general tooling tips, see also Software Hints.
Cutout download failed (retrieve_cutout)¶
Symptoms¶
- Snakemake stops at the
retrieve_cutoutrule. - The log mentions a timeout, connection reset, SSL error, or incomplete download.
- The expected cutout file is missing under
cutouts/.
On a first run this step downloads a pre-built ERA5 weather cutout (often 15–25 GB, depending on region). A slow or unstable connection can interrupt the download.
Where the file should end up¶
The path depends on your config:
| Setting | Expected cutout path (default name) |
|---|---|
run.shared_cutouts: true |
cutouts/cutout-2013-era5.nc |
run.shared_cutouts: false |
cutouts/<run.name>/cutout-2013-era5.nc |
For the Kazakhstan use case (run.name: "KZ", shared_cutouts: false), the file must be:
Check the log for the exact path:
What to do¶
Download the cutout manually and place it where Snakemake expects it:
- Find your bundle in
configs/bundle_config.yaml. Search for your country code undercountries:in thecutoutsbundles. For Kazakhstan, the bundle isbundle_cutouts_northeurasia. - Download the archive from the URL listed under that bundle's
urls:(for examplegdriveorzenodo). - Unzip at the project root (the folder that contains
Snakefile). The archive createscutouts/cutout-2013-era5.nc. -
Move the file if your run uses a per-country cutout folder (
shared_cutouts: false):Replace
KZwith yourrun.nameif different. -
Turn off automatic cutout retrieval so Snakemake does not try to download again. Add to your config file (for example
config.KZ.yaml): -
Re-run the workflow:
If the download was interrupted but no partial file remains, you can also simply retry the Snakemake run. A stable connection often succeeds on a second attempt.
Note
Do not set both retrieve_cutout: true and build_cutout: true while a cutout file already exists since Snakemake will refuse to overwrite it. After a successful manual download, keep retrieve_cutout: false.
Other data download failed (retrieve_databundle_light)¶
If Snakemake fails while downloading non-cutout files (demand, OSM helpers, costs, etc.), try the databundle CLI from the project root:
It lists missing files, shows download links, and can retry the download. See also Basic Setup.
This helper applies to retrieve_databundle_light only — it does not download weather cutouts. Use the section above for cutout problems.