Skip to content

Commit

Permalink
Fix for pyo3
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Oct 18, 2023
1 parent 30d3269 commit 66e819e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions datafusion/common/src/pyarrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ mod tests {
Some(locals),
)
.expect("Couldn't get python info");
let executable: String =
locals.get_item("executable").unwrap().extract().unwrap();
let python_path: Vec<&str> =
locals.get_item("python_path").unwrap().extract().unwrap();
let executable = locals.get_item("executable").unwrap().unwrap();
let executable: String = executable.extract().unwrap();

let python_path = locals.get_item("python_path").unwrap().unwrap();
let python_path: Vec<&str> = python_path.extract().unwrap();

panic!("pyarrow not found\nExecutable: {executable}\nPython path: {python_path:?}\n\
HINT: try `pip install pyarrow`\n\
Expand Down

0 comments on commit 66e819e

Please sign in to comment.