pydantic / pydantic-core

Core validation logic for pydantic written in rust
MIT License
1.45k stars 247 forks source link

WASM build not found / not working with latest Pyodide #1506

Closed riyavsinha closed 1 month ago

riyavsinha commented 1 month ago

When trying to install a package in Pyodide that has pydantic-core as a dependency, I get the error:

Can't find a pure Python 3 wheel for 'pydantic-core==2.23.4.
See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package You can use
"await micropip.install(..., keep_going=True)' to get a list of all packages with missing wheels.

I see that there have been WASM builds in the past, but that it is not updated for the latest Pydiode version. I will submit a fix for this.

davidhewitt commented 1 month ago

It looks like pyodide ships a built-in version of pydantic now, would that be sufficient for you? https://pyodide.org/en/stable/usage/packages-in-pyodide.html

riyavsinha commented 1 month ago

Oh cool, didn't realize that sorry! The latest pydantic-core version is unfortunately required by the package I'm trying to install (not my own), but I think already updating pyodide here in #1507 should work also, thanks!