-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 3.7 environment using setup-python broken in 20200705.1 #1202
Comments
@ltalirz , looks like between these image versions, Python was updated from 3.7.7 to 3.7.8. Probably, it could be the reason for errors.
|
Thanks, I've just tried this but I'm afraid this is not supported on the new image:
|
Oh, sorry, it is my mistake, you should specify version
|
No problem - I confirm that rolling back to python 3.7.7 resolves the issue So perhaps the reason I am the only one noticing this is that we were using an outdated version of the setup-python github action? |
No, it won't resolve issue. The main feature of V2 is that it can install previous versions on-flight. Looks like your code works correctly with Python 3.7.7 but fails with Python 3.7.8. |
If my suspicion is correct, then simply calling "pip uninstall pyyaml" should fail. This is what I get when I just do this: Edit: Ah, I need to make it non-interactive |
Ok - I was wrong. Uninstalling pyyaml works just fine: https://github.com/ltalirz/aiida-core/runs/850675461?check_suite_focus=true#step:5:52 In this case, I suspect the issue must somehow be related to our dependencies. Thanks for your help! |
Just in case others run into this: The issue is with the installation of the specific pyyaml version we're using (5.1.2): For some reason, this fails on the python 3.7.8 environment (but worked on the previous python 3.7.7 environment)' Edit: The error only occurs, when uninstalling pyyaml 5.3.1 and installing pyyaml 5.1.2 in the same step.
works fine as well, see https://github.com/ltalirz/aiida-core/runs/858336584?check_suite_focus=true |
PyYAML causes issues only for tests running on python 3.7. A suggested change to fix this issue is fixing the python 3.7 version to the 3.7.7 minor release since test start to fail only for 3.7.8 see: actions/runner-images#1202
* Fix minimal aiida-core version to 1.3.0 Minimal aiida-core version has to be fixed due to the recently introduced change in the aiida-core package moving the resources validation to the scheduler plugin. see aiidateam/aiida-core#4192 * Fix python version to 3.7.7 in tests PyYAML causes issues only for tests running on python 3.7. A suggested change to fix this issue is fixing the python 3.7 version to the 3.7.7 minor release since test start to fail only for 3.7.8 see: actions/runner-images#1202
Just mentioning that the issue with installing pyyaml 5.1.2 over an existing installation of pyyaml 5.3.1 does not seem to occur on the official python 3.7.8 docker containers. I.e. the following runs fine:
Which may indicate that this is a specific issue of the virtual environment 20200705.1 ? |
Hi @ltalirz , looks like pyyaml 5.3.1 is installed during aws-sam-cli installation and it is not working properly, we are investigate how to resolve the issue. |
The same also here - https://github.com/PyTorchLightning/pytorch-lightning/runs/889998403 EDIT: as #1202 (comment) corrected, only one env is failing |
@Borda , Only "pytest (ubuntu-18.04, 3.7, minimal)" job fails with the same issue in your build. All other jobs failed differently. |
…se bug (#222) * add various improvements to nifti conversion * fix transpose error in high-level tiff api * refactor and clean up convert-nifti code further * format * refactor wkw constants * allow to flip nifti data again with --flip_axes * refactor bounding box parsing * format * format * try to fix CI by downgrading pyyaml see: actions/runner-images#1202 * remove pyyaml dependency * fix linting * fix transpose again * format
Is there any workaround for this? I have |
Okay, in my case the error line read:
I had this in
Changing it to:
Solved my problem. Seems that one of the installed packages required |
Well, is it general pip issue or just this CI, if so we do not force users to install a newer version just because if CI tests, right? |
@Borda @DataGreed we fixed the issue with python 3.7 a few days ago and started image deployment today. It usually takes 3-4 days to propagate to all the environments. Thank you for your patience. |
@miketimofeev большое спасибо :) |
Is this new normal?
|
@zgoda could you please provide the command, which produced such output? |
It's a log from one of my workflows running on Python 3.7 runtime, can't recall exactly which one but https://github.com/zgoda/bip/runs/929067312 has the same output. Basically Python 3.7 runtime has a lot of either outdated or pre-release packages installed, like:
Flask 1.0.4 and python-dateutil 2.8.0 are installed with aws-sam-cli but anyway they should not be in a runtime used to run tests. |
@zgoda yeah, this is the same issue with aws-sam packages. It will be fixed on the next week's deployment. |
@ltalirz we've completed image deployment. Could you check everything is fine now, please? |
Thanks @miketimofeev - looks to me like the issue is resolved! |
* Fix minimal aiida-core version to 1.3.0 Minimal aiida-core version has to be fixed due to the recently introduced change in the aiida-core package moving the resources validation to the scheduler plugin. see aiidateam/aiida-core#4192 * Fix python version to 3.7.7 in tests PyYAML causes issues only for tests running on python 3.7. A suggested change to fix this issue is fixing the python 3.7 version to the 3.7.7 minor release since test start to fail only for 3.7.8 see: actions/runner-images#1202
Describe the bug
Builds using the setup-python Github Action end up with "inconsistent" python environment, only for runners with virtual environment version 20200705.1 (20200625.0 was/is working fine).
Area for Triage:
Question, Bug, or Feature?:
Bug
Virtual environments affected
(only Ubuntu 18.04 tested)
Expected behavior
Uninstalling pyyaml package should work without errors.
Actual behavior
Uninstalling the pyyaml package results in
Note: This has been observed only when requesting a python environment (3.7) that was not yet installed on the runner.
When requesting python 3.8 using setup-python, this issue does not occur (in this case, pip considers pyyaml not to be installed).
Failing run with 20200705.1 : https://github.com/aiidateam/aiida-core/pull/4208/checks?check_run_id=850446697#step:5:495
Successful run with 20200625.0: https://github.com/sphuber/aiida_core/runs/850405963#step:5:452
Successful run with 20200705.1 (after switching from python3.7 to python3.8 env): https://github.com/aiidateam/aiida-core/pull/4229/checks?check_run_id=850252814#step:5:452
P.S. I'm aware that I'm not providing a "minimum working example" here - I'm currently pressed for time.
I hope this can still help pinpoint the issue in case others experience the same (and I can add more information later if needed).
The text was updated successfully, but these errors were encountered: