-
Notifications
You must be signed in to change notification settings - Fork 32
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
Regression errors thrown in notebooks on recent/updated (Dec 2021) package environment (pyam 1.0+, possibly other packages also implicated) #39
Comments
Update: I see via issue #15 that
which throws:
I did then just jump to the last cell (where Possibly some/all of this could be resolved if there was some "known good" package environment specification (via a conda |
Sorry that I didn't add a proper environment specification at the time... Seems that the last time I updated and ran the notebooks, pyam 0.5 was the stable release. I'll try to see if I find out what the issues are with running the notebooks with a current installation. |
Thanks @danielhuppmann! FWIW: on this original issue (
with:
I have been trying (unsuccessfully!) to understand the differences between |
A long shot, but: in terms of trying to reconstruct a working package environment, if you have a current conda environment that might have worked in the past, you could try (I guess what one would really like would be a way of telling conda to install packages subject to a release date constraint, set to the date when |
So: for Separately, there were also several places where errors were thrown on a call of
throwing:
More as a guess than informed understanding, I switched to Other similar cases:
This may be a That's it for now: progress of a sort. As this issue has now sprawled from its original narrow location in the |
Thanks for your work on resolving this issue, @bmcmullin! Very glad that the extra effort with deprecation warnings when going from the hot-development phase to the first stable release was helpful... I started investigating the errors when running the notebooks with a current installation of pyam and all dependencies. In particular, I don't see an issue with reverting to the yaml.Loader, as you suggest. Also, replacing specs['run_control'] = rc in specs['run_control'] = rc.store yields a cleaner yaml file (without needing a constructor). In short, yaml.FullLoader is a security issue (because it could be used to execute code) and Python devs (rightly) tightened the standard behavior to make it more difficult to run insecure code. You have also correctly identified the renamed plotting library (relative easy to fix throughout all notebooks) and the changed behavior of |
OK @danielhuppmann - I've got everything running that I need anyway for the moment. Plots were rendering a bit on the small side in
If doing a new release it might be good to just include a conda
Best wishes and thanks again for all the effort in providing and maintaining these resources. A really great support for understanding, transparency and reuse. |
I am new here too,and even worse,I am not a English Speaker,In the help of my translate software ,I try to comment out the entire definition of |
(I'm new to ipcc scenario analysis with python/notebooks: apologies if overlooking something simple/obvious, or if opening a github issue is not the preferred way of raising this kind of question...)
I am trying to run the notebook
spm_sr15_statements.ipynb
. At:it throws:
Relevant (?) version info:
python 3.7.10
pyam 1.2.0
pyyaml 6.0
yaml 0.2.5
I've tried randomly downgrading
pyam
andpyyaml
but to no effect.As a workaround, I have just commented out the entire definition of
run_control
fromsr15_specs.yaml
. That allows everything inspm_sr15_statements.ipynb
to run. I have not checked the other notebooks that also usesr15_specs.yaml
, so there may or may not be limitations to this workaround. Any other suggestions welcome.The text was updated successfully, but these errors were encountered: