microscopic-refrigerator-69774
08/03/2022, 11:30 AMNo interpreter compatible with the requested constraints was found:
A distribution for pydantic could not be resolved for /usr/local/bin/python3.8.
Found 1 distribution for pydantic that do not apply:
1.) The wheel tags for pydantic 1.9.1 are cp38-cp38-macosx_10_9_x86_64 which do not match the supported tags of /usr/local/bin/python3.8:
cp38-cp38-manylinux_2_31_aarch64
wide-midnight-78598
08/03/2022, 12:14 PMhundreds-father-404
08/03/2022, 2:45 PMplatforms
or complete_platforms
on the pex_binary
https://www.pantsbuild.org/docs/reference-pex_binary#codeplatformscodemicroscopic-refrigerator-69774
08/03/2022, 3:04 PMpython_sources(name="hello_world")
pex_binary(
name="main",
entry_point="main.py",
dependencies=[
':reqs#pydantic'
]
)
docker_image(
name="image",
instructions=[
'FROM python:3.8',
'ENTRYPOINT ["/bin/main.pex"]',
'COPY service.cms/main.pex /bin'
],
dependencies=[
"src/python/hello_world:main"
]
)
hundreds-father-404
08/03/2022, 3:10 PMplatforms
or complete_platforms
wide-midnight-78598
08/03/2022, 3:12 PMIt does not create it in the containerAh, right right - I use FastApi as well, and it just hit me that I provision everything in a Linux container myself. Something similar to this problem was why I did it
hundreds-father-404
08/03/2022, 3:13 PMflat-zoo-31952
08/03/2022, 3:30 PMhundreds-father-404
08/03/2022, 3:32 PMwide-midnight-78598
08/03/2022, 3:36 PMhappy-kitchen-89482
08/03/2022, 5:40 PMmicroscopic-refrigerator-69774
08/04/2022, 4:21 AMplatform
pex field. Thanks againhundreds-father-404
08/04/2022, 3:54 PM