pydantic / pydantic-core

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

Please remove the dependency of `Rust` #1547

Closed sudiptatj closed 5 days ago

sudiptatj commented 5 days ago

We are facing a issue related to rust.

 Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....

Please remove the dependency of Rust

adriangb commented 5 days ago

You need to install Rust to compile: https://rustup.rs/

Most users shouldn't need to compile at all, we provide pre-built wheels for virtually every platform (I'd guess 98%+ installs are from pre-built wheels, but that's just a guess).

Is there a specific reason you are trying to compile from source?

Regardless, we are not going to rewrite the entire library and get rid of Rust so I am going to close this issue, but feel free to comment in response to the above.

sudiptatj commented 5 days ago

I am not getting a pre-built wheel for some reason on M1 mac for Python 3.13. And that if I get a pre-built wheel, it would solve my issues!

adriangb commented 5 days ago

It seems to exist: https://pypi.org/project/pydantic-core/#pydantic_core-2.27.0-cp313-cp313-macosx_11_0_arm64.whl and I can confirm it installs on an ARM Mac with Python 3.13.

davidhewitt commented 5 days ago

(Possibly you are using an outdated version of pydantic-core which did not support 3.13.)