I am trying to replicate the tutorial and getting an error. Could you help on this?
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job count min threads max threads
------------------------ ------- ------------- -------------
add_electricity 1 1 1
add_extra_components 1 1 1
base_network 1 1 1
build_bus_regions 1 1 1
build_load_data 1 1 1
build_powerplants 1 1 1
build_renewable_profiles 4 1 1
build_ship_raster 1 1 1
cluster_network 1 1 1
prepare_network 1 1 1
simplify_network 1 1 1
solve_network 1 1 1
total 15 1 1
Select jobs to execute...
[Sat Feb 11 20:20:05 2023]
rule base_network:
input: data/entsoegridkit/buses.csv, data/entsoegridkit/lines.csv, data/entsoegridkit/links.csv, data/entsoegridkit/converters.csv, data/entsoegridkit/transformers.csv, data/parameter_corrections.yaml, data/links_p_nom.csv, data/links_tyndp.csv, resources/country_shapes.geojson, resources/offshore_shapes.geojson, resources/europe_shape.geojson
output: networks/
base.nc log: logs/base_network.log
jobid: 7
benchmark: benchmarks/base_network
reason: Missing output files: networks/
base.nc resources: tmpdir=/tmp, mem_mb=1500, mem_mib=1431
INFO:__main__:Removing buses with voltages Float64Index([132.0, 500.0, 750.0], dtype='float64')
INFO:__main__:TYNDP links already in the dataset (skipping): Italy-Montenegro, NordLink, COBRA cable, Anglo-Scottish -1, ALEGrO, North Sea Link, ElecLink, Estlink 1
INFO:__main__:Adding the following TYNDP links: Biscay Gulf, Italy-France, IFA2, Thames Estuary Cluster (NEMO-Link), HVDC SuedOstLink, HVDC Line A-North, France-Alderney-Britain, Viking DKW-GB, Greenconnector, Hansa PowerBridge I, NorthConnect, HVDC SuedLink, AQUIND Interconnector, HVDC Ultranet, Gridlink, NeuConnect, NordBalt, Greenlink, Celtic Interconnector
/home/hm_a_park/pypsa-eur/.snakemake/scripts/
tmpsose2nxm.base_network.py:720: FutureWarning: Argument `closed` is deprecated in favor of `inclusive`.
n.set_snapshots(pd.date_range(freq="h", **config["snapshots"]))
INFO:__main__:Removing 60 unconnected network components with less than 4 buses. In total 93 buses.
WARNING:__main__:31 buses are not in any country or offshore shape, 21 have been assigned from the tag of the entsoe map, the rest from the next bus in terms of pathlength.
INFO:__main__:Replacing B2B converter `6342` together with bus `5544` and line `14746` by an HVDC tie-line LT-PL
INFO:pypsa.io:Exported network
base.nc has links, transformers, buses, lines
[Sat Feb 11 20:20:20 2023]
Finished job 7.
1 of 15 steps (7%) done
Select jobs to execute...
[Sat Feb 11 20:20:20 2023]
rule build_powerplants:
input: networks/
base.nc, data/custom_powerplants.csv
output: resources/powerplants.csv
log: logs/build_powerplants.log
jobid: 21
reason: Input files updated by another job: networks/
base.nc resources: tmpdir=/tmp, mem_mb=5000, mem_mib=4769
INFO:pypsa.io:Imported network
base.nc has buses, lines, links, transformers
INFO:powerplantmatching.collection:Retrieving data from
https://raw.githubusercontent.com/FRESNA/powerplantmatching/v0.5.5/powerplants.csvINFO:powerplantmatching.collection:Store data at /home/hm_a_park/.local/share/powerplantmatching/data/out/default/matched_data_red.csv
WARNING:root:No powerplants known in: MK
WARNING:root:Couldn't find close bus for 398 powerplants. Removing them from the powerplants list.
[Sat Feb 11 20:20:46 2023]
Finished job 21.
2 of 15 steps (13%) done
Select jobs to execute...
[Sat Feb 11 20:20:47 2023]
rule build_bus_regions:
input: resources/country_shapes.geojson, resources/offshore_shapes.geojson, networks/
base.nc output: resources/regions_onshore.geojson, resources/regions_offshore.geojson
log: logs/build_bus_regions.log
jobid: 11
reason: Input files updated by another job: networks/
base.nc resources: tmpdir=/tmp, mem_mb=1000, mem_mib=954
INFO:pypsa.io:Imported network
base.nc has buses, lines, links, transformers
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
.......
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
[Sat Feb 11 20:20:55 2023]
Finished job 11.
3 of 15 steps (20%) done
Select jobs to execute...
[Sat Feb 11 20:20:55 2023]
rule build_renewable_profiles:
input: networks/
base.nc, data/bundle/corine/g250_clc06_V18_5.tif, resources/natura.tiff, resources/country_shapes.geojson, resources/offshore_shapes.geojson, resources/regions_onshore.geojson, cutouts/
europe-2013-sarah.nc output: resources/
profile_solar.nc log: logs/build_renewable_profile_solar.log
jobid: 18
benchmark: benchmarks/build_renewable_profiles_solar
reason: Missing output files: resources/
profile_solar.nc; Input files updated by another job: networks/
base.nc, resources/regions_onshore.geojson
wildcards: technology=solar
resources: tmpdir=/tmp, mem_mb=20000, mem_mib=19074
INFO:distributed.scheduler:State start
INFO:distributed.scheduler: Scheduler at: tcp://
127.0.0.1:46175INFO:distributed.scheduler: dashboard at:
127.0.0.1:8787INFO:distributed.nanny: Start Nanny at: 'tcp://
127.0.0.1:34141'
2023-02-11 20:21:02,070 - distributed.diskutils - INFO - Found stale lock file and directory '/tmp/dask-worker-space/worker-4cv85fec', purging
INFO:distributed.scheduler:Register worker <WorkerState 'tcp://
127.0.0.1:33645', name: 0, status: init, memory: 0, processing: 0>
INFO:distributed.scheduler:Starting worker compute stream, tcp://
127.0.0.1:33645INFO:distributed.core:Starting established connection to tcp://
127.0.0.1:55480INFO:distributed.scheduler:Receive client connection: Client-9a95f67b-aa49-11ed-a9dd-42010a800002
INFO:distributed.core:Starting established connection to tcp://
127.0.0.1:55494INFO:__main__:Calculate landuse availabilities...
INFO:__main__:Completed availability calculation (466.07s)
[Sat Feb 11 20:29:01 2023]
Error in rule build_renewable_profiles:
jobid: 18
input: networks/
base.nc, data/bundle/corine/g250_clc06_V18_5.tif, resources/natura.tiff, resources/country_shapes.geojson, resources/offshore_shapes.geojson, resources/regions_onshore.geojson, cutouts/
europe-2013-sarah.nc output: resources/
profile_solar.nc log: logs/build_renewable_profile_solar.log (check log file(s) for error details)
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
/home/hm_a_park/mambaforge/envs/pypsa-eur/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Complete log: .snakemake/log/2023-02-11T202003.807215.snakemake.log