Open samutigro opened 2 months ago
This is an issue in polars https://github.com/pola-rs/polars/issues/10962.
Upgrade to polars v0.32 and it works
[dependencies]
forust-ml = "0.4.8"
polars = "0.32"
reqwest = { version = "0.11", features = ["blocking"] }
I tried the pure rust code example and I get these error running the code this is the code `use forust_ml::{GradientBooster, Matrix}; use polars::prelude::*; use reqwest::blocking::Client; use std::error::Error; use std::io::Cursor;
fn main() -> Result<(), Box> {
let data: Vec = Client::new()
.get("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/titanic.csv")
.send()?
.text()?
.bytes()
.collect();
}`
this the error:
`forust_test
git:(main) ✗ cargo run Compiling polars-arrow v0.28.0 error[E0034]: multiple applicable items in scope --> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/array/get.rs:31:17is_null_unchecked
foundIsValid
for the typeA
--> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/is_valid.rs:31:5arrow2::array::Array
for the typearrow2::array::PrimitiveArray<T>
help: disambiguate the method for candidate #1~~~~~~~~~~~help: disambiguate the method for candidate #2 | 31 | if arrow2::array::Array::is_null_unchecked(&self, item) { |
~~~~~~~~~~~~is_null_unchecked
foundIsValid
for the typeA
--> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/is_valid.rs:31:5arrow2::array::Array
for the typearrow2::array::BooleanArray
help: disambiguate the method for candidate #1~~~~~~~~~~~help: disambiguate the method for candidate #2 | 54 | if arrow2::array::Array::is_null_unchecked(&self, item) { |
~~~~~~~~~~~~is_null_unchecked
foundIsValid
for the typeA
--> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/is_valid.rs:31:5arrow2::array::Array
for the typearrow2::array::Utf8Array<O>
help: disambiguate the method for candidate #1~~~~~~~~~~~help: disambiguate the method for candidate #2 | 77 | if arrow2::array::Array::is_null_unchecked(&self, item) { |
~~~~~~~~~~~~is_null_unchecked
foundIsValid
for the typeA
--> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/is_valid.rs:31:5arrow2::array::Array
for the typearrow2::array::BinaryArray<O>
help: disambiguate the method for candidate #1~~~~~~~~~~~help: disambiguate the method for candidate #2 | 100 | if arrow2::array::Array::is_null_unchecked(&self, item) { |
~~~~~~~~~~~~is_null_unchecked
foundIsValid
for the typeA
--> /Users/samueleauteri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-arrow-0.28.0/src/is_valid.rs:31:5arrow2::array::Array
for the typearrow2::array::ListArray<O>
help: disambiguate the method for candidate #1~~~~~~~~~~~help: disambiguate the method for candidate #2 | 124 | if arrow2::array::Array::is_null_unchecked(&self, item) { |
~~~~~~~~~~~~For more information about this error, try
rustc --explain E0034
. error: could not compilepolars-arrow
(lib) due to 5 previous errors```