-
Notifications
You must be signed in to change notification settings - Fork 553
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.8 and 3.9 not found on macOS #850
Comments
This is a duplicate, To fix, you can use one of the options at python/peps#3763, or stick to |
I am facing the same issues when running GHA I get:
|
Odd, that issue is from months ago, but I only started having problems this morning. |
Yeah, You can check the top of your CI logs to see which image was used yesterday and today. |
* deprecate cov_to_corr_matrix * change import for deprecated * Update setup.py fix setup.py * Update requirements.txt add mne dependency to requirement file for doc only * Update Dockerfile remove protobuf install in Dockerfile (now by default in setup.py) * Update light_benchmark.py flake8 # noqa: E231 * Update plot_financial_data.py flake8 * Update light_benchmark.yml trigger benchmark on change to setup.py * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update testing.yml as per actions/setup-python#850 (comment) --------- Co-authored-by: gcattan <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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). |
Hello @ZeroIntensity |
* test: stick to macOS-13 to avoid python 3.7 missing for m1 chip; actions/setup-python#850
…tion term in Stouffers (#121) * Support precomputed correlation matrix for calculating variance inflation term in Stouffers * Update test_results.py * Switch to macos-12 per actions/setup-python#850 * Update test_results.py
Python 3.6-3.9 is no longer supported on `macos-latest`, which was recently updated to `macos-14-arm64` (see actions/setup-python#850 (comment)). - Target macOS runner platforms by supported Python version - Simplify specification of Ubuntu runners by moving `ubuntu-20.04` to an `include` statement
Python 3.6-3.9 is no longer supported on `macos-latest`, which was recently updated to `macos-14-arm64` (see actions/setup-python#850 (comment)). - Target macOS runner platforms by supported Python version - Simplify specification of Ubuntu runners by moving `ubuntu-20.04` to an `include` statement
Hello @ZeroIntensity, We are supporting python 3.8 and 3.9 versions for macos arm64 now. Please test your workflows. Closing this issue for now and let us know to reopen this issue if the you are still facing the issue. 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. name: Upgrade setuptools we 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. |
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
Please note that the problem is happening for the repository of setuptools itself. Maybe that is related? |
* tests: demonstrate #18 Fix 'setup.py' to prevent building 'okascore' module if 'PURE_PYTHON' is defined. Add 'py310-pure' environment to build / run tests with that env var set. Note that the new test fails under 'py310', but passes under 'py310-pure' * fix: use 'PyFloat_AsDouble' for upcasts - We know that the second element of each 'd2fitems' *should* be a float already (we store it, after all, in an IF BTree). - The upcast in the second change is safe, and more regular. * ci: bump checkout, setup-python action versions - Use released Python 3.12 * ci: work around GHA macos-latest messes: - actions/setup-python#850 - actions/setup-python#860 --------- Co-authored-by: Peter Wilkinson <[email protected]>
Following the recent change on GitHub Actions actions/setup-python#850 our tests are currently failing #359. Previously we were following [NEP29](https://numpy.org/neps/nep-0029-deprecation_policy.html) which is why we never supported `3.8`. My suggestion is to drop `3.9` which means nothing else has to change. The alternative is to do @dstansby's [suggestion](#359 (comment)), but I think this is low-key complicated when involving our `tox` setup too. Personally, I don't think it's worth it, and we should fix the tests ASAP.
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
Fix failing MacOS tests in CI Python 3.9 is not available on the latest MacOS images actions/setup-python#850
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:
Runner type:
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:
The text was updated successfully, but these errors were encountered: