yihong0618 opened a new issue, #6860:
URL: https://github.com/apache/opendal/issues/6860
### Describe the bug
```
➜ python git:(main) just install-dev
--- Installing/ validating dependencies ---
Resolved 122 packages in 35ms
Bytecode compiled 3507 files in 676ms
--- Generating Python type stubs ---
error[E0412]: cannot find type `PyEncodingWarning` in this scope
-->
/Users/hyi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-stub-gen-0.17.2/src/exception.rs:70:27
|
47 | impl crate::PyStubType for $name {
| ----- due to this macro variable
...
70 | impl_exception_stub_type!(PyEncodingWarning, "EncodingWarning");
| ^^^^^^^^^^^^^^^^^ help: a struct with a
similar name exists: `PyUnicodeWarning`
|
:::
/Users/hyi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.26.0/src/exceptions.rs:725:1
|
725 | / impl_native_exception!(
726 | | PyUnicodeWarning,
727 | | PyExc_UnicodeWarning,
728 | | native_doc!("UnicodeWarning")
729 | | );
| |_- similarly named struct `PyUnicodeWarning` defined here
For more information about this error, try `rustc --explain E0412`.
error: could not compile `pyo3-stub-gen` (lib) due to 1 previous error
error: Recipe `stub-gen` failed on line 58 with exit code 101
```
### Steps to Reproduce
cd binding/python
uv python pin 3.11
install just
just install-dev
### Expected Behavior
passed
### Additional Context
_No response_
### Are you willing to submit a PR to fix this bug?
- [x] Yes, I would like to submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]