gorgeous-winter-99296
03/10/2023, 8:18 AMProcessExecutionFailure: Process 'Building 9 requirements for ...foo.pex from the locks/pants.lock resolve: ...' failed with exit code 1.
[2023-03-09T21:49:32Z] stdout:
[2023-03-09T21:49:32Z]
[2023-03-09T21:49:32Z] stderr:
[2023-03-09T21:49:32Z] There was 1 error downloading required artifacts:
[2023-03-09T21:49:32Z] 1. emote-rl 23 from git+<https://github.com/EmbarkStudios/emote@ts/memory-logging-proxy-wrapper#egg=emote-rl>
[2023-03-09T21:49:32Z] pid 2670012 -> /root/.cache/pants/named_caches/pex_root/venvs/eac612bf592de69ec2b624a7a30f7fec79e2c3a3/ddab8011daaee380698ac2fb9701af18c90c03f6/bin/python -sE /root/.cache/pants/named_caches/pex_root/venvs/eac612bf592de69ec2b624a7a30f7fec79e2c3a3/ddab8011daaee380698ac2fb9701af18c90c03f6/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --use-deprecated legacy-resolver --isolated -q --cache-dir /root/.cache/pants/named_caches/pex_root/pip_cache download --dest /root/.cache/pants/named_caches/pex_root/downloads/resolver_download.tbpzqg62/usr.bin.python3.8 --no-binary :all: --no-deps git+<https://github.com/EmbarkStudios/emote@ts/memory-logging-proxy-wrapper#egg=emote-rl> --index-url <https://pypi.org/simple/> --extra-index-url <https://download.pytorch.org/whl/cpu/> --retries 5 --timeout 15 exited with 1 and STDERR:
[2023-03-09T21:49:32Z] ERROR: Package 'emote-rl' requires a different Python: 3.8.5 not in '>=3.9'
Note that the resolver uses python3.8. I've added the following environment variables:
PANTS_PYTHON_INTERPRETER_CONSTRAINTS="['==3.9.*']"
PY="python3.9"
PYTHON_BIN_NAME="python3.9"
and
[python]
interpreter_constraints = ["==3.9.*"]
Not sure if this is a caching issue (due to changing version) or something I need to configure. This is on 2.15.0.happy-kitchen-89482
03/10/2023, 3:01 PM[python]
for your lockfile config, and did you regenerate your lockfile?happy-kitchen-89482
03/10/2023, 3:02 PMgorgeous-winter-99296
03/10/2023, 3:09 PMhappy-kitchen-89482
03/10/2023, 3:12 PM/root/.cache/pants/named_caches/pex_root/venvs/eac612bf592de69ec2b624a7a30f7fec79e2c3a3/ddab8011daaee380698ac2fb9701af18c90c03f6/bin/python --version
?happy-kitchen-89482
03/10/2023, 3:14 PMhappy-kitchen-89482
03/10/2023, 3:19 PM[python]
pip_version = "23.0.1"
(That "requires a different Python" error message is from pip.)gorgeous-winter-99296
03/10/2023, 3:26 PMgorgeous-winter-99296
03/10/2023, 3:30 PMenough-analyst-54434
03/10/2023, 5:05 PM-ldebug
so I can see the command line Pants is using to call Pex here?gorgeous-winter-99296
03/10/2023, 5:07 PMhappy-kitchen-89482
03/10/2023, 5:08 PMgorgeous-winter-99296
03/10/2023, 5:09 PMenough-analyst-54434
03/10/2023, 5:10 PMgorgeous-winter-99296
03/10/2023, 5:18 PMspawned local process as Some(584879) for Process { argv: ["/usr/bin/python3", "./pex", "--tmpdir", ".tmp", "--jobs", "1", "--python-path", "/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "--output-file", "src.py.erupt.erupt.entry_points/server.pex", "--no-emit-warnings", "--requirements-pex", "local_dists.pex", "--interpreter-constraint", "CPython==3.9.*", "--entry-point", "erupt.entry_points.server", "--sources-directory=source_files", "atomicwrites==1.4.0", "bottle~=0.12.0", "coloredlogs~=15.0", "emote-rl[torch]@ git+<https://github.com/EmbarkStudios/emote@4c5b31753e7a497fa57ab59e13344468510c920c#egg=emote-rl>", "grpcio-health-checking>=1.40.0", "grpcio-reflection>=1.40.0", "grpcio>=1.40.0", "netifaces==0.11.0", "numpy~=1.20", "protobuf~=3.20.1", "ruamel.yaml~=0.16.0", "--lock", "locks/pants.lock", "--no-pypi", "--index=<https://pypi.org/simple/>", "--index=<https://download.pytorch.org/whl/cpu/>", "--manylinux", "manylinux2014", "--layout", "zipapp"], env: {"CPPFLAGS": "", "LANG": "en_US.UTF-8", "LC_ALL": "en_US.UTF-8", "LDFLAGS": "", "PATH": "/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin", "PEX_IGNORE_RCFILES": "true", "PEX_PYTHON_PATH": "/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PEX_ROOT": ".cache/pex_root"}, working_directory: None, input_digests: InputDigests { complete: DirectoryDigest { digest: Digest { hash: Fingerprint<076529a5e38163646702e6698a95108391763f867f774443d7bcb46abb3c961e>, size_bytes: 417 }, tree: "Some(..)" }, nailgun: DirectoryDigest { digest: Digest { hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, size_bytes: 0 }, tree: "Some(..)" }, input_files: DirectoryDigest { digest: Digest { hash: Fingerprint<076529a5e38163646702e6698a95108391763f867f774443d7bcb46abb3c961e>, size_bytes: 417 }, tree: "Some(..)" }, immutable_inputs: {}, use_nailgun: {} }, output_files: {RelativePath("src.py.erupt.erupt.entry_points/server.pex")}, output_directories: {}, timeout: None, execution_slot_variable: None, concurrency_available: 11, description: "Building 11 requirements for src.py.erupt.erupt.entry_points/server.pex from the locks/pants.lock resolve: atomicwrites==1.4.0, bottle~=0.12.0, coloredlogs~=15.0, emote-rl[torch]@ git+<https://github.com/EmbarkStudios/emote@4c5b31753e7a497fa57ab59e13344468510c920c#egg=emote-rl>, grpcio-health-checking>=1.40.0, grpcio-reflection>=1.40.0, grpcio>=1.40.0, netifaces==0.11.0, numpy~=1.20, protobuf~=3.20.1, ruamel.yaml~=0.16.0", level: Info, append_only_caches: {CacheName("pex_root"): RelativePath(".cache/pex_root")}, jdk_home: None, platform: Linux_x86_64, cache_scope: Successful, execution_strategy: Local, remote_cache_speculation_delay: 0ns }
gorgeous-winter-99296
03/10/2023, 5:18 PMERROR: Package 'emote-rl' requires a different Python: 3.8.5 not in '>=3.9'
enough-analyst-54434
03/10/2023, 5:19 PMenough-analyst-54434
03/10/2023, 5:23 PMenough-analyst-54434
03/10/2023, 5:56 PMgorgeous-winter-99296
03/10/2023, 5:57 PMenough-analyst-54434
03/10/2023, 6:31 PMenough-analyst-54434
03/11/2023, 2:48 AM[pex-cli]
version = "v2.1.129"
known_versions = [
"v2.1.129|macos_arm64|717388fdf97eb6dad98fbe651debddfd05630aa6ce80557b8430efa9490fb7ec|4082068",
"v2.1.129|macos_x86_64|717388fdf97eb6dad98fbe651debddfd05630aa6ce80557b8430efa9490fb7ec|4082068",
"v2.1.129|linux_x86_64|717388fdf97eb6dad98fbe651debddfd05630aa6ce80557b8430efa9490fb7ec|4082068",
"v2.1.129|linux_arm64|717388fdf97eb6dad98fbe651debddfd05630aa6ce80557b8430efa9490fb7ec|4082068"
]
gorgeous-winter-99296
03/13/2023, 10:37 AMenough-analyst-54434
03/23/2023, 4:40 PMenough-analyst-54434
03/23/2023, 4:40 PMenough-analyst-54434
03/23/2023, 4:41 PM$ unzip -qc emote_rl-23.0.0-py3-none-any.whl emote_rl-23.0.0.dist-info/WHEEL
Wheel-Version: 1.0
Generator: pdm-pep517 1.1.3
Root-Is-Purelib: True
Tag: py3-none-any
enough-analyst-54434
03/23/2023, 4:41 PMenough-analyst-54434
03/23/2023, 4:45 PMgorgeous-winter-99296
03/23/2023, 4:48 PM8.is the name and optionally the version of the software that produced the archive.Generator
enough-analyst-54434
03/23/2023, 4:49 PMenough-analyst-54434
03/23/2023, 4:49 PMenough-analyst-54434
03/23/2023, 4:51 PMgorgeous-winter-99296
03/23/2023, 4:55 PMenough-analyst-54434
03/23/2023, 4:55 PMenough-analyst-54434
03/23/2023, 4:56 PMenough-analyst-54434
03/23/2023, 4:57 PMgorgeous-winter-99296
03/23/2023, 5:20 PMhatchling
, flit
, build
, pdm-backend
, poetry-core
) and they all put the version in the wheel.enough-analyst-54434
03/23/2023, 5:35 PMenough-analyst-54434
03/23/2023, 5:57 PM