fierce-fall-70380
02/03/2025, 2:40 PMfierce-fall-70380
02/03/2025, 2:40 PMCompiling engine v0.0.1 (/Users/acam/pants/pants/src/rust/engine)
error: unexpected `cfg` condition value: `gil-refs`
--> src/externs/mod.rs:61:1
|
61 | create_exception!(native_engine, EngineError, PyException);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `default` and `extension-module`
= help: consider adding `gil-refs` as a feature in `Cargo.toml`
= note: see <<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html>> for more information about checking conditional configuration
= note: `-D unexpected-cfgs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
= note: this error originates in the macro `$crate::impl_exception_boilerplate` which comes from the expansion of the macro `create_exception` (in Nightly builds, run with -Z macro-backtrace for more info)
Any ideas?wide-midnight-78598
02/03/2025, 2:45 PMfierce-fall-70380
02/03/2025, 2:49 PM--- a/src/rust/engine/Cargo.toml
+++ b/src/rust/engine/Cargo.toml
@@ -294,8 +294,8 @@ prodash = { git = "<https://github.com/stuhood/prodash>", rev = "stuhood/raw-messa
prost = "0.13"
prost-build = "0.13"
prost-types = "0.13"
-pyo3 = "0.22"
-pyo3-build-config = "0.22"
+pyo3 = "0.23.4"
+pyo3-build-config = "0.23.4"
That took care of the "gil-refs" error but gave me all kinds of new ones ๐ญ
error: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (<https://pyo3.rs/v0.23.0/migration>) for more information.
--> src/externs/mod.rs:14:26
|
14 | use pyo3::{FromPyObject, ToPyObject};
| ^^^^^^^^^^fierce-fall-70380
02/03/2025, 2:49 PMAlso, that might need to say python 3.11 now, rather than 3.9Oh, I had to do
brew install python@3.9 because I didn't have it installed.wide-midnight-78598
02/03/2025, 2:50 PMmain?
I built it an hour ago - works fine, which usually means a deps issue from what I've seen in the pastfierce-fall-70380
02/03/2025, 2:50 PMfierce-fall-70380
02/03/2025, 2:50 PMmain but then checked out the 2.24.0 tag.wide-midnight-78598
02/03/2025, 2:51 PMwide-midnight-78598
02/03/2025, 2:52 PMfierce-fall-70380
02/03/2025, 2:52 PMwide-midnight-78598
02/03/2025, 2:54 PMpants --version in the folder to kick off a build, I think it should download the correct rust-toolchainfierce-fall-70380
02/03/2025, 2:54 PMmain back out, that worked after I edited my pants version in the toml file to 2.25.0.dev5.fierce-fall-70380
02/03/2025, 2:55 PMwide-midnight-78598
02/03/2025, 2:55 PMfierce-fall-70380
02/03/2025, 2:56 PMfast-nail-55400
02/03/2025, 4:01 PMmain branch.]