-
-
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
python@3.13 fails post-install on x86, cannot load pyexpat, missing dep on expat #206778
Comments
I was just getting my ducks in a row to open this exact same issue. Doing I see a lot of work around a CVE in libexpat: Expat is also mentioned in the what's new: Adding expat as a new dependency certainly quiets the post install failing, but is it the correct change? Can someone suss out if expat is actaully no longer vendored in Python or whether there is some change that was made where the vendored expat is not being detected? Either way: |
As far as I know macOS ships with expat so that seems like a weird dependency |
There was also a macOS update from 15.2 to 15.3 on 27 Jan 2025. Could that version have changed something? I don't see anything that stands out in the release notes: |
I encountered the same problem while upgrading
The important part seems to be the following:
|
similar fail, but no mention of expat (I later installed brew's expat and re-ran and all was fine):
For completeness,
|
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
On a clean x86 system (Mac Mini 2021) with Sequoia 15.3, I had just uninstalled and reinstalled brew from scratch (removed all traces with
sudo rm -rf /usr/local
).I ran
brew install ansible
, which pulls inpython@3.13
.What happened (include all command output)?
The formula never post-installed properly.
Investigating in
~/Library/Logs/Homebrew/...
showed that the bundled pyexpat (/usr/local/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/lib-dynload/pyexpat.cpython-313-darwin.so
) always failed to load.I tried to run the import at the
python3
prompt (from pyexpat import *
), and got the same result as the post-install.What did you expect to happen?
Install
ansible
without issues.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: