-
Notifications
You must be signed in to change notification settings - Fork 48
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
Compilation error with Categorical dtype #113
Comments
Have you tried adding the "dtype-categorical" feature? Things should ideally compile as-is, but it's possible to nudge it along. |
Then I get
|
Try pinning to Polars 0.43.0, and enabling the "futures" feature in polars?
They seem to have forgotten to update the pyo3 polars crate to support polars 0.43.1. |
|
I had a compilation error with Struct type (feature Because it looks very similar to the problem @Distortedlogic met I followed the same steps, making the same observations. I still see the following error upon Does anybody know a version combination that works with feature |
Here is a solution to my problem from @cmdlineluser in discord: [dependencies]
pyo3 = { version = "0.22", features = ["extension-module", "abi3-py38"] }
pyo3-polars = { version = "0.17", features = ["derive", "dtype-struct"] }
polars = { version = "0.43", default-features = false, features = ["dtype-struct"] }
serde = { version = "1", features = ["derive"] } The important point is to add |
Thanks @oscar6echo , saved me a bit of digging! |
Using pyo3-polars 0.17 with the dtype-categorical feature for polars seems to lead to compilation errors. Using pyo3-polars 0.15 works fine.
The text was updated successfully, but these errors were encountered: