diff --git a/Cargo.lock b/Cargo.lock index 11b810cd37c4..d8fedb958bfb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3673,9 +3673,8 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54b3d09cbdd1f8c20650b28e7b09e338881482f4aa908a5f61a00c98fba2690" +version = "0.23.3" +source = "git+https://github.com/bschoenmaeckers/pyo3.git?branch=release-0.23#f209b1a87708a03f2234b744bb64a9f9825ec768" dependencies = [ "cfg-if", "chrono", @@ -3693,9 +3692,8 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3015cf985888fe66cfb63ce0e321c603706cd541b7aec7ddd35c281390af45d8" +version = "0.23.3" +source = "git+https://github.com/bschoenmaeckers/pyo3.git?branch=release-0.23#f209b1a87708a03f2234b744bb64a9f9825ec768" dependencies = [ "once_cell", "target-lexicon", @@ -3703,9 +3701,8 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fca7cd8fd809b5ac4eefb89c1f98f7a7651d3739dfb341ca6980090f554c270" +version = "0.23.3" +source = "git+https://github.com/bschoenmaeckers/pyo3.git?branch=release-0.23#f209b1a87708a03f2234b744bb64a9f9825ec768" dependencies = [ "libc", "pyo3-build-config", @@ -3713,9 +3710,8 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34e657fa5379a79151b6ff5328d9216a84f55dc93b17b08e7c3609a969b73aa0" +version = "0.23.3" +source = "git+https://github.com/bschoenmaeckers/pyo3.git?branch=release-0.23#f209b1a87708a03f2234b744bb64a9f9825ec768" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -3725,9 +3721,8 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "295548d5ffd95fd1981d2d3cf4458831b21d60af046b729b6fd143b0ba7aee2f" +version = "0.23.3" +source = "git+https://github.com/bschoenmaeckers/pyo3.git?branch=release-0.23#f209b1a87708a03f2234b744bb64a9f9825ec768" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 37815e4883dc..fa6b99b0625d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ once_cell = "1" parking_lot = "0.12" percent-encoding = "2.3" pin-project-lite = "0.2" -pyo3 = "0.23" +pyo3 = { git = "https://github.com/bschoenmaeckers/pyo3.git", branch = "release-0.23" } rand = "0.8" rand_distr = "0.4" raw-cpuid = "11" @@ -136,6 +136,8 @@ features = [ [patch.crates-io] # packed_simd_2 = { git = "https://github.com/rust-lang/packed_simd", rev = "e57c7ba11386147e6d2cbad7c88f376aab4bdc86" } # simd-json = { git = "https://github.com/ritchie46/simd-json", branch = "alignment" } +pyo3 = { git = "https://github.com/bschoenmaeckers/pyo3.git", branch = "release-0.23" } +pyo3-ffi = { git = "https://github.com/bschoenmaeckers/pyo3.git", branch = "release-0.23"} [profile.mindebug-dev] inherits = "dev" diff --git a/crates/polars-python/src/on_startup.rs b/crates/polars-python/src/on_startup.rs index 09542a0d87c2..352f67ae1399 100644 --- a/crates/polars-python/src/on_startup.rs +++ b/crates/polars-python/src/on_startup.rs @@ -63,9 +63,6 @@ fn warning_function(msg: &str, warning: PolarsWarning) { .unwrap(); if let Err(e) = warn_fn.call1((msg, Wrap(warning).into_pyobject(py).unwrap())) { - // Force load lazy state of the exception so we don't deadlock in Display impl of PyErr - e.value(py); - eprintln!("{e}") } });