Skip to content
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

Pip install failed at libsql-ffi for Bad CPU type in executable #60

Open
chrishawkins2013 opened this issue Jun 2, 2024 · 1 comment

Comments

@chrishawkins2013
Copy link

When running pip install libsql-experimental, process fails with several error lines, but most telling seems to be below. This fails at the same package as bug 58, but different reason.

thread 'main' panicked at /Users/UserName/.cargo/git/checkouts/libsql-e519d6234c1a233a/5a806fe/libsql-ffi/build.rs:358:33:
called Result::unwrap() on an Err value: Os { code: 86, kind: Uncategorized, message: "Bad CPU type in executable" }

@chrishawkins2013
Copy link
Author

This problem is addressed by running the below in the terminal window. This installs Rosetta 2 from Apple which is not installed by default on new computers.

softwareupdate --install-rosetta --agree-to-license

I think most people know this already, but this further supports the idea that a file somewhere in the build is not compatible with Apple Silicon. My computer is using the M2 chip from apple. I have not been able to identify the file causing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant