Hi all! I am having issues running `pants lint &lt...
# general
p
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
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
I'm running WSL2 on win 10, i'll try those settings too.
thanks, good night!
That fixed it!
😮 2
👍 2