polite-winter-30234
06/14/2023, 8:40 PM15:36:41.96 [INFO] Completed: Generate lockfile for pytest
15:36:41.96 [ERROR] 1 Exception encountered:
Engine traceback:
in `generate-lockfiles` goal
in Generate Python lockfile
ProcessExecutionFailure: Process 'Generate lockfile for pytest' failed with exit code 1.
stdout:
stderr:
Failed to spawn a job for /Users/david.patrick/.pyenv/versions/3.11.3/bin/python3.11: OSError(8, 'Exec format error') while trying to execute `['/Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3', '-s', '-c', "import os\nimport sys\n\nfrom pex.common import atomic_directory, safe_open\nfrom pex.interpreter import PythonIdentity\n\n\nencoded_identity = PythonIdentity.get(binary='/Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3').encode()\nwith atomic_directory('/Users/david.patrick/.cache/pants/named_caches/pex_root/interpreters/46e966945f53ee6afb981b9f833f5cec7ab57c53/96eaad65d98a5d7e3f94b18f9e3dc08deee310c3/6bc5b589e65e042013fc10ed1cc8da335c8ce8de', exclusive=False) as cache_dir:\n if not cache_dir.is_finalized():\n with safe_open(\n os.path.join(cache_dir.work_dir, 'INTERP-INFO'), 'w'\n ) as fp:\n fp.write(encoded_identity)\n"]`
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
careful-address-89803
06/14/2023, 8:54 PMpolite-winter-30234
06/14/2023, 10:09 PMcareful-address-89803
06/14/2023, 11:19 PMpolite-winter-30234
06/14/2023, 11:30 PMbroad-processor-92400
06/15/2023, 12:31 AMarch
say in the terminal you're running pants in? And file /Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3
?polite-winter-30234
06/15/2023, 1:53 AMdavid.patrick@name ~ % arch
arm64
broad-processor-92400
06/15/2023, 12:38 PMfile …
one too? To reveal the format of the Python executable being usedpolite-winter-30234
06/15/2023, 12:59 PMdavid.patrick@name ~ % file /Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3
`/Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3: cannot open /Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.d58dec363b254d6b9c82dd85a86c74d6/bin/python3' (No such file or directory)
polite-winter-30234
06/15/2023, 1:18 PMpolite-winter-30234
06/15/2023, 1:19 PMdavid.patrick@name ef4cc2dec9377975755d029fef15f12ef315716d.15c7e09731a1404ab76a7e59fefc4a21 % pwd
/Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.15c7e09731a1404ab76a7e59fefc4a21
david.patrick@name ef4cc2dec9377975755d029fef15f12ef315716d.15c7e09731a1404ab76a7e59fefc4a21 % file bin/python3
bin/python3: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
bin/python3 (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
bin/python3 (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
david.patrick@AMAC0V4KH2272 ef4cc2dec9377975755d029fef15f12ef315716d.15c7e09731a1404ab76a7e59fefc4a21 %
polite-winter-30234
06/15/2023, 1:19 PMdavid.patrick@name bin % pwd
/Users/david.patrick/.cache/pants/named_caches/pex_root/venvs/41379f21c5956cff0d35ab1ef014bb72e1fe14dc/ef4cc2dec9377975755d029fef15f12ef315716d.957ee579951e45608da2b716503b9f98/bin
david.patrick@name bin % file python3
python3: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
python3 (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
python3 (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
polite-winter-30234
06/15/2023, 1:20 PMpolite-winter-30234
06/16/2023, 5:10 PMbroad-processor-92400
06/16/2023, 10:03 PMcareful-address-89803
06/17/2023, 6:14 PM/Users/david.patrick/.pyenv/versions/3.11.3/bin/python3.11
and the scie itself? You can also use the --keep-sandboxes=on_failure
to try to step through things manually and inspect the whole chain of executables.
Also what version of Pants is your repo using?
(I think the pex_root/venv doesn't exist because the pexes are somewhat ephemeral. They should be generated automatically)polite-winter-30234
06/19/2023, 12:56 PMcareful-address-89803
06/19/2023, 6:14 PMpolite-winter-30234
06/19/2023, 6:15 PM