Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to retrieve resource for Emission Extractor #1140

Open
2 tasks done
GbotemiB opened this issue Oct 13, 2024 · 0 comments
Open
2 tasks done

Failed to retrieve resource for Emission Extractor #1140

GbotemiB opened this issue Oct 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GbotemiB
Copy link
Contributor

Checklist

  • I am using the current main branch or the latest release. Please indicate.
  • I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.

Describe the Bug

Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.
The workflow is falling to download resource needed for emission_extractor as the site is currently under maintenance. Here is the link https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/EDGAR/datasets/v60_GHG/CO2_excl_short-cycle_org_C/v60_GHG_CO2_excl_short-cycle_org_C_1970_2018.zip

Error Message

If applicable, paste any terminal output to help illustrating your problem.
In some cases it may also be useful to share your list of installed packages: conda list.

Failed download resource from 'https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/EDGAR/datasets/v60_GHG/CO2_excl_short-cycle_org_C/v60_GHG_CO2_excl_short-cycle_org_C_1970_2018.zip'.
ERROR:__main__:Failed download resource from 'https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/EDGAR/datasets/v60_GHG/CO2_excl_short-cycle_org_C/v60_GHG_CO2_excl_short-cycle_org_C_1970_2018.zip'.
ERROR:_helpers:An error happened in module '/Users/gbotemi/miniconda3/envs/pypsa-earth/lib/python3.10/genericpath.py', function '_check_arg_types': join() argument must be str, bytes, or os.PathLike object, not 'bool'
Traceback (most recent call last):
  File "/Users/gbotemi/Documents/code/PYPSA/docker/pypsa-earth/.snakemake/scripts/tmpso8kaj2n.prepare_network.py", line 369, in <module>
    co2limit = emission_extractor(
  File "/Users/gbotemi/Documents/code/PYPSA/docker/pypsa-earth/.snakemake/scripts/tmpso8kaj2n.prepare_network.py", line 124, in emission_extractor
    datapath = os.path.join(os.getcwd(), "data", filename)
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth/lib/python3.10/posixpath.py", line 90, in join
    genericpath._check_arg_types('join', a, *p)
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth/lib/python3.10/genericpath.py", line 152, in _check_arg_types
    raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'bool'
image
@GbotemiB GbotemiB added the bug Something isn't working label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant