Skip to content

Issue while compiling pydantic-core for Chaquopy #1607

@FCare

Description

@FCare

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 in types
| | | | | |
| | | | | no PyTime in types
| | | | | help: a similar name exists in the module: PyType
| | | | no PyDeltaAccess in types
| | | no PyDelta in types
| | no PyDateTime in types
| no PyDate in types

Thanks a lot for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions