microscopic-knife-5995
01/28/2025, 6:26 AMpip: ERROR: Preparing metadata (pyproject.toml) exited with 1
microscopic-knife-5995
01/28/2025, 6:26 AM22:19:40.00 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Building 6 requirements for src.python.server/server-binary.pex from the 3rdparty/python/requirements.lock resolve: anthropic==0.45.0, fastapi==0.115.7, pydantic==2.10.6, requests==2.32.3, types-requests==2.32.0.20241016, uvicorn==0.34.0' failed with exit code 1.
stdout:
stderr:
There were 2 errors downloading required artifacts:
1. jiter 0.8.2 from <https://files.pythonhosted.org/packages/f8/70/90bc7bd3932e651486861df5c8ffea4ca7c77d28e8532ddefe2abc561a53/jiter-0.8.2.tar.gz>
pip: ERROR: Preparing metadata (pyproject.toml) exited with 1
2. pydantic-core 2.27.2 from <https://files.pythonhosted.org/packages/fc/01/f3e5ac5e7c25833db5eb555f7b7ab24cd6f8c322d3a3ad2d67a952dc0abc/pydantic_core-2.27.2.tar.gz>
pip: ERROR: Preparing metadata (pyproject.toml) exited with 1
curved-manchester-66006
01/28/2025, 5:33 PMpip
on linux to take jiter-0.8.2.tar.gz
and build a mac wheel, or vise versa.microscopic-knife-5995
01/28/2025, 10:25 PMmicroscopic-knife-5995
01/28/2025, 11:21 PMpants.toml
interpreter_constraints = ["CPython!=3.9.7,==3.9.*", "CPython==3.12.*"]
The Docker image has a different interpreter.
If you use this hack you will need to relax the shebang.
pex_binary(
name="server-binary",
....
shebang="#!/usr/bin/env python3",
)
It's not ideal but sometimes unavoidable...