You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 3.7 recently broken (no _bz2 module) on macOS 13 #682
Recently (i.e., since last week), we've started seeing a number of Python 3.7 tasks failing with:
../manifest/download.py:2: in <module>
import bz2
/Users/runner/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/bz2.py:19: in <module>
from _bz2 import BZ2Compressor, BZ2Decompressor
E ModuleNotFoundError: No module named '_bz2'
Presumably something in the new image caused CPython to fail to compile the _bz2 module?
Reacted by jesko, Burton DeWilde, Ryan Ly, Till Hoffmann, Saransh Chopra, tianwei, Alexander Clausen, Adrien Barbaresi, Alex Waygood, Geoffroy Jamgotchian and 6 more
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 everyone. We uploaded a new version of python 3.7.17 with the fix. Could you please try to use this snippet to confirm that it works as expected?
Activity
mikhailkoliada commentedon Jun 13, 2023
Transferring to setup-python as they are responsible for tool cached python
CC @dmitry-shibanov @MaksimZhukov
jcscottiii commentedon Jun 14, 2023
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.
MaksimZhukov commentedon Jun 15, 2023
Hello @gsnedders! Thank you for reporting this!
We will investigate the issue!
https://github.com/actions/setup-python/issues/682
Skip testing Python 3.7 due to a known issue
Pin python 3.7.16 to work around actions/setup-python#682.
Pin python 3.7.9 to work around actions/setup-python#682.
Exclude python 3.7.17 to work around actions/setup-python#682.
Fix python version in Actions to 3.7.16, related to actions/setup-pyt…
Revert "Fix python version in Actions to 3.7.16, related to actions/s…
Pin python 3.7 version in CI
Pin Python 3.7 version in CI
28 remaining items
feature(nyz): fix py37 macos ci bug and update default pytorch from 1…
Pin CI Python 3.7 to 3.7.16 as workaround
feature(nyz): fix py37 macos ci bug and update default pytorch to 1.1…
Pin CI Python 3.7 to 3.7.16 for macOS as workaround
Pin CI Python 3.7 to 3.7.16 for macOS as workaround
seanlaw commentedon Jun 26, 2023
@dmitry-shibanov Any idea when the hosted runners might be updated and available?
specify python 3.7 patch version to avoid actions-runner issue
dmitry-shibanov commentedon Jun 27, 2023
Hello @seanlaw. I think it should be uploaded at the end of this week.
Disable macos test in GitHub action
Pin to Python 3.7.16 on Mac OS due to GitHub Actions breakage.
seanlaw commentedon Jun 29, 2023
@dmitry-shibanov I would also like to confirm that this worked for me as well.
Pin to Python 3.7.16 on Mac OS due to GitHub Actions breakage.
macanudo527 commentedon Jul 4, 2023
@dmitry-shibanov It seems like the hosted runners have been updated. Tests are passing without the added snippet.
dmitry-shibanov commentedon Jul 10, 2023
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.