Skip to content

WDPA download failing halfway #2138

@WouterKoksNL

Description

@WouterKoksNL

Version Checks (indicate both or one)

  • I have confirmed this bug exists on the lastest release of PyPSA-Eur.

  • I have confirmed this bug exists on the current master branch of PyPSA-Eur.

Issue Description

Hi, I was trying to run the default pypsa-eur config (the electricity-only tutorial works fine).

The WDPA download link from webarchive downloads halfway and then quits. Its not a storage space issue.
snakemake log:
"
WorkflowError:
Failed to retrieve input from storage.
WorkflowError:
Failed to retrieve storage object from https://web.archive.org/web/20250715071823if_/https%3A//d1gam3xoknrgr2.cloudfront.net/current/WDPA_Jul2025_Public_shp.zip
ProtocolError: ('Connection broken: IncompleteRead(2147483648 bytes read, 1913767626 more expected)', IncompleteRead(2147483648 bytes read, 1913767626 more expected))
"

Replacing the download link in data/versions.csv with the download link directly provided by protectedplanet.net (https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_Apr2026_Public_shp.zip) solved the issue. I see the note in versions.csv that you cannot link directly to this page for legal reasons, but posting this here to help out others that have the same problem.

Reproducible Example

snakemake -call resources/networks/base_s_all_elec.nc --configfile config/config.default.yaml

Expected Behavior

complete download

Installed Versions

pixi.lock file too long to post. but nothing special.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions