Closed raychrisgdp closed 1 month ago
Same thing just happened to me during my builds. As @raychrisgdp recommended, pin to a previous version - orjson==3.10.6
- to get unblocked.
Downloading http://pypi-mirror.modal.local:5555/simple/httpcore/httpcore-1.0.5-py3-none-any.whl.metadata (20 kB)
Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx<1,>=0.23.0->openai)
Downloading http://pypi-mirror.modal.local:5555/simple/h11/h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting jsonpatch<2.0,>=1.33 (from langchain-core<0.3.0,>=0.2.23->langchain==0.2.11)
Downloading http://pypi-mirror.modal.local:5555/simple/jsonpatch/jsonpatch-1.33-py2.py3-none-any.whl.metadata (3.0 kB)
Collecting orjson<4.0.0,>=3.9.14 (from langsmith<0.2.0,>=0.1.17->langchain==0.2.11)
Downloading http://pypi-mirror.modal.local:5555/simple/orjson/orjson-3.10.7.tar.gz (5.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.1/5.1 MB 130.9 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
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....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+1 https://pypi.org/project/orjson/3.10.6/#files https://pypi.org/project/orjson/3.10.7/#files
3.10.7 has no amd64 wheels
duplicate of https://github.com/ijl/orjson/issues/508
+1, thanks for the temporary solution.
amd64 wheels for glibc and 3.9, 3.10, 3.11, 3.12, and 3.13 were published.
Problem
Installing latest version of langchain will now break due to latest version of orjson (3.10.7)
Temporary Solution
Lock the version: orjson==3.10.6 and it works
Logs