Hello guys, this is Xiaotong from Houzz, pretty ne...
# general
s
Hello guys, this is Xiaotong from Houzz, pretty new to the Pants community, I am using pants to build our python internal service and I got this error in my local, my mac version is
10.14.6
, does anyone have idea to fix this? πŸ˜„
Copy code
ProcessExecutionFailure: Process 'Searching for `python2` on PATH=/Users/xiaotongli/.nvm/versions/node/v10.24.1/bin:/Users/xiaotongli/arc/arcanist/bin:/Users/xiaotongli/Library/Python/2.7/bin:/Users/xiaotongli/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Users/xiaotongli/.krew/bin:/usr/local/mysql/bin' failed with exit code 1.
stdout:

stderr:
+ command -v which
+ command which -a python2
+ which -a python2
I can run pants 2.7 in our linux machine but cannot run the
./pants pacakge
in my local πŸ˜‚
w
sorry for the trouble! does setting
--pex-bootstrap-interpreter-names='["python3"]'
help?
s
wow, you are my hero! I run the command and successful!
Copy code
./pants --pex-bootstrap-interpreter-names='["python3"]' package ::
not sure if that is correct way to use it πŸ˜‚
w
sorry for the trouble! you should be able to set that argument in your
pants.toml
like this:
Copy code
[pex]
bootstrap_interpreter_names = ["python", "python3"]
(it’s safe to set it for all your users)
the next release of Pants will remove python2 from that list (and makes other changes to that script to make this unnecessary).
πŸ™Œ 1
s
got it, thanks Stu!
πŸ‘ 1