witty-crayon-22786
06/15/2021, 5:08 PMpants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:
E
Engine traceback:
in select
in pants.backend.codegen.protobuf.python.rules.generate_python_from_protobuf ({self.protocol_target.address.spec})
in pants.backend.python.util_rules.pex.create_venv_pex
in pants.backend.python.util_rules.pex.build_pex (mypy_protobuf.pex)
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/private/var/folders/bg/_r10hqp14kjcpv68yzdk5svc0000gn/T/process-executionJZNVWw/src/python/pants/engine/process.py", line 262, in fallible_to_exec_result_or_raise
description.value,
pants.engine.process.ProcessExecutionFailure: Process 'Building mypy_protobuf.pex with 1 requirement: mypy-protobuf==1.24' failed with exit code 1.
stdout:
E
stderr:
Traceback (most recent call last):
File "/Users/stuhood/.cache/pants/named_caches/pex_root/venvs/5ebcc58c6baabc17b79b1341a28efd329000cab2/f28b3dbba3c9dae1b4357adde5b079b8b3ca9fac/pex", line 120, in <module>
module = importlib.import_module(module_name)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pip'
Traceback (most recent call last):
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 484, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
return runner(*args)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
return runner(*args)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 540, in _execute
return self.execute_entry(self._pex_info.entry_point)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 656, in execute_entry
return self.execute_pkg_resources(entry_point)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 688, in execute_pkg_resources
return runner()
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/bin/pex.py", line 1145, in main
pex_builder = build_pex(options.requirements, options, cache=ENV.PEX_ROOT)
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/bin/pex.py", line 1041, in build_pex
ignore_errors=options.ignore_errors,
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/resolver.py", line 1034, in resolve_multi
max_parallel_jobs=max_parallel_jobs,
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/resolver.py", line 1134, in _download_internal
dest=dest, max_parallel_jobs=max_parallel_jobs
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/resolver.py", line 141, in download_distributions
max_jobs=max_parallel_jobs,
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/jobs.py", line 431, in execute_parallel
yield spawn_result.spawned_job.await_result()
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/jobs.py", line 185, in await_result
job.wait()
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/jobs.py", line 74, in wait
self._check_returncode()
File "/Users/stuhood/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/pip.py", line 502, in _check_returncode
with open(self._log, "r") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/private/tmp/process-execution2dGCfW/.tmp/tmpa6kwwtw_/pip.log'
enough-analyst-54434
06/15/2021, 5:14 PMwitty-crayon-22786
06/15/2021, 5:15 PMModuleNotFoundError: No module named 'pip'
in a case where we expect it to be vendored into pex felt very unusual.enough-analyst-54434
06/15/2021, 5:21 PMwitty-crayon-22786
06/15/2021, 5:32 PMenough-analyst-54434
06/15/2021, 5:34 PMwitty-crayon-22786
06/15/2021, 5:39 PMenough-analyst-54434
06/15/2021, 5:40 PMwitty-crayon-22786
06/15/2021, 5:45 PM/Users/stuhood/.cache/pants/named_caches/pex_root/venvs/5ebcc58c6baabc17b79b1341a28efd329000cab2/f28b3dbba3c9dae1b4357adde5b079b8b3ca9fac/pex
has a shebang for:
/Users/stuhood/.cache/pants/named_caches/pex_root/venvs/short/629c52d2/bin/python3 -> /Applications/Xcode.app/Contents/Developer/usr/bin/python3
enough-analyst-54434
06/15/2021, 5:45 PMwitty-crayon-22786
06/15/2021, 5:46 PMenough-analyst-54434
06/15/2021, 5:46 PMwitty-crayon-22786
06/15/2021, 5:47 PMenough-analyst-54434
06/15/2021, 5:47 PMwitty-crayon-22786
06/15/2021, 5:48 PM/Applications/Xcode.app/Contents/Developer/usr/bin/python3
existed, yea… it is also a symlink. sorry, should have walked that. sec./Users/stuhood/.cache/pants/named_caches/pex_root/venvs/short/629c52d2/bin/python3
/Applications/Xcode.app/Contents/Developer/usr/bin/python3
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8
enough-analyst-54434
06/15/2021, 5:49 PMwitty-crayon-22786
06/15/2021, 5:52 PM$ ll /Users/stuhood/.cache/pants/named_caches/pex_root/venvs/5ebcc58c6baabc17b79b1341a28efd329000cab2/f28b3dbba3c9dae1b4357adde5b079b8b3ca9fac/bin/
total 24
-rw-r--r-- 1 stuhood staff 2451 Jun 14 10:21 activate
-rw-r--r-- 1 stuhood staff 1507 Jun 14 10:21 activate.csh
-rw-r--r-- 1 stuhood staff 2659 Jun 14 10:21 activate.fish
lrwxrwx--- 1 stuhood staff 7 Jun 14 10:21 python -> python3
lrwxrwx--- 1 stuhood staff 58 Jun 14 10:21 python3 -> /Applications/Xcode.app/Contents/Developer/usr/bin/python3
enough-analyst-54434
06/15/2021, 5:52 PMwitty-crayon-22786
06/15/2021, 5:52 PM/Users/stuhood/.cache/pants/named_caches/pex_root/venvs/5ebcc58c6baabc17b79b1341a28efd329000cab2/f28b3dbba3c9dae1b4357adde5b079b8b3ca9fac/bin/python3
Python 3.8.2 (default, Apr 8 2021, 23:19:18)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pip'
enough-analyst-54434
06/15/2021, 5:53 PMwitty-crayon-22786
06/15/2021, 5:55 PMpip
, and that is failing. i.e., we did not successfully build a venv containing pip
. should i go backwards to see whether the pex file which was extracted into a venv actually contained pip?enough-analyst-54434
06/15/2021, 5:56 PMwitty-crayon-22786
06/15/2021, 5:59 PMenough-analyst-54434
06/15/2021, 6:00 PMwitty-crayon-22786
06/15/2021, 6:01 PMhundreds-father-404
06/15/2021, 6:05 PMwitty-crayon-22786
06/15/2021, 6:05 PMenough-analyst-54434
06/15/2021, 6:33 PMwitty-crayon-22786
06/17/2021, 9:22 PMxcode-select
. hold onto your butts.