brash-glass-61350
04/25/2024, 11:21 AMcreating '/tmp/pants-sandbox-f1coPK/.tmp/tmp3slzt946/build/pyspark-3.5.0.dist-info'
Could not gather lock metadata for 1 project with source artifacts:
1. /tmp/pants-sandbox-f1coPK/.tmp/tmpizqd38ib/usr.bin.python3.10/kenlm-0.2.0.tar.gz: Failed to install extra requirement in venv at /home/telmo/.cache/pants/named_caches/pex_root/venvs/7b553b51d30285d7667c7e705da470155a7acc96/5985ed09b49a653d6596b0e14d134c5456cf1a9f: wheel
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/telmo/.cache/pants/named_caches/pex_root/venvs/7b553b51d30285d7667c7e705da470155a7acc96/5985ed09b49a653d6596b0e14d134c5456cf1a9f/lib/python3.10/site-packages/pip/__main__.py", line 22, in <module>
from pip._internal.cli.main import main as _main
ModuleNotFoundError: No module named 'pip._internal'
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
Any clue about what this means and/or how I can debug it?able-advantage-61346
04/25/2024, 11:23 AMpip install kenlm==0.2.0 work? Removing pants from the equation could make it easier to pinpoint the root causebrash-glass-61350
04/25/2024, 11:26 AMable-advantage-61346
04/25/2024, 11:27 AMbrash-glass-61350
04/25/2024, 11:28 AMable-advantage-61346
04/25/2024, 11:29 AMable-advantage-61346
04/25/2024, 11:29 AMable-advantage-61346
04/25/2024, 11:31 AMpants help-advanced python shows the current valuebrash-glass-61350
04/25/2024, 11:44 AMbrash-glass-61350
04/25/2024, 11:45 AMable-advantage-61346
04/25/2024, 12:03 PMable-advantage-61346
04/25/2024, 12:05 PMbrash-glass-61350
04/25/2024, 12:05 PMbrash-glass-61350
04/25/2024, 12:07 PMbrash-glass-61350
04/25/2024, 12:40 PMkenlm). This experience is making me scared about pants. How can I get more visibility into errors? It's not the first time I see something like thishappy-kitchen-89482
04/25/2024, 9:06 PM--keep-sandboxes=on_failure. Then Pants will log the location of the sandbox of the failed process.happy-kitchen-89482
04/25/2024, 9:07 PM__run.shhappy-kitchen-89482
04/25/2024, 9:07 PMhappy-kitchen-89482
04/25/2024, 9:07 PMhappy-kitchen-89482
04/25/2024, 9:10 PMhappy-kitchen-89482
04/25/2024, 9:11 PMhappy-kitchen-89482
04/25/2024, 9:12 PMhappy-kitchen-89482
04/25/2024, 9:15 PMkenlm in this case) is not available as a wheel then pex must try and build the sdist to get its metadata. That is what is failing here.happy-kitchen-89482
04/25/2024, 9:17 PMhappy-kitchen-89482
04/25/2024, 9:17 PMhappy-kitchen-89482
04/25/2024, 9:18 PMwheel is failing, that No module named 'pip._internal' seems familiar to me, but I can't find reference to it in issueshappy-kitchen-89482
04/25/2024, 9:19 PMbrash-glass-61350
05/01/2024, 10:42 AM--keep-sandboxes=on_failure but pants complained about it not knowing this flag - and I decided to ignore it and move forward. Next time I see this I will try again!