https://pantsbuild.org/ logo
#general
Title
# general
h

happy-kitchen-89482

03/22/2022, 4:42 PM
Trouble in the example repo:
1
Copy code
statler:[~/src/example-python][main]$ ./pants lint helloworld/greet/*.py
12:42:08.48 [INFO] Canceled: Building isort.pex from isort_default_lockfile.txt
12:42:08.48 [INFO] Canceled: Building flake8.pex from flake8_default_lockfile.txt
12:42:10.52 [INFO] Completed: Building isort.pex from isort_default_lockfile.txt
12:42:10.54 [INFO] Canceled: Building black.pex from black_default_lockfile.txt
12:42:10.54 [ERROR] 1 Exception encountered:

  ProcessExecutionFailure: Process 'Building isort.pex from isort_default_lockfile.txt' failed with exit code 1.
stdout:

stderr:
Traceback (most recent call last):
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 503, in execute
    exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 408, in _wrap_coverage
    return runner(*args)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 439, in _wrap_profiling
    return runner(*args)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 559, in _execute
    return self.execute_entry(self._pex_info.entry_point)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 695, in execute_entry
    return self.execute_pkg_resources(entry_point)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/unzipped_pexes/a8b756bb407b150cdb7f537ac9db1bef41bfa394/.bootstrap/pex/pex.py", line 727, in execute_pkg_resources
    return runner()
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/bin/pex.py", line 693, in main
    env=env,
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/bin/pex.py", line 733, in do_main
    seed_info = seed_cache(options, pex, verbose=options.seed == Seed.VERBOSE)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/bin/pex.py", line 771, in seed_cache
    venv_pex = ensure_venv(pex)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/pex_bootstrapper.py", line 469, in ensure_venv
    symlink=not pex_info.venv_site_packages_copies,
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/venv/pex.py", line 120, in populate_venv
    record_provenance(_populate_deps(venv, pex, venv_python, symlink))
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/venv/pex.py", line 116, in record_provenance
    for src, dst in src_to_dst:
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/venv/pex.py", line 215, in _populate_deps
    record = Record.load(dist)
  File "/Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/3b26741a7e4c212b5ceca6e5548c19bdb5e38851/pex-2.1.70-py2.py3-none-any.whl/pex/pep_376.py", line 170, in load
    dist=dist, location=dist.location
pex.pep_376.RecordNotFoundError: Could not find the installation RECORD for colorama 0.4.4 at /Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/69a966ff2db15bee941f4efbc592d1e33024c67b/colorama-0.4.4-py2.py3-none-any.whl
And sometimes the first error reported is
Copy code
pex.pep_376.RecordNotFoundError: Could not find the installation RECORD for flake8 3.9.2 at /Users/benjyw/.cache/pants/named_caches/pex_root/installed_wheels/bb98793cb537b9312bd9128eec4fc61507ef53c2/flake8-3.9.2-py2.py3-none-any.whl
e

enough-analyst-54434

03/22/2022, 4:43 PM
Expected.
2.1.70 was broken and fixed by 2.1.71
... just a sec on Pant upgrade version.
h

happy-kitchen-89482

03/22/2022, 4:44 PM
OK, so I'll upgrade
This is on 2.10.0rc3
I'll try rc5
e

enough-analyst-54434

03/22/2022, 4:45 PM
Ah, well we're up to rc5 it looks like
h

happy-kitchen-89482

03/22/2022, 4:45 PM
coke
All works now, thanks!
e

enough-analyst-54434

03/22/2022, 4:45 PM
Yeah, rc4 got the fix.
🙌 1
f

fast-nail-55400

03/22/2022, 4:54 PM
what is broken 2.1.68-70?
e

enough-analyst-54434

03/22/2022, 4:55 PM
Yup.
For certain distributions.
f

fast-nail-55400

03/22/2022, 4:55 PM
we should just bump to 2.2.x at this point. (no need to pretend that it is semver, but seems unreasonable to have a “hole” in the middle of the version range that users need to remember to avoid.)
thoughts?
e

enough-analyst-54434

03/22/2022, 4:56 PM
That's a we I'll accept we-effort on. I'm just ripping minors until 3.
4 Views