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

curved-television-6568

12/08/2021, 8:13 PM
Trying out
autoflake
on one of my repos, but hit:
Copy code
FileNotFoundError: [Errno 2] No such file or directory: '/.../.cache/pants/setup/bootstrap-Darwin-x86_64/pants.Jqmrn1/install/lib/python3.9/site-packages/pants/backend/python/lint/autoflake/lockfile.txt'
What can I do?
This is on 2.9.0.dev3
are you using pants in another repo or is this development on pants itself?
c

curved-television-6568

12/08/2021, 8:16 PM
another repo.
also black has it as a resource, for instance.
which works.
f

fast-nail-55400

12/08/2021, 8:16 PM
can you share the
autoflake
section of your
pants.toml
?
and share full log of the failed run (if possible and/or redact portions that cannot be public)
👍 1
I’d also delete the pants venv and see if letting it re-bootstrap itself fixes the issue.
to ensure that the venv was setup without error.
c

curved-television-6568

12/08/2021, 8:19 PM
1st, I have no autoflake section in my pants.toml, only listed the backend package.. 2nd, now it works.. 🤷
I commented it out, and re-ran
./pants fmt
and now when I enable it again, the error is gone…
The error manifested in a fresh pants env (I just recently wiped my .cache), so could be related to that…
Weird. I’ll keep an eye out if it happens again. Thanks for the quick feedback
👍 2
5 Views