-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
qemu
and/or colima
install fails (Python 3.12 dependency)
#165793
Comments
This is more of upstream problem due to GitHub pre-installing a conflicting Python within Homebrew's default directory.
That's because There are a bunch of CI examples on working around this that you can pick from above links. Homebrew does https://github.com/Homebrew/brew/blob/master/.github/workflows/tests.yml#L353-L355 run: |
# Workaround GitHub Actions Python issues
brew unlink python && brew link --overwrite python Meson does https://github.com/mesonbuild/meson/blob/master/.github/workflows/macos.yml#L87-L92 # github actions overwrites brew's python. Force it to reassert itself, by running in a separate step.
- name: unbreak python in github actions
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3 And there are probably a bunch of other ways. |
Thank you for this suggestion. I got this:
to work for MacOS on Python 3.8, 3.9 and 3.10, but subsequent steps in Python 3.11 complained that python wasn't available. Looking into how to fix this now. |
I'm guessing that is due your CI workflow needing GitHub's Python. Perhaps you can try unlinking Homebrew's Python instead. |
Ok this was the winning ticket for me (where we have Python used in subsequent steps:
Cobbled together from other threads, esp https://github.com/casbin-rs/sqlx-adapter/pull/87/files and actions/runner-images#11545 |
Workaroud for Homebrew's python link error See: Homebrew/homebrew-core#165793 (comment)
Workaroud for Homebrew's python link error See: Homebrew/homebrew-core#165793 (comment)
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputThe text was updated successfully, but these errors were encountered: