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

No support for OSX? #1

Closed
twiecki opened this issue Jun 17, 2022 · 7 comments
Closed

No support for OSX? #1

twiecki opened this issue Jun 17, 2022 · 7 comments

Comments

@twiecki
Copy link
Member

twiecki commented Jun 17, 2022

📦 Built wheel for CPython 3.8 to /var/folders/mn/0x4pxw0n61lf479ndp07r0gr0000gn/T/.tmpexAgcH/nutpie-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl
💥 maturin failed
  Caused by: pip install in /Users/twiecki/miniforge3/envs/psiturk failed running ["-m", "pip", "--disable-pip-version-check", "install", "--force-reinstall"]: exit status: 1
--- Stdout:

--- Stderr:
ERROR: nutpie-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl is not a supported wheel on this platform.
@aseyboldt
Copy link
Member

This is on the M1, right?
Looks like it might be this issue? PyO3/maturin#757

@twiecki
Copy link
Member Author

twiecki commented Jun 17, 2022

Yes, M1. But looks like it's fixed there?

@aseyboldt
Copy link
Member

I think this might be a bug somewhere in something that set up the environment.
maturin compiled the wheel for x86_64 for some reason, probably because python told it to. If this is in fact the case, the output of

❯ python -c 'import sysconfig; print(sysconfig.get_platform())'

would be macosx-10.7-x86_64. (is it?)

It should be macosx-${some_version}-arm64, so that maturin knows to build it for arm64.

@twiecki
Copy link
Member Author

twiecki commented Jun 21, 2022

I cleaned things up a bit but still getting the same error :-/. Now have maturin installed in conda-forge. macosx-11.0-arm64 gets returned. Weird...

@twiecki
Copy link
Member Author

twiecki commented Jun 21, 2022

Oh, but something is definitely wrong, because the wheel still says ERROR: nutpie-0.1.0-cp39-cp39-macosx_10_7_x86_64.whl is not a supported wheel on this platform..

@twiecki twiecki closed this as completed Jun 21, 2022
@twiecki twiecki reopened this Jun 21, 2022
@twiecki
Copy link
Member Author

twiecki commented Jun 21, 2022

PyO3/maturin#979

@twiecki
Copy link
Member Author

twiecki commented Jun 21, 2022

Fixed by reinstalling homebrew and then rust.

@twiecki twiecki closed this as completed Jun 21, 2022
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

2 participants