-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while compiling pydantic-core for Chaquopy #1607
Comments
It sounds like for some reason the |
Yes, you are right, for chaquopy, we need to support multiple python version, so I have to add the abi3_py11 option. Patch I am working on is here: https://github.com/FCare/chaquopy/blob/pydantic-core/server/pypi/packages/pydantic-core/patches/pyo3_no_interpreter.patch Does that mean that pydantic-core is not compatible with abi3 option anymore? Thanks a lot for your support :-) |
PyO3 has never exposed the datetime types with If you are patching, you could modify |
Ok thanks, I will give it a try. I was suspecting issue with performance here, but that might be acceptable. |
Hi, I am trying to make pydantic-core to work with Chaquopy. I am progressing, but I face an issue I do not understand.
Maybe you have some clues on what I am facing.
I am adding the;logs of the error here
log.zip
It looks like some API relative to pyDateTime are not found:
Compiling pydantic-core v2.27.2 (/Work/Inno/sandbox/pr/chaquopy/server/pypi/packages/pydantic-core/build/2.27.2/cp311-cp311-android_24_x86_64/src)
error[E0432]: unresolved imports
pyo3::types::PyDate
,pyo3::types::PyDateTime
,pyo3::types::PyDelta
,pyo3::types::PyDeltaAccess
,pyo3::types::PyTime
,pyo3::types::PyTzInfo
--> src/input/datetime.rs:6:19
|
6 | use pyo3::types::{PyDate, PyDateTime, PyDelta, PyDeltaAccess, PyDict, PyTime, PyTzInfo};
| ^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ no
PyTzInfo
intypes
| | | | | |
| | | | | no
PyTime
intypes
| | | | | help: a similar name exists in the module:
PyType
| | | | no
PyDeltaAccess
intypes
| | | no
PyDelta
intypes
| | no
PyDateTime
intypes
| no
PyDate
intypes
Thanks a lot for your consideration.
The text was updated successfully, but these errors were encountered: