-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot build with "dtype-categorical" enabled #19063
Comments
Hashbrown just updated to 0.15, with the following section in the changelog: Polars takes a workspace dependency on hashbrown "0.14", which, by cargo's caret comparison rules, allows the minor version to vary to 0.15 where the API has changed. If Polars took a hashbrown dependency of "0.14.0", then only the patch version would be allowed to vary. I got things working again by downgrading indexmap in the cargo.lock: cargo update indexmap@2.6.0 --precise 2.5.0 |
I apologize, I'm somewhat of a novice when it comes to |
I'm not aware of a way to do so via the Cargo.toml. I'm also observing that my fix above doesn't always work-- cargo somehow still pulls down hashbrown 0.15 when building on other platforms/with cibuildwheel, and I can't seem to control it. |
I am having the same errors compiling |
Polars is using Yes, indexmap 2.6.0 updated to hashbrown 0.15, but polars will still be using its own hashbrown 0.14. |
Thanks, to recap, the temporary Cargo.toml fix, until the Polars crate is updated, is to add the following line to your dependencies: hashbrown = { version = "=0.14.5", features = ["raw"] } |
The precise "=0.14.5" pinning shouldn't be necessary, but that's likely to be the last 0.14 release anyway. The important part is to add the "raw" feature. |
Try to get the fix for pola-rs/polars#19063 in a better way to fix CI
Checks
Reproducible example
Log output
Issue description
Trying to recreate this example from the user guide when I ran into this issue.
Expected behavior
polars-core
should build a MWE with thedtype-categorical
flag enabled.Installed versions
dtype-categorical
The text was updated successfully, but these errors were encountered: