[ ] I am using the current main branch or the latest release. Please indicate.
[ ] I am running on an up-to-date pypsa-africa environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
HTTP error in rule prepare_ports (Error 403: Forbidden)
Error Message
Traceback (most recent call last):
File "/mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpd2zhdvtl.prepare_ports.py", line 47, in <module>
df = download_ports().copy()
File "/mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpd2zhdvtl.prepare_ports.py", line 28, in download_ports
wpi_csv = pd.read_csv(fn, index_col=0, storage_options=storage_options)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 948, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 611, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1448, in __init__
self._engine = self._make_engine(f, self.engine)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/parsers/readers.py", line 1705, in _make_engine
self.handles = get_handle(
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/common.py", line 718, in get_handle
ioargs = _get_filepath_or_buffer(
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/common.py", line 372, in _get_filepath_or_buffer
with urlopen(req_info) as req:
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/site-packages/pandas/io/common.py", line 274, in urlopen
return urllib.request.urlopen(*args, **kwargs)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
[Mon Jan 29 14:18:22 2024]
INFO:snakemake.logging:[Mon Jan 29 14:18:22 2024]
Error in rule prepare_ports:
jobid: 23
output: data/ports.csv
ERROR:snakemake.logging:Error in rule prepare_ports:
jobid: 23
output: data/ports.csv
RuleException:
CalledProcessError in file /mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/Snakefile, line 107:
Command 'set -euo pipefail; /home/aca39878/anaconda3/envs/pypsa-earth/bin/python3.10 /mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpd2zhdvtl.prepare_ports.py' returned non-zero exit status 1.
File "/mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/Snakefile", line 107, in __rule_prepare_ports
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/concurrent/futures/thread.py", line 58, in run
ERROR:snakemake.logging:RuleException:
CalledProcessError in file /mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/Snakefile, line 107:
Command 'set -euo pipefail; /home/aca39878/anaconda3/envs/pypsa-earth/bin/python3.10 /mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/.snakemake/scripts/tmpd2zhdvtl.prepare_ports.py' returned non-zero exit status 1.
File "/mnt/c/Users/aca39878/Documents/Git/Namibia/pypsa-earth-sec/Snakefile", line 107, in __rule_prepare_ports
File "/home/aca39878/anaconda3/envs/pypsa-earth/lib/python3.10/concurrent/futures/thread.py", line 58, in run
Checklist
main
branch or the latest release. Please indicate.pypsa-africa
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
HTTP error in rule prepare_ports (Error 403: Forbidden)
Error Message