-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Homebrew formula has linkage issue on Apple silicon setup for python application with selenium as dependency #17275
Comments
This is provided by Pip and not Homebrew. You'll need to figure out with them why it's got this invalid linkage.
@arpitchaudhary For future reference: you're going to need to supply something here. Feel free to redact parts but not providing all of it, particularly when you also have |
Yes. Your command for installing
You probably want to read https://docs.brew.sh/Python-for-Formula-Authors. |
This makes sense for homebrew core, but for external taps, it would be nice to be able to avoid the formula being broken when using pypi wheels. If the binary runs on the user machine, does it matter if an optional linkage that isn't used is present? Especially as in this case the linkage that homebrew complains about isn't present in the arm64 slice that is actually being used. It's also surprising that |
If it's in a slice that's never intended to be used you can call |
It should still be a warning but this is why it's not an error, yeh.
Does it? This would be a different issue, if you can reproduce please open that. |
brew doctor
outputWhat were you trying to do (and why)?
I was trying to install a python package with dependency on selenium. I saw linkage issues that also shows up when trying to update the formula leading to linkage not being created and needing to reinstall or link manually through link command.
What happened (include all command output)?
Installing a formula which reproduces the issue. Formula code added to reproductions steps:
Linking failed:
What did you expect to happen?
Brew install to succeed with all linkage correctly. Brew tries to check link with liblzma.5.dylib at location where it is installed on intel machines but I have an apple silicon Mac.
Step-by-step reproduction instructions (by running
brew
commands)As seen in otool output /usr/local/opt/xz/lib/liblzma.5.dylib should have needed only for x86 platform.
Demo Brew formula to reproduce:
The text was updated successfully, but these errors were encountered: