-
Notifications
You must be signed in to change notification settings - Fork 904
Open
Description
Bug Description
I noticed as a result of Debian's automatic tests that the chrono-tz feature tests fail on current main (12a1792); see attached backtrace. I don't know much about this, but this looks a bit like what was fixed in #4790, although that was in a different conversions file.
Steps to Reproduce
cargo test --all-targets --no-default-features --features chrono-tz
Backtrace
error[E0599]: no method named `into_pyobject` found for struct `DateTime` in the current scope
--> src/conversions/chrono_tz.rs:120:45
|
120 | let pydates = dates.map(|dt| dt.into_pyobject(py).unwrap());
| ^^^^^^^^^^^^^ method not found in `DateTime<Tz>`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `conversion::IntoPyObject` defines an item `into_pyobject`, perhaps you need to implement it
--> src/conversion.rs:38:1
|
38 | pub trait IntoPyObject<'py>: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Your operating system and version
Debian testing
Your Python version (python --version)
Python 3.13.6
Your Rust version (rustc --version)
rustc 1.86.0 (05f9846f8 2025-03-31) (built from a source tarball)
Your PyO3 version
main (post-0.25.0)
How did you install python? Did you use a virtualenv?
apt
Additional Info
No response
Metadata
Metadata
Assignees
Labels
No labels