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

salmon-wire-73102

02/23/2022, 12:58 AM
Hey team, I am using M1 mac, trying to install pants and running into the following error:
Copy code
./pants -ldebug version
Bootstrapping Pants using /Users/nizarhejazi/.pyenv/shims/python3.9
Creating the virtualenv PEX.
Downloading the Pex PEX.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   640  100   640    0     0   3023      0 --:--:-- --:--:-- --:--:--  3076
100 3529k  100 3529k    0     0  4661k      0 --:--:-- --:--:-- --:--:-- 4661k
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.42/pex> verified.
Failed to spawn a job for DistributionTarget(interpreter=PythonInterpreter('/Users/nizarhejazi/.pyenv/versions/3.9.5_x86/bin/python3.9', PythonIdentity('/Users/nizarhejazi/.pyenv/versions/3.9.5_x86/bin/python3.9', 'cp39', 'cp39', 'macosx_12_0_x86_64', (3, 9, 5)))): [Errno 2] No such file or directory: '/Users/nizarhejazi/.pex/venvs/d205c7f978b881f663df257d6bf11d02e6309c3b/832e95f85413646e8b7b056ab4e60414f83d7397/pex'
mv: rename /Users/nizarhejazi/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.7jKJ9F/virtualenv.pex to /Users/nizarhejazi/.cache/pants/setup/bootstrap-Darwin-x86_64/virtualenv-20.4.7/virtualenv.pex: No such file or directory
Installing pantsbuild.pants==2.7.0 into a virtual environment at /Users/nizarhejazi/.cache/pants/setup/bootstrap-Darwin-x86_64/2.7.0_py39
/Users/nizarhejazi/.pyenv/versions/3.9.5_x86/bin/python3.9: can't open file '/Users/nizarhejazi/.cache/pants/setup/bootstrap-Darwin-x86_64/virtualenv-20.4.7/virtualenv.pex': [Errno 2] No such file or directory
I have been following this article to setup my env. I am running
./pants
command using iTerm w/ Rosetta. Any help is appreciated.
h

hundreds-father-404

02/23/2022, 1:02 AM
Hi Nizar, welcome! It looks like you're using Rosetta x86 emulation. For Pants 2.5+, that generally shouldn't be necessary from Pants's perspective, although some folks need Rosetta to run parts of their own codebase Is there are a particular reason you're trying to run this with
arch -x86_64
, rather than normal?
👍 1
6 Views