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

maturin 0.12.0 — broken on macOS #689

Closed
jnicholls opened this issue Nov 19, 2021 · 3 comments · Fixed by #690
Closed

maturin 0.12.0 — broken on macOS #689

jnicholls opened this issue Nov 19, 2021 · 3 comments · Fixed by #690
Labels
bug Something isn't working

Comments

@jnicholls
Copy link

jnicholls commented Nov 19, 2021

Please provide the following information:

  • Your python version (python -V): Python 3.9.8
  • Your pip version (pip -V): 21.3.1
  • The version of the bindings you're using, if any (e.g. pyo3, rust-cpython or cffi): pyo3 0.14.x
  • Does cargo build work? Yes
  • If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

Please list the exact steps required to reproduce your error with all command output and if possible with a repository:
Just a simple build:

❯ maturin develop
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.8
🐍 Not using a specific python interpreter (With abi3, an interpreter is only required on windows)
💥 maturin failed
  Caused by: Invalid platform string from `sysconfig.get_platform()`

0.12.0 introduced this get_platform inspection code, which is not parsing correctly it would seem. 0.11.x works fine.

My sysconfig.get_platform() value is macosx-11-arm64 on my M1 and macosx-11-x86_64 on my Intel. Neither are working with 0.12.0.

Thanks in advance!

@jnicholls
Copy link
Author

jnicholls commented Nov 19, 2021

I've determined it is the base_version.split_once('.') call. That returns None because there is no dot-separated version in my platform string, it is simply 11. This is the case on both Big Sur 11.5.2, as well as Monterey 12.0.1, interestingly enough.

Hope this helps. Thanks!

@messense messense added the bug Something isn't working label Nov 20, 2021
@messense
Copy link
Member

Thanks for the report, please give 0.12.1-beta.1 a try when it‘s released to PyPI. You can install it by using pip install -U --pre maturin.

@messense
Copy link
Member

maturin v0.12.1 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants