Skip to content
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

building pydantic-core with modified jiter #1326

Closed
FCare opened this issue Jan 24, 2025 · 2 comments
Closed

building pydantic-core with modified jiter #1326

FCare opened this issue Jan 24, 2025 · 2 comments

Comments

@FCare
Copy link

FCare commented Jan 24, 2025

Chaquopy 16.0.0

chaquopy {
defaultConfig {
version = "3.12"
pip {
install("pydantic-core==2.18.4")
install ("pydantic")
install("websocket-client==1.8.0")
install("langgraph==0.1.19")
}
}
}

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. I finally get a chaquopy/server/pypi/dist/jiter/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 :-)

@mhsmith mhsmith changed the title building pedantic-core with modified jiter building pydantic-core with modified jiter Jan 26, 2025
@mhsmith
Copy link
Member

mhsmith commented Jan 26, 2025

Please create a PR with your recipe for pydantic-core, and post the full build log there.

@mhsmith
Copy link
Member

mhsmith commented Feb 2, 2025

The PR is #1328; let's continue the discussion there.

@mhsmith mhsmith closed this as completed Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants