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

Python version < 3.10 #169

Open
EmiFej opened this issue Apr 6, 2022 · 3 comments
Open

Python version < 3.10 #169

EmiFej opened this issue Apr 6, 2022 · 3 comments

Comments

@EmiFej
Copy link
Contributor

EmiFej commented Apr 6, 2022

When converting model results to the IAMC format, the openENTRANCE iso_mapping did not convert ISO codes into full country names. Example: "GR" did not translate into "Greece" but rather it gave an error

File "/Users/emirfejzic/opt/miniconda3/envs/IAMC/lib/python3.10/site-packages/pandas/core/indexes/multi.py", line 418, in _verify_integrity
    raise ValueError(
ValueError: Level values must be unique: [nan, nan, nan, nan, nan,....] on level 2

Installing Python 3.9 in another environment solved this issue.

@danielhuppmann
Copy link
Member

Thanks for reporting this issue, @EmiFej - not that Python 3.10 is not (yet) listed as a supported Python version in the Readme. Will investigate and get back to you...

@willu47
Copy link

willu47 commented Apr 7, 2022

Suggest adding constraint on Python version in the config.yml or requirements.txt to avoid this.

@danielhuppmann
Copy link
Member

FWIW, with release 1.4, pyam supports Python 3.10 (see https://github.com/IAMconsortium/pyam/releases/tag/v1.4.0).
PRs to make this repository or add explicit version limitations very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants