-
Notifications
You must be signed in to change notification settings - Fork 552
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
CPython < 3.11 x64 failing on m1 runners? #960
Comments
Hello @masklinn, Thank you for creating this issue and we will look into it :) |
Hey @aparnajyothi-y thanks. Also to be clear as re-reading I think I’ve been confusing, by “3.10 specifically” I meant that as the example I tested out but would assume the issue can occur with 3.9 (and 3.8 but that’s going away) as well. Basically with the non-universal cpython binaries. I updated the post. |
Very similar issue seen with Python 3.7 on macos-13 (x86).
So, the binaries refer to dependencies of Python by absolute paths, but the dependencies are not installed. Potential workaround is |
My issue does not happen on Python 3.6 on macos-13. Indeed:
it records system zlib instead of homebrew zlib. Sounds like Python 3.7 was linked against homebrew zlib by accident. Or in general: looks like there wasn't enough build isolation, that's causing both @masklinn's and my issue. If it's difficult to do a rebuild of Python 3.7 I guess you could patch the binaries and replace homebrew dependencies with system dependencies... but I did not check if they are ABI compatible. |
Hi @masklinn, The actions/setup-python repository does not support x64 packages for Python <3.11 version on macOS arm64 runners due to compatibility and build issues. The build process for Python versions less than 3.11 involves downloading the official Python sources from python.org and building them using the make tool on the oldest available version of macOS that was available when that Python version was released. This is done to ensure backward compatibility for those Python versions as mentioned in this python-versions documentation. |
Please read my comment. Python 3.7 is broken on |
I've opened #964 |
As Github is shutting down the macos-12 workers, I figured I'd look at running x86 python on m1.
However, while it seems to work fine with the >= 3.11 universal binary (using
arch
to force running a specific architecture) as well as passing an explicit architecture to select the correct pypy or graal, the non-universal cpython binaries seem problematic e.g. 3.10 x64 fails withHere's the workflow file I'm using: https://github.com/masklinn/ci-test/blob/main/.github/workflows/crossplatform.yml
here's the nearly successful run: https://github.com/masklinn/ci-test/actions/runs/11296863554/job/31422564472
The text was updated successfully, but these errors were encountered: