i’m using monterey on an M1 pro and i get this err...
# general
h
i’m using monterey on an M1 pro and i get this error when upgrading pants to 2.7.1 (2.7.0 has been working normally). has anyone else experienced this?
Copy code
martim@Argon repo % poetry update
Updating dependencies
Resolving dependencies... (22.5s)

Writing lock file

Package operations: 0 installs, 8 updates, 1 removal

  • Removing requests-unixsocket (0.2.0)
  • Updating jupyter-server (1.11.1 -> 1.11.2)
  • Updating botocore (1.22.8 -> 1.22.9)
  • Updating yarl (1.7.0 -> 1.7.2)
  • Updating boto3 (1.19.8 -> 1.19.9)
  • Updating isort (5.9.3 -> 5.10.0)
  • Updating regex (2021.10.23 -> 2021.11.2)
  • Updating pantsbuild.pants (2.7.0 -> 2.7.1): Failed

  RuntimeError

  Unable to find installation candidates for pantsbuild.pants (2.7.1)

  at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link
h
Hm, the macOS ARM is up: https://pypi.org/project/pantsbuild.pants/2.7.1/#files But taking a step back, how are you running Pants? It looks like via Poetry, rather than the
./pants
bash script?
h
i think that’s the only place where we’re using poetry directly instead of through pants — i’m not sure what the equivalent pants command is here. for everything else we’re using
./pants
directly or using a makefile which essentially contains just shortcuts to more complex pants commands we typically need to run
h
What's the use case for including pants in your poetry's dependencies? I wonder if you could remove that entry
h
i’m actually not 100% sure, but it looks like we’re using it for internal build tools (pulumi and such). i think it may not be strictly necessary from what i understand, it’s mostly used for type hints
h
Do you all have Pants plugins perhaps? That's the only time we really would expect depending on Pants as a direct dependency
h
yeah, i think that’s the case
@hundreds-father-404 resurfacing this: what’s the pants equivalent to
poetry update
?
just circling back to this one final time, i just happened to run
poetry update
today, and it was able to successfully update from 2.7.0 to 2.7.2
so something weird about 2.7.1 🤷
👀 1
h
Oh sorry I missed this!
what’s the pants equivalent to poetry update?
the Pants equivalent is
generate-lockfiles
, but that only works for "tool lockfiles" in Pants 2.7. We're hoping that 2.9 will add support for your own code
👍 1