ancient-france-42909
06/22/2023, 5:45 PMpants package foo::
, there's one particular target that has a problem, is there a sensible way to figure out which one it is, except seeing which completed and which was cancelled, and then trying to infer it from that?ancient-france-42909
06/22/2023, 5:45 PM20:31:19.40 [INFO] Completed: Building kite.emr_jobs_pants.analyze_inbound_logs/analyze_inbound_logs.pex with 118 requirements: Flask==2.0.3, IP2Location==8.9.0, Jinja2==3.0.3, PyYAML==5.4.1, SQLAlchemy==1.4.47, Unidecode==1.0.22,... (2485 characters truncated)
20:31:19.45 [ERROR] 1 Exception encountered:
Engine traceback:
in select
..
in pants.core.goals.package.package_asset
`package` goal
Traceback (most recent call last):
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/core/goals/package.py", line 159, in package_asset
for field_set in target_roots_to_field_sets.field_sets
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 358, in MultiGet
return await _MultiGet(tuple(__arg0))
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 165, in __await__
result = yield self.gets
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/core/goals/package.py", line 109, in environment_aware_package
BuiltPackage, {request.field_set: PackageFieldSet, environment_name: EnvironmentName}
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/backend/python/goals/package_pex_binary.py", line 202, in built_pacakge_for_pex_from_targets_request
pex = await Get(Pex, PexFromTargetsRequest, pft_request)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/backend/python/util_rules/pex_from_targets.py", line 512, in create_pex_from_targets
sources=sources,
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/backend/python/util_rules/local_dists.py", line 189, in build_local_dists
additional_args=["--intransitive"],
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/backend/python/util_rules/pex.py", line 800, in create_pex
result = await Get(BuildPexResult, PexRequest, request)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/backend/python/util_rules/pex.py", line 730, in build_pex
cache_scope=request.cache_scope,
File "/home/cris.birzan/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0_py37/lib/python3.7/site-packages/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
pants.engine.process.ProcessExecutionFailure: Process 'Building local_dists.pex' failed with exit code 102.
stdout:
stderr:
Could not find a compatible interpreter.
Examined the following interpreters:
1.) /home/cris.birzan/.pyenv/versions/3.7.4/bin/python3.7 CPython==3.7.4
2.) /home/cris.birzan/.pyenv/versions/3.7.4/envs/crpython37/bin/python3.7 CPython==3.7.4
3.) /home/cris.birzan/.pyenv/versions/3.10.9/bin/python3.10 CPython==3.10.9
4.) /home/cris.birzan/.pyenv/versions/3.11.1/bin/python3.11 CPython==3.11.1
5.) /home/cris.birzan/.pyenv/versions/3.6.15/bin/python3.6 CPython==3.6.15
6.) /home/cris.birzan/.pyenv/versions/3.7.9/bin/python3.7 CPython==3.7.9
7.) /home/cris.birzan/.pyenv/versions/3.8.16/bin/python3.8 CPython==3.8.16
8.) /home/cris.birzan/.pyenv/versions/3.9.5/bin/python3.9 CPython==3.9.5
No interpreter compatible with the requested constraints was found:
Version matches CPython~=3.10.9,~=3.7.4
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
20:31:19.46 [INFO] Canceled: Building kite.emr_jobs_pants.defender_simulation/defender_simulation.pex with 109 requirements: Flask==2.0.3, IP2Location==8.9.0, Jinja2==3.0.3, SQLAlchemy==1.4.47, Unidecode==1.0.22, XlsxWriter==1.1.... (2316 characters truncated)
ancient-france-42909
06/22/2023, 5:46 PMcurved-television-6568
06/22/2023, 6:04 PM-ldebug
you can spot which package is building when the error hits?ancient-france-42909
06/22/2023, 6:06 PMcurved-television-6568
06/22/2023, 6:06 PMcurved-television-6568
06/22/2023, 6:07 PMpants peek
and jq
filtering?ancient-france-42909
06/22/2023, 6:07 PMcurved-television-6568
06/22/2023, 6:07 PMgrep
ancient-france-42909
06/22/2023, 6:07 PMancient-france-42909
06/22/2023, 6:08 PMancient-france-42909
06/22/2023, 6:09 PMancient-france-42909
06/22/2023, 6:10 PMancient-france-42909
06/22/2023, 6:10 PMcurved-television-6568
06/22/2023, 6:10 PMancient-france-42909
06/22/2023, 6:10 PMcurved-television-6568
06/22/2023, 6:11 PMpants peek ::
will give you everything 😉ancient-france-42909
06/22/2023, 6:12 PM⠐ 71.36s `peek` goal
🙂ancient-france-42909
06/22/2023, 6:16 PM$ ./pants peek :: | wc
3093007 3323943 221648106
ancient-france-42909
06/22/2023, 6:16 PMancient-france-42909
06/22/2023, 6:17 PM$ PANTS_PROCESS_EXECUTION_LOCAL_PARALLELISM=1 ./pants -ldebug package kite/emr_jobs_pants:: 2>&1 | tee pants.out
I'll see what happened tomorrow 😄ancient-france-42909
06/22/2023, 6:18 PMancient-france-42909
06/22/2023, 6:30 PMbillions-printer-97253
06/23/2023, 6:35 PM