full-toothbrush-75676
01/06/2022, 1:01 AMv2.9.0.dev1
working on an M1 macbook. We’re on Python 3.8 (we can’t upgrade to Python 3.9 just yet) and have installed Python using the homebrew / pyenv
using x86_64 arch emulation. We’re using the Pants docker
plugin and are stumped by the attached error. Does anyone have any insight into this? Thanks in advance!
./pants dependencies ::
16:10:34.33 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Parse Dockerfile.' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/private/var/folders/kx/_whrt0l54d9_350g0xwn9zp40000gn/T/process-executionU4DA6T/.cache/pex_root/venvs/5f8edf4d6068dd9c5ff01b0865815af301a9e9d5/05ad48543d1b4172329a34b21ccc64fa30998340/pex", line 157, in <module>
runpy.run_module(module_name, run_name="__main__", alter_sys=True)
File "/Users/thoyt/.pyenv/versions/3.8.10/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/Users/thoyt/.pyenv/versions/3.8.10/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/Users/thoyt/.pyenv/versions/3.8.10/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/__pants_df_parser.py", line 129, in <module>
main(cmd, sys.argv[2:])
File "/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/__pants_df_parser.py", line 42, in main
from dockerfile import Command, parse_file, parse_string
ImportError: dlopen(/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/dockerfile.abi3.so, 0x0002): tried: '/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/dockerfile.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/dockerfile.abi3.so' (no such file), '/usr/lib/dockerfile.abi3.so' (no such file), '/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/5f8edf4d6068dd9c5ff01b0865815af301a9e9d5/05ad48543d1b4172329a34b21ccc64fa30998340/lib/python3.8/site-packages/dockerfile.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/dockerfile.abi3.so' (no such file), '/usr/lib/dockerfile.abi3.so' (no such file)
Use --no-process-execution-local-cleanup to preserve process chroots for inspection.
polite-garden-50641
01/06/2022, 1:12 AMpolite-garden-50641
01/06/2022, 1:13 AMpolite-garden-50641
01/06/2022, 1:14 AMhappy-kitchen-89482
01/06/2022, 7:16 AMhappy-kitchen-89482
01/06/2022, 7:19 AMpants.toml
do to restrict the selected interpreters? And how are you running Pants itself?curved-television-6568
01/06/2022, 7:43 AMcurved-television-6568
01/06/2022, 7:43 AMcurved-television-6568
01/06/2022, 10:02 AMcurved-television-6568
01/06/2022, 10:03 AMdockerfile
lib for x86_64, but it requires the arm64
version to work for you?curved-television-6568
01/06/2022, 10:04 AMImportError: dlopen(/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/dockerfile.abi3.so, 0x0002): tried: '/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/s/97bd2daa/venv/lib/python3.8/site-packages/dockerfile.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/dockerfile.abi3.so' (no such file), '/usr/lib/dockerfile.abi3.so' (no such file), '/Users/thoyt/.cache/pants/named_caches/pex_root/venvs/5f8edf4d6068dd9c5ff01b0865815af301a9e9d5/05ad48543d1b4172329a34b21ccc64fa30998340/lib/python3.8/site-packages/dockerfile.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/dockerfile.abi3.so' (no such file), '/usr/lib/dockerfile.abi3.so' (no such file)
curved-television-6568
01/06/2022, 10:05 AMfull-toothbrush-75676
01/06/2022, 5:48 PMripe-vase-85561
01/06/2022, 8:57 PM2.9.0rc3
version. Thanks so much and I'll be sure to report back if I encounter any other issues 🙏