-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
Problem with Cargo while installing pydantic-core #2450
Labels
Comments
Try putting: [http]
check-revoke = false in |
I did that, and then a different type of error appeared. (venv) localhost:~/HamsterValor# pip install pydan
tic
Collecting pydantic
Using cached pydantic-2.8.2-py3-none-any.whl.metadata (125 kB)
Collecting annotated-types>=0.4.0 (from pydantic)
Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.20.1 (from pydantic)
Using cached pydantic_core-2.20.1.tar.gz (388 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting typing-extensions>=4.6.1 (from pydantic)
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Using cached pydantic-2.8.2-py3-none-any.whl (423 kB)
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Building wheels for collected packages: pydantic-core
Building wheel for pydantic-core (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pydantic-core (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Running `maturin pep517 build-wheel -i /root/HamsterValor/venv/bin/python --compatibility off`
📦 Including license file "/tmp/pip-install-6eoxdyg4/pydantic-core_2cbe1d6be195445e903006fe175a4dee/LICENSE"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.10 at /root/HamsterValor/venv/bin/python
📡 Using build options features, bindings from pyproject.toml
warning: unused manifest key: lints
error: package `regex-automata v0.4.7` cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.60.0
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO CARGO_ENCODED_RUSTFLAGS="-C\u{1f}target-feature=-crt-static" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/root/HamsterValor/venv/bin/python" PYTHON_SYS_EXECUTABLE="/root/HamsterValor/venv/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-6eoxdyg4/pydantic-core_2cbe1d6be195445e903006fe175a4dee/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/root/HamsterValor/venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pydantic-core
Failed to build pydantic-core
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pydantic-core) |
I mean, the issue is right there error: package `regex-automata v0.4.7` cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.60.0 Alpine 3.16 only has Rust version 1.60.0, most packages require at the bare minimum 1.65.0 nowadays though |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've installed cargo and rust:
But every time I encounter the same problem when installing the pip package pydantic:
I have no idea what to do. It would be very nice if someone could pay my attention to root of the problem or write a solution.
The text was updated successfully, but these errors were encountered: