icy-hair-30586
05/01/2022, 8:15 PMpython_requirement(
name="fastapi",
requirements=["fastapi==0.75.2"],
)
python_requirement(
name="uvicorn",
requirements=["uvicorn==0.17.6"],
)
Then I can get a package without problems (at least during build, it doesn’t quite run how I want to yet, but that’s another question)
If I update the uvicorn dependency to be uvicorn[standard]==0.17.6
then I see something like this (with different packages failing on each run:
22:13:20.62 [INFO] Completed: Building app/app_binary.pex with 2 requirements: fastapi==0.75.2, uvicorn[standard]==0.17.6
22:13:20.62 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building app/app_binary.pex with 2 requirements: fastapi==0.75.2, uvicorn[standard]==0.17.6' failed with exit code 1.
stdout:
stderr:
ERROR: Could not find a version that satisfies the requirement websockets>=10.0; extra == "standard" (from uvicorn[standard])
ERROR: No matching distribution found for websockets>=10.0; extra == "standard"
What am I missing?happy-kitchen-89482
05/02/2022, 5:41 PMicy-hair-30586
05/02/2022, 5:56 PMhappy-kitchen-89482
05/02/2022, 6:11 PMicy-hair-30586
05/02/2022, 6:21 PM./pants package app:app_binary
and ./pants package app:app_image
both fail in the same wayhappy-kitchen-89482
05/02/2022, 11:43 PMplatforms=["linux_x86_64-cp-3.8-cp38m"],
line in the pex_binary targetlinux_x86_64-cp-3.8-cp38
(without the trailing m
).m
is relevant to 3.6 and 3.7 only AFAIKcp38m
is not a valid ABIicy-hair-30586
05/03/2022, 5:59 AM