Hello, is there anyone who uses pants version 1.30...
# general
f
Hello, is there anyone who uses pants version 1.30.x with newest macos monterey? After upgrade I am getting following error while running `./pants --verison`:
Copy code
Traceback (most recent call last):
  File "/Users/foobar/.cache/pants/setup/bootstrap-Darwin-arm64/1.30.4_py38/bin/pants", line 5, in <module>
    from pants.bin.pants_loader import main
ModuleNotFoundError: No module named 'pants'
I deleted the cache and got another error:
Copy code
ERROR: The executable /Users/foobar/.cache/pants/setup/bootstrap-Darwin-arm64/pants.zinb2N/install/bin/python3.8 is not functioning
ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.8/3.8.9/Frameworks/Python.framework/Versions/3.8' (should be '/Users/foobar/.cache/pants/setup/bootstrap-Darwin-arm64/pants.zinb2N/install')
ERROR: virtualenv is not compatible with this system or executable
I can run
/Users/foobar/.cache/pants/setup/bootstrap-Darwin-arm64/pants.zinb2N/install/bin/python3.8
without any problems.
e
To solve the latter issue you probably just need to refresh the checked in
pants
script with
curl -L <https://static.pantsbuild.org/setup/pants> > pants && chmod +x ./pants
. Start there and see if that gets you running. You may need to do something like the
arch -x86_64 pants
massaging mentioned here: https://www.pantsbuild.org/docs/prerequisites#macos
🙏 1
👍 1
f
Refreshing the script helped. Thanks a log @enough-analyst-54434! Actually I did not have to use rosetta, version 1.30.4 has been working on M1 for a while.
❤️ 1
e
Excellent. I think Rosetta is just being auto used. We do not publish an arm64 wheel: https://pypi.org/project/pantsbuild.pants/1.30.4/#files
👍 2