Skip to content
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 #105

Closed
SimonG85 opened this issue Sep 12, 2024 · 0 comments · Fixed by #106
Closed

Compilation error #105

SimonG85 opened this issue Sep 12, 2024 · 0 comments · Fixed by #106

Comments

@SimonG85
Copy link
Contributor

When compiled a blank project with pyo3-polars 0.17 with feature dtype-categorical, a compilation error is generated:

error[E0432]: unresolved import polars_core::datatypes::create_enum_data_type
pyo3-polars-0.17.0/src/types.rs:6:5
6 | use polars_core::datatypes::create_enum_data_type;
| ^^^^^^^^^^^^^^^^^^^^^^^^---------------------
| | |
| | help: a similar name exists in the module: create_enum_dtype
| no create_enum_data_type in datatypes

error[E0425]: cannot find function to_series in this scope
pyo3-polars-0.17.0/src/types.rs:465:30
|
26 | pub(crate) fn get_series(obj: &Bound<'_, PyAny>) -> PyResult {
| -------------------------------------------------------------------- similarly named function get_series defined here
...
465 | let series = to_series(py, PySeries(s));
| ^^^^^^^^^ help: a function with a similar name exists: get_series

I've checked and in polars create_enum_data_type exists and it is enabled with dtype-categorical feature.
Same for get_series in pyo3-polars with same feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant