pypsa-meets-earth / pypsa-earth-sec

GNU General Public License v3.0
18 stars 16 forks source link

TypeError in rule prepare_gas_network #320

Closed doneachh closed 3 weeks ago

doneachh commented 1 month ago

Checklist

Describe the Bug

an only concatenate str (not "list") to str in line 933

Error Message

Traceback (most recent call last):
  File "/mnt/l/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpfsskxwht.prepare_gas_network.py", line 937, in <module>
    "Countries:"
TypeError: can only concatenate str (not "list") to str
[Thu May 30 16:35:16 2024]
Error in rule prepare_gas_network:
    jobid: 25
    input: /mnt/l/Git/Namibia/pypsa-earth-sec/pypsa-earth/resources/bus_regions/regions_onshore_elec_s_10.geojson
    output: resources/gas_networks/gas_network_elec_s_10.csv, resources/gas_networks/existing_gas_pipelines__10.png, resources/gas_networks/clustered_gas_pipelines__10.png

RuleException:
CalledProcessError in file /mnt/l/Git/Namibia/pypsa-earth-sec/Snakefile, line 142:
Command 'set -euo pipefail;  /home/aca39878/anaconda3/envs/pypsa-earth/bin/python3.10 /mnt/l/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpfsskxwht.prepare_gas_network.py' returned non-zero exit status 1.
  File "/mnt/l/Git/Namibia/pypsa-earth-sec/Snakefile", line 142, in __rule_prepare_gas_network
  File "/home/aca39878/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 message
Complete log: pypsa-earth/.snakemake/log/2024-05-30T163104.948508.snakemake.log