-
Notifications
You must be signed in to change notification settings - Fork 551
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 recently broken (no _bz2 module) on macOS 13 #682
Comments
Transferring to setup-python as they are responsible for tool cached python |
I wanted to provide an additional data point to help with the investigation. It seems that it is a regression in the latest patch version of 3.7 installed by the Mac agents. We recognized that our builds last succeeded when python 3.7.16 was installed. Because we had only major.minor pinned, the Mac agents installed python 3.7.17. And that was when the builds started to fail. As a temporary workaround, we have pinned the Python version to 3.7.16 to make the builds work again. So you can look into how Python 3.7.17 was built. My hunch would be that the latest python install script does not have libbz2-dev installed prior to building it. |
Hello @gsnedders! Thank you for reporting this! |
Please refer to this issue post: actions/setup-python#682
…etup-python#682" This reverts commit f6bca6e.
…tly an issue with later patch versions on MacOS, preventing our pipeline to complete successfully. See actions/setup-python#682 Signed-off-by: Holger Frydrych <holger.frydrych@tngtech.com>
The GitHub Actions CI for macOS with Python 3.7 leads to a `_bz2` missing module error (see actions/setup-python#682). Fix by pinning this Python to the prior version (eg see opendilab/DI-engine@f2881fe).
…2.1 (#678) * feature(nyz): fix py37 macos ci bug and update default pytorch from 1.7.1 to 1.12.1 - actions/setup-python#682 * fix(nyz): fix py3.7.16 version bug (ut skip)
The GitHub Actions CI for macOS with Python 3.7 leads to a `_bz2` missing module error (see actions/setup-python#682). Fix by pinning this Python to the prior version (eg see opendilab/DI-engine@f2881fe). Restrict Python 3.7.16 only for macOS since it is not available on the Windows runner.
The GitHub Actions CI for macOS with Python 3.7 leads to a `_bz2` missing module error (see actions/setup-python#682). Fix by pinning this Python to the prior version (eg see opendilab/DI-engine@f2881fe). Restrict Python 3.7.16 only for macOS since it is not available on the Windows runner.
@dmitry-shibanov Any idea when the hosted runners might be updated and available? |
that recently filed to python-setup action repo. actions/setup-python#682
Hello @seanlaw. I think it should be uploaded at the end of this week. |
See actions/setup-python#682 The macos test is currently failing due to a GitHub Action issue Also bump python version of Windows test
Due to this issue: actions/setup-python#682 Python 3.7 does not work on Mac OS. Instead we manually seed the matrix with the right Python version for each OS.
@dmitry-shibanov I would also like to confirm that this worked for me as well. |
Due to this issue: actions/setup-python#682 Python 3.7 does not work on Mac OS. Instead we store a point release in an environment variable and install that.
@dmitry-shibanov It seems like the hosted runners have been updated. Tests are passing without the added snippet. |
Hello everyone. Sorry for the late response. The python 3.7.17 was updated in the hosted toolcache directory. For now I'm going to close the issue. |
Description
Recently (i.e., since last week), we've started seeing a number of Python 3.7 tasks failing with:
Presumably something in the new image caused CPython to fail to compile the _bz2 module?
Platforms affected
Runner images affected
Image version and build link
20230611.2
https://dev.azure.com/web-platform-tests/wpt/_build/results?buildId=102338&view=logs&jobId=cd4b0752-91ac-5ee3-1416-93dd445ec171&j=5eb1b5a9-6d44-5065-06d8-b95593136516&t=2324b04f-e597-4527-9bcd-b3f55a7684b6
Is it regression?
20230524.1
Expected behavior
The Python 3.7
_bz2
module to be installed.Actual behavior
The Python 3.7
_bz2
module is not installed.Repro steps
python3.7 -c 'import bz2'
The text was updated successfully, but these errors were encountered: