Skip to content

Polars CPU feature support #147

@ernstleierzopf

Description

@ernstleierzopf

Polars is showing the following error in my virtual machine on a somewhat modern machine (5y old). Probably this means nothing, but it could lead to some instability. I suggest to test this in pyproject.toml and install the suggested polars[rtcompat] version when requirements are not met.

.venv/lib/python3.12/site-packages/polars/_cpu_check.py:271
  /home/ernst/Documents/DetectMateLibrary/.venv/lib/python3.12/site-packages/polars/_cpu_check.py:271: RuntimeWarning: Missing required CPU features.
  
  The following required CPU features were not detected:
      fma
  Continuing to use this version of Polars on this processor will likely result in a crash.
  Install `polars[rtcompat]` instead of `polars` to run Polars with better compatibility.
  
  Hint: If you are on an Apple ARM machine (e.g. M1) this is likely due to running Python under Rosetta.
  It is recommended to install a native version of Python that does not run under Rosetta x86-64 emulation.
  
  If you believe this warning to be a false positive, you can set the `POLARS_SKIP_CPU_CHECK` environment variable to bypass this check.
  
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Metadata

Metadata

Labels

dependenciesPull requests that update a dependency filepython:uvPull requests that update python:uv code

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions