narrow-vegetable-37489
05/26/2021, 1:27 PMhappy-kitchen-89482
05/26/2021, 2:44 PMancient-vegetable-10556
05/26/2021, 3:07 PM% arch --x86_64 sh
% ./pants version
For what it’s worth, once you’re inside an x86 shell, you can reinstall homebrew, and it’ll automatically end up under a different prefix, which I found really useful for keeping my binaries separatednarrow-vegetable-37489
05/26/2021, 4:08 PMancient-vegetable-10556
05/26/2021, 4:08 PMbusy-vase-39202
05/26/2021, 4:10 PMnarrow-vegetable-37489
05/26/2021, 5:28 PMplain-sundown-25537
06/02/2021, 4:51 AMbusy-vase-39202
06/11/2021, 6:51 PMnarrow-vegetable-37489
06/11/2021, 7:46 PMbusy-vase-39202
06/11/2021, 9:13 PMancient-vegetable-10556
06/11/2021, 9:36 PMnarrow-vegetable-37489
06/16/2021, 12:32 PM.python-version
in the root to tell pyenv which Python version to use. Pants finds that interpreter just fine at /Users/jyggen/.pyenv-amd64/shims/python3.8
, but when it tries to run the python code in compute_sha256
it encounters the following issue:
pyenv: python3.8: command not found
The `python3.8' command exists in these Python versions:
3.8.8
Note: See 'pyenv help global' for tips on allowing both
python2 and python3 to be found.
Running /Users/jyggen/.pyenv-amd64/shims/python3.8
from the terminal manually worked just fine, and I managed to narrow it down to the error only occurring when standing in a folder anywhere outside the project - so I assume it's due to Pants not being within the project anymore when executing compute_sha256
. I solved it by simply running pyenv global 3.8.8
and now Pants seems to work just fine 🙂happy-kitchen-89482
06/22/2021, 5:59 PM