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

plain-fireman-49959

11/11/2021, 9:32 AM
Hi all! I am having issues running
pants lint <target>
with the
black
backend. flake8 and bandit run as expected, but black fails on install with
Building black.pex with 2 requirements: black==21.5b2, setuptools
. it's not a poetry dependency (nor are flake and bandit) and I didn't put any
[black]
section in the pants.toml, I tried specifying other versions too, it always fails with this error. I am a bit lost on debugging this now, what can I do to understand this error a bit better?
h

hundreds-father-404

11/11/2021, 9:41 AM
Hello! What is the error message? Also are you using Apple silicon by chance?
I'm headed to bed. If yes to Apple silicon, the solution is likely to set [black].interpreter_constraints = ["==3.9.*"] in pants.toml
🙌 1
p

plain-fireman-49959

11/11/2021, 9:45 AM
I'm running WSL2 on win 10, i'll try those settings too.
thanks, good night!
That fixed it!
😮 2
👍 2
2 Views