Closed
Conversation
Member
It looks like pydantic-core vendors its own copy of jiter; it doesn't depend on the jiter Python package. For example, on Linux: So your issue may be with the jiter Rust package rather than the whl. Unfortunately I don't know enough about the Rust build system to help with this. |
Closed
|
Is this MR working in any capacity? I'm stuck without model_validate. |
Member
|
Replaced by #1413. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chaquopy 16.0.0
Hi, I would like to be able to use langgraph with chaquopy. As a lot of people here, I have the "pedentic v2" issue due to langgraph dependency. And the pydantic<2 workaround can not work.
Based on cryptography example, I tried to compile pydantic-core locally with build_wheel, by adding a package. This was failing due to jiter compliation issue.
Then I went to jiter 0.8.0 compilation. Jiter is using python and it had an issue with pyo3::ffi. Which I fixed by simply removing an optimization (recipe in #1327). I finally get a jiter-0.8.0-0-cp311-cp311-android_24_x86_64.whl file.
But I can not apply my patches to the pydantic-core because is still resolve dependencies using cargo registry (cargo/registry/src/index.crates.io-6f17d22bba15001f/jiter-0.8.2/src/py_string_cache.rs).
Is there a way to force my package pydantic-core to use the jiter whl file?
Thanks a lot for your help and your work :-)
Here is the pydantic-core.
From now, it is not compiling due to the fact that it loads jiter from servers and not from my local fixed package, so the question is how can I force the pydantic-core package to reuse my local jiter package?
Logs of issue: