-
Notifications
You must be signed in to change notification settings - Fork 1.4k
OSError: [Errno 86] Bad CPU type in executable - downloading uc_driver on MacOS #2558
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
Comments
Related to ultrafunkamsterdam/undetected-chromedriver#1020 (comment) You need Rosetta 2 on your Mac: softwareupdate --install-rosetta |
Thank you! Also wondering if i were to create an .app and distribute it would i need to bundle Rosetta 2 with it? |
Do you mean with Pyinstaller? Not sure… it probably depends on the system. |
Yeah I currently use Pyinstaller to package a windows app and it works great for windows. I hope to do the same on Mac. Is there an Apple Silicon build of UC? Or does the auto-fetch for uc_driver only have a build for Intel? If there's only an Intel build then is there a way to get an Apple Silicon build? (Apologies if my understanding of the situation isn't quite right, this is day 1 of entering the Mac universe for me) |
The |
Fix "Bad CPU type" with Rosetta 2: https://apple.stackexchange.com/a/408379/607628softwareupdate --install-rosetta |
Device: Mac Mini
MacOS: Sonoma 14.3.1 (23D60)
Chrome: Version 122.0.6261.94 (Official Build) (arm64)
When running this code:
I get back
I am new to to Mac so it is possible i have done something wrong.
The text was updated successfully, but these errors were encountered: