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

straight-exabyte-59370

01/03/2022, 2:07 PM
Hi, I am trying to use pants and have weird issue - mac os monterey 12.0.1, apple silicon:
Copy code
./pants --version                                                       
Bootstrapping Pants using /opt/homebrew/opt/python@3.8/bin/python3.8
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   2413      0 --:--:-- --:--:-- --:--:--  2452
100 3529k  100 3529k    0     0  3800k      0 --:--:-- --:--:-- --:--:-- 5971k
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.42/pex> verified.
Installing pantsbuild.pants==1.30.4 into a virtual environment at /Users/pawel/.cache/pants/setup/bootstrap-Darwin-arm64/1.30.4_py38
created virtual environment CPython3.8.12.final.0-64 in 138ms
  creator CPython3Posix(dest=/Users/pawel/.cache/pants/setup/bootstrap-Darwin-arm64/pants.UyuuvG/install, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/pawel/Library/Application Support/virtualenv)
    added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Requirement already satisfied: pip in /Users/pawel/.cache/pants/setup/bootstrap-Darwin-arm64/pants.UyuuvG/install/lib/python3.8/site-packages (21.1.2)
Collecting pip
  Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.2
    Uninstalling pip-21.1.2:
      Successfully uninstalled pip-21.1.2
Successfully installed pip-21.3.1
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==1.30.4 (from versions: 0.0.17, 0.0.18, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0.0.49, 0.0.50, 0.0.51, 0.0.52, 0.0.53, 0.0.54, 0.0.55, 0.0.56, 0.0.57, 0.0.58, 0.0.59, 0.0.60, 0.0.61, 0.0.62, 0.0.63, 0.0.64, 0.0.65, 0.0.66, 0.0.67, 0.0.68, 0.0.69, 0.0.70, 0.0.71, 0.0.72, 0.0.73, 0.0.74, 0.0.75, 0.0.76, 0.0.77, 0.0.79, 0.0.80, 0.0.81, 0.0.82, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0)
ERROR: No matching distribution found for pantsbuild.pants==1.30.4
is anyone able to help? tried to run: curl -L -O https://static.pantsbuild.org/setup/pants && chmod +x ./pants rm -rf ~/.cache/pants/
h

happy-kitchen-89482

01/03/2022, 2:16 PM
Hi, sorry for the inconvenience. Are you setting up Pants in a new repo or an existing one that is already set up?
s

straight-exabyte-59370

01/03/2022, 2:18 PM
an existing one which has been set up already
c

curved-television-6568

01/03/2022, 2:22 PM
for triage, I can install that version on my Mac monterey 12.0.1, but fails with
Copy code
14:21:11 [INFO] initializing pantsd...
14:21:11 [ERROR] Could not initialize store for process cache: "Error making env for store at \"/Users/x/.cache/pants/lmdb_store/processes/f\": Too many open files"
(possibly some config that breaks my setup, though, as I just threw in that old pants version in an existing project using 2.9.0rc1..)
f

fast-terabyte-66624

01/03/2022, 2:38 PM
@curved-television-6568 the
ulimit -n 4096
should resolve your issue
👌 1
h

happy-kitchen-89482

01/03/2022, 2:54 PM
Since you're using an existing repo, you should use the
pants
script in that repo, not download a new one
I.e., that
curl -L -O <https://static.pantsbuild.org/setup/pants> && chmod +x ./pants
might be doing harm
But presumably you had the problem before doing that?
@hundreds-father-404 I think this rings a bell?
cc @hundreds-father-404 - is 1.30.x expected to work on M1+Monterey?
s

straight-exabyte-59370

01/05/2022, 8:48 AM
The issue was it needed x86 python emulated
h

happy-kitchen-89482

01/05/2022, 11:29 AM
Ah, did that fix things?
3 Views