ancient-lawyer-12557
04/26/2023, 5:07 PMdocker_environment
for linux, and we resolved this issue by installing go
on their machine. Is it expected that pants depends on go to be able to do this?
16:58:44.50 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
in Resolve transitive targets
in Resolve direct dependencies of target - im-ingestion:docker
ProcessExecutionFailure: Process 'Building dockerfile_parser.pex from dockerfile-parser_default.lock' failed with exit code 1.
stdout:
stderr:
pid 27139 -> /Users/x/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/c83d7c7091f6e9df0ecd4a9b2f0e26696a4873cc/bin/python -sE /Users/x/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/c83d7c7091f6e9df0ecd4a9b2f0e26696a4873cc/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --use-deprecated legacy-resolver --isolated -q --cache-dir /Users/x/.cache/pants/named_caches/pex_root/pip_cache wheel --no-deps --wheel-dir /Users/x/.cache/pants/named_caches/pex_root/built_wheels/sdists/dockerfile-3.2.0.tar.gz/e13fd3768216a788189e0667521e1435a273a4129119a8453085d897fc34aac8/cp311-cp311-macosx_11_0_arm64.fe97d14875ad4e3bb9c900ebabe3432d /Users/x/.cache/pants/named_caches/pex_root/downloads/e13fd3768216a788189e0667521e1435a273a4129119a8453085d897fc34aac8/dockerfile-3.2.0.tar.gz --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Command errored out with exit status 1:
command: /Users/x/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/c83d7c7091f6e9df0ecd4a9b2f0e26696a4873cc/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/x/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-req-build-_m05w_ks/setup.py'"'"'; __file__='"'"'/Users/x/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-req-build-_m05w_ks/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /Users/x/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-wheel-115d_a4i
cwd: /Users/x/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-req-build-_m05w_ks/
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
$ GOPATH=/Users/x/.cache/pants/named_caches/pex_root/pip_cache/.tmp/tmpsynsnw6g go get -d
error: [Errno 2] No such file or directory: 'go'
----------------------------------------
ERROR: Failed building wheel for dockerfile
ERROR: Failed to build one or more wheels
curved-television-6568
04/26/2023, 5:09 PMancient-lawyer-12557
04/26/2023, 5:11 PMThis project uses setuptools-golang when built from source. To build from source you'll need a go compiler.Thanks @curved-television-6568 I suppose I need to find out under which circumstances a machine would need to build from source; until then I might need to make sure my team have go to develop in the project
curved-television-6568
04/26/2023, 5:11 PMCopy codedockerfile-3.2.0.tar.gz/e13fd3768216a788189e0667521e1435a273a4129119a8453085d897fc34aac8/cp311-cp311-macosx_11_0_arm64.fe97d14875ad4e3bb9c900ebabe3432d
ancient-lawyer-12557
04/26/2023, 5:13 PMcurved-television-6568
04/26/2023, 5:14 PMenough-analyst-54434
04/26/2023, 5:31 PMdockerfile-3.2.0-cp38-abi3-macosx_12_0_arm64.whl
That works for CPython 3.8+ due to using the limited abi denoted by the abi3 tag.curved-television-6568
04/26/2023, 5:34 PMenough-analyst-54434
04/26/2023, 5:35 PMancient-lawyer-12557
04/26/2023, 5:35 PMenough-analyst-54434
04/26/2023, 5:35 PMancient-lawyer-12557
04/26/2023, 5:35 PMenough-analyst-54434
04/26/2023, 5:35 PMcurved-television-6568
04/26/2023, 5:36 PMenough-analyst-54434
04/26/2023, 5:40 PM$ pex3 interpreter inspect --python /usr/bin/python3.9 --tags -i2 | grep cp36-abi3-manylinux2010_x86_64
"cp36-abi3-manylinux2010_x86_64",
$ pex3 interpreter inspect --python /usr/bin/python3.9 --tags -i2 | grep cp38-abi3-macosx_12_0_arm64
$
curved-television-6568
04/26/2023, 5:44 PMpex3 interpreter inspect --python `which python` --tags -i2 | grep "cp38-abi3" | grep arm64
"cp38-abi3-macosx_13_0_arm64",
"cp38-abi3-macosx_12_0_arm64",
"cp38-abi3-macosx_11_0_arm64",
enough-analyst-54434
04/26/2023, 5:44 PMcurved-television-6568
04/26/2023, 5:44 PMenough-analyst-54434
04/26/2023, 5:44 PMcurved-television-6568
04/26/2023, 5:44 PMenough-analyst-54434
04/26/2023, 5:45 PMcurved-television-6568
04/26/2023, 5:45 PMenough-analyst-54434
04/26/2023, 5:46 PMcurved-television-6568
04/26/2023, 5:46 PMenough-analyst-54434
04/26/2023, 5:47 PMRequires-Python
value in the wheel METADATA file. That's generally displayed on PyPI under project details.curved-television-6568
04/26/2023, 5:48 PMRequires: Python >=3.6.1
enough-analyst-54434
04/26/2023, 5:48 PMcurved-television-6568
04/26/2023, 5:48 PMenough-analyst-54434
04/26/2023, 5:48 PMcurved-television-6568
04/26/2023, 5:48 PMenough-analyst-54434
04/26/2023, 5:48 PMRequires: Python >=3.6.1
that is ~different and oldRequires-Python: >=3.6.1
Requires
thing is long past common use.curved-television-6568
04/26/2023, 5:49 PMenough-analyst-54434
04/26/2023, 5:49 PMcurved-television-6568
04/26/2023, 5:50 PMenough-analyst-54434
04/26/2023, 5:54 PMPython
in your example is an example of one of those yolo strings not codified anywhere that are supported only by happenstance of the history of tools like setuptools and pip.curved-television-6568
04/26/2023, 5:59 PM