few-arm-93065
03/18/2022, 9:09 PMpip download
with the same settings. Can I get some help? Details in thread.happy-kitchen-89482
03/18/2022, 9:16 PMfew-arm-93065
03/18/2022, 9:16 PMpip3 wheel -w . \
--build-option --plat-name=manylinux2014_x86_64 \
--build-option --python-tag=cp39 \
--build-option --py-limited-api=cp39 \
--only-binary ":all:" --no-deps \
jax-jaxlib-v0.3.2/
and producing a wheel called jax-0.3.2-cp39-none-manylinux2014_x86_64.whl
- which I have uploaded to an artifactory repository. I have also tried naming the wheel jax-0.3.2-cp39-cp39-manylinux2014_x86_64.whl
and jax-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
and I verified that I can download the package using pip:
pip3 download jax==0.3.2 --index-url "https://*******@delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple" --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --only-binary :all: jax==0.3.2
However, when pants tries to do the same operation on our CI server, I get an error:
[ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building src.stages.bin_mixture/exe.pex with 12 requirements: [...] jax==0.3.2, [...]' failed with exit code 1.
stdout:
stderr:
ERROR: Could not find a version that satisfies the requirement jax==0.3.2
ERROR: No matching distribution found for jax==0.3.2
pid 2031 -> /home/runner/.cache/pants/named_caches/pex_root/venvs/33f4ac952e01f0714dcebef0f716941c259ca3ef/d3a92f1ce0047120f06ca0e3e9d47bf9e990ce51/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/runner/.cache/pants/named_caches/pex_root --log /tmp/process-executionnEus9I/.tmp/tmp7vqidq11/pip.log download --dest /tmp/process-executionnEus9I/.tmp/tmpozayljtj/manylinux2014_x86_64-cp-39-cp39 --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --only-binary :all: [...] jax==0.3.2 [...] --index-url <https://pypi.org/simple/> --extra-index-url ***<http://delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple|delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple> --retries 5 --timeout 15 exited with 1 and STDERR:
None
few-arm-93065
03/18/2022, 9:18 PMpython_requirements()
python_sources(
name="lib",
sources=["src/*.py"],
dependencies=[
'src/common:lib',
...
'src/stages/bin_mixture:jax',
]
)
pex_binary(
name="exe",
entry_point="src/bin_mixture.py",
dependencies=[':lib'],
shebang="/usr/bin/env python3",
platforms=[
"current",
"manylinux2014_x86_64-cp-39-cp39",
]
)
docker_image(
name="docker",
image_tags=["{build_args.GIT_BRANCH}", "{build_args.GIT_COMMIT}", "{build_args.RELEASE_VERSION}"],
dependencies=[
"src/common/docker:python_base",
":exe",
]
)
and jax==0.3.2
is in requirements.txtfew-arm-93065
03/18/2022, 9:23 PMhappy-kitchen-89482
03/18/2022, 9:25 PMfew-arm-93065
03/18/2022, 9:27 PMexport PANTS_PYTHON_REPOS_INDEXES="+['https://$ARTIFACTORY_USER:$ARTIFACTORY_PASS@delfidiagnostics.jfrog.io/artifactory/api/pypi/$ARTIFACTORY_REPO/simple']"
happy-kitchen-89482
03/18/2022, 9:27 PMhappy-kitchen-89482
03/18/2022, 9:27 PMhappy-kitchen-89482
03/18/2022, 9:39 PMpip --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/runner/.cache/pants/named_caches/pex_root --log /tmp/process-executionnEus9I/.tmp/tmp7vqidq11/pip.log download --dest /tmp/process-executionnEus9I/.tmp/tmpozayljtj/manylinux2014_x86_64-cp-39-cp39 --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --only-binary :all: [...] jax==0.3.2 [...] --index-url <https://pypi.org/simple/> --extra-index-url ***<http://delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple|delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple> --retries 5 --timeout 15
happy-kitchen-89482
03/18/2022, 9:39 PMhappy-kitchen-89482
03/18/2022, 9:40 PMpip download jax==0.3.2 --index-url "https://*******@delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple" --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --only-binary :all: jax==0.3.2
happy-kitchen-89482
03/18/2022, 9:40 PMhappy-kitchen-89482
03/18/2022, 9:41 PMhappy-kitchen-89482
03/18/2022, 9:42 PMjax==0.3.2
, without the other requirements you elided in the [...]
?happy-kitchen-89482
03/18/2022, 9:42 PMfew-arm-93065
03/18/2022, 9:55 PMpip3 --disable-pip-version-check --no-python-version-warning --exists-action a --isolated download --extra-index-url "https://*******@delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple" --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --only-binary :all: boto3==1.20.21 cryptography==3.4.8 jax==0.3.2 numpy==1.21.4 numpyro==0.9.1 overrides==6.1.0 pandas==1.3.5 scikit-learn==1.0.2 scipy==1.7.3 toml==0.10.2 typeguard==2.13.3 types-toml==0.10.1
Looking in indexes: <https://pypi.org/simple>, <https://build-pypi>:****@delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/simple
Collecting boto3==1.20.21
Using cached boto3-1.20.21-py3-none-any.whl (131 kB)
Collecting cryptography==3.4.8
Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 5.6 MB/s eta 0:00:00
Collecting jax==0.3.2
Downloading <https://delfidiagnostics.jfrog.io/artifactory/api/pypi/product_pipelines_pypi_dev/jax/0.3.2/jax-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl> (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 2.0 MB/s eta 0:00:00
Collecting numpy==1.21.4
Downloading numpy-1.21.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/15.7 MB 12.1 MB/s eta 0:00:00
Collecting numpyro==0.9.1
Using cached numpyro-0.9.1-py3-none-any.whl (283 kB)
Collecting overrides==6.1.0
Using cached overrides-6.1.0-py3-none-any.whl (14 kB)
Collecting pandas==1.3.5
....etc....
Also I was able to confirm that the credentials are making it into pants from our CI system as expected. I'm going to try running an x86 ubuntu in docker and see if I can reproduce the error locally.happy-kitchen-89482
03/18/2022, 10:47 PMhappy-kitchen-89482
03/18/2022, 10:49 PM--no-process-cleanup
, which will conserve the sandbox directories for processes, and print them out.happy-kitchen-89482
03/18/2022, 10:49 PMhappy-kitchen-89482
03/18/2022, 10:50 PMhappy-kitchen-89482
03/18/2022, 10:50 PMhappy-kitchen-89482
03/18/2022, 10:51 PM-q
affects the outcome, but it is not impossible that --cache-dir
doeshappy-kitchen-89482
03/18/2022, 10:53 PMfew-arm-93065
03/18/2022, 10:54 PMhappy-kitchen-89482
03/18/2022, 10:57 PMhappy-kitchen-89482
03/18/2022, 10:57 PMhappy-kitchen-89482
03/18/2022, 10:58 PMhappy-kitchen-89482
03/18/2022, 10:58 PMhappy-kitchen-89482
03/18/2022, 10:59 PMhappy-kitchen-89482
03/18/2022, 11:09 PMfew-arm-93065
03/18/2022, 11:10 PMERROR: Could not find a version that satisfies the requirement jax==0.3.2
ERROR: No matching distribution found for jax==0.3.2
at least that matches my expectations - that pants/pex isn't using sdistsfew-arm-93065
03/18/2022, 11:14 PMfew-arm-93065
03/18/2022, 11:15 PMhappy-kitchen-89482
03/18/2022, 11:16 PMfew-arm-93065
03/18/2022, 11:16 PMhappy-kitchen-89482
03/18/2022, 11:17 PMhappy-kitchen-89482
03/18/2022, 11:18 PMpex_binary
specifies an explicit non-current platformhappy-kitchen-89482
03/18/2022, 11:18 PMfew-arm-93065
03/18/2022, 11:19 PMhappy-kitchen-89482
03/18/2022, 11:19 PMhappy-kitchen-89482
03/18/2022, 11:23 PMfew-arm-93065
03/18/2022, 11:23 PMfew-arm-93065
03/18/2022, 11:25 PMhappy-kitchen-89482
03/19/2022, 2:33 AMhappy-kitchen-89482
03/19/2022, 2:33 AMhappy-kitchen-89482
03/19/2022, 2:34 AMhappy-kitchen-89482
03/19/2022, 2:34 AMfew-arm-93065
03/21/2022, 9:18 PMhappy-kitchen-89482
03/21/2022, 9:39 PM