{"record":{"id":"725e9274975a46b6","repo":"pola-rs/polars","slug":"could-not-find-polars-rust-module","errorCode":null,"errorMessage":"could not find Polars' Rust module","messagePattern":"could not find Polars' Rust module","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/_plr.py","lineNumber":98,"sourceCode":"                if sys.modules[__name__].__version__ != PKG_VERSION:\n                    import warnings\n\n                    version_warnings += [sys.modules[__name__].__version__]\n                    warnings.warn(\n                        f\"Skipping Polars' Rust module version '{sys.modules[__name__].__version__}' did not match version of Python package '{PKG_VERSION}'.\",\n                        ImportWarning,\n                        stacklevel=2,\n                    )\n                    continue\n\n                break\n            except ImportError:\n                pass\n        else:\n            msg = \"could not find Polars' Rust module\"\n            if len(version_warnings) > 0:\n                msg += f\". Skipped versions {version_warnings} which don't match Python package version\"\n            raise ImportError(msg)\n\n\n# The version at the top here should match the version specified by the PLR.\nassert sys.modules[__name__].__version__ == PKG_VERSION\n","sourceCodeStart":80,"sourceCodeEnd":103,"githubUrl":"https://github.com/pola-rs/polars/blob/5d8ebabf11caea54a5c29178a64a058762f49766/py-polars/src/polars/_plr.py#L80-L103","documentation":"Terminal failure in the _plr bootstrap: every registered Polars binary variant (_polars compat/64/32) either failed to import (ImportError) or was skipped due to a version mismatch with the Python package, so no usable Rust extension module could be located — typically a broken or partial install.","triggerScenarios":"Import of polars found no loadable Rust extension module.","commonSituations":"See trigger scenarios.","solutions":["The compiled Rust module is missing; reinstall polars (pip install -U --force-reinstall polars) and verify the platform is supported."],"exampleFix":"pip install -U --force-reinstall polars","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5d8ebabf11caea54a5c29178a64a058762f49766","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}