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
Description:
Python 3.8 and 3.9 on macOS no longer work, and actions complains about them not being a real version.
Action version:
Latest
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
Python 3.8 - Python 3.9. It might be all versions <Python 3.10, but I haven't tested that.
Repro steps:
See this run from yesterday, vs this run from this morning on the same commit.
Expected behavior:
Python 3.8 and 3.9 should install on macOS
Actual behavior:
The following is logged to actions:
Version 3.8 was not found in the local cache
Error: Version 3.8 with arch arm64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
This is a duplicate, macos-latest now uses M1 runners (macos-14-arm64) and 3.9 and earlier aren't available there: #696 (comment)
To fix, you can use one of the options at python/peps#3763, or stick to macos-12 or macos-13 (but you get some nice speedups using M1 where available).
Reacted by Milton Eduardo Sosa, Thomas Boyer-Chammard, An Long, David Young and Anton K2
Hello @abravalheri, We have investigated the issue and we found that setup-python is successful on macos-latest. We have further more investigated by looking into your project about the issue and found that the file attribute is not found in the global scope of a module being used, which in this case is the setup.py file. The issue occurs in the context of the setup-python action when it tries to install setuptools and pip. The error is more likely to do with how the environment is configured in the action rather than the macOS version.\nWe can add a step to upgrade setuptools before the step where the error occurs to resolve the issue.\n\nname: Upgrade setuptools\nrun: pip install --upgrade setuptools\n\nwe can change the setup.py file in the repository, consider replacing it with pyproject.toml and setup.cfg. The pyproject.toml file is a newer, more robust method of managing Python package builds and dependencies.\nPlease raise new issue if the issue still exists as this issue is opened for Python 3.8 and 3.9 support on macOS.
Hi @aparnajyothi-y thank you for investigating, but this explanation does not make much sense for me.
You suggested installing the updated version of setuptools before the step that is failing... The problem with this suggestion that the problem that is failing is the installation of Python itself... So, how should I update stuff when Python is not installed yet? The step that is failing is very much the first one, it should not depend on the code inside the repository, right?
The second suggestion about replacing setup.py with pyproject.toml, also does not work and actually contains a bit of misleading and innacurate information:
pyproject.toml is by no means more robust, it is just a different configuration format.
setup.py, setup.cfg and pyproject.toml are not mutually exclusive, they can all exist at the same time and do different things - that is exactly what happens in the repository with problems: we have all of these files at the same time.
Please note that the problem is happening for the repository of setuptools itself. Maybe that is related?
Activity
hugovk commentedon Apr 23, 2024
This is a duplicate,
macos-latestnow uses M1 runners (macos-14-arm64) and 3.9 and earlier aren't available there: #696 (comment)To fix, you can use one of the options at python/peps#3763, or stick to
macos-12ormacos-13(but you get some nice speedups using M1 where available).snorkman88 commentedon Apr 23, 2024
I am facing the same issues when running GHA I get:
ZeroIntensity commentedon Apr 23, 2024
Odd, that issue is from months ago, but I only started having problems this morning.
hugovk commentedon Apr 23, 2024
Yeah,
macos-latestused to point tomacos-12but now points tomacos-14-arm64.You can check the top of your CI logs to see which image was used yesterday and today.
Update testing.yml
Deprecate cov_to_corr_matrix (#269)
Paebbels commentedon Apr 24, 2024
The list of offered Python versions is here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
It shows no Python 3.8 and Python 3.9 for macOS (Python for ARM64 platform).
v-HarithaVattikuti commentedon Apr 24, 2024
Hello @ZeroIntensity
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
Switch to macos-12 per actions/setup-python#850
Freeze macos image to macos-12
fix: ci for mac os latest now points to arm64 based image and doesn't…
Fixes issue of mac-os environment not supporting python 3.9 issue as …
13 remaining items
abravalheri commentedon May 7, 2024
Hi @aparnajyothi-y thank you for investigating, but this explanation does not make much sense for me.
You suggested installing the updated version of setuptools before the step that is failing... The problem with this suggestion that the problem that is failing is the installation of Python itself... So, how should I update stuff when Python is not installed yet? The step that is failing is very much the first one, it should not depend on the code inside the repository, right?
The second suggestion about replacing
setup.pywithpyproject.toml, also does not work and actually contains a bit of misleading and innacurate information:pyproject.tomlis by no means more robust, it is just a different configuration format.setup.py,setup.cfgandpyproject.tomlare not mutually exclusive, they can all exist at the same time and do different things - that is exactly what happens in the repository with problems: we have all of these files at the same time.Please note that the problem is happening for the repository of setuptools itself. Maybe that is related?
ci: skip python 3.7 on macos-latest
ci: skip python 3.7 on macos-latest
ci: work around GHA macos-latest mess
fix: okascore C api usage (#19)
Drop `3.9` support (#360)
ci: skip python 3.7 on macos-latest
Pin MacOS version in GH actions (#17183)
Pin MacOS version in GH actions (#17183)
Pin MacOS version in GH actions (#17183)
Fixes issue of mac-os environment not supporting python 3.9 issue as …