-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Illegal instruction when importing polars on mac osx #12454
Comments
I installed polars-lts-cpu based on this section: And now imports successfully, so maybe same issue as others |
I guess my question is, I can make it work on my machine, but if polars is a requirement of a repository and so I can't be sure where it will be installed, is the safer option to require < python 3.12 to avoid this issue? |
For what it's worth, I've found I can successfully import up to 0.19.5 but any version after that has this issue |
I can see that your wheel references |
Thank you for this response! I've found that |
No it is not? If you want to run under rosetta, you need to use polars-lts-cpu. That's intended. |
Thank you very much for your reply! But, how should I package my project that relies on polars for cross-platform support? Should I specify the LTS version for everyone as the common denominator? |
Could I request an opinion on this solution? In our repo, polars is a requirement, I was thinking a more correct approach than specifying the LTS version as a common denominator, would be to add a "mac" option to the pip install such that if selected the LTS version is installed in place of the normal distribution. Thanks very much for any suggestions!!! |
@paulf81 The real answer is to install the correct version of Python on the M* Mac machines, instead of the emulated Rosetta version. We already have an issue open for doing better detection of the CPU capabilities and giving a proper error message instead of just an illegal instruction error: #11658. |
This is very helpful @orlp , thank you very much for your time in responding! |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
Issue description
Lately when installing polars into a clean conda environment I get an error "Illegal instruction: 4" as an output.
Expected behavior
I am currently not able to import polars into a conda environment in which both python and polars versions are not specifically mentioned on mac os.
Installed versions
Using cached polars-0.19.13-cp38-abi3-macosx_10_12_x86_64.whl.metadata (14 kB)
The text was updated successfully, but these errors were encountered: