-
Notifications
You must be signed in to change notification settings - Fork 19
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
Apple Silicon: mach-o file, but is an incompatible architecture #7
Comments
Oh no! Thanks for spotting this. As you may have guessed I don't have an apple silicon / arm64 machine to test on. Real quick, could you please check if the same problem exists with the |
Yep same problem
Happy to help out with debugging! |
Just did a little digging, I manually downloaded So it would seem that either the same binary is being built for both architectures, or the wrong binary is being packaged |
oof, thanks for confirming that. I just looked in to this a little, and I think I might know what the problem is. When So the fix should be to adjust this project's Some interesting discussions: |
ah makes sense. FWIW when i build robust-laplacian locally it does build with no problems and works fine, so there is hope! |
(leaving random thoughts here as I sort this out, I don't have a ton of time right now so it might take a little while) It looks like the pybind folks have a new project specifically for the purpose of managing CMake builds for Python packages. https://scikit-build.readthedocs.io/en/latest/index.html. One of the main motivations listed is handling cross-compilation better. Perhaps rather than fixing this clumsily in CMake once, it would be better to port the build script to scikit-build. |
Thanks for the breadcrumb! I did some digging and found the Parselmouth package had solved this problem. I made a PR with a proposed fix patterned off that package here: #8 |
Thanks for the swift response on updating the build to generate arm64 wheels. Unfortunately, after testing it seems something still isn't quite right.
Installing version 0.2.3 I see
Which appears to be the correct wheel. But when running
import robust_laplacian
I get:and the import ultimately fails. Somehow it seems that the arm64 wheel contains binaries compiled for x86_64
The text was updated successfully, but these errors were encountered: