Why does pants complain about installing hermetic ...
# general
h
Why does pants complain about installing hermetic python if it already exists?
2
Untitled
c
is there a file named?
Copy code
/home/nathanael/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.8.16/DONE
otherwise try
touch
that… could help. But I don’t understand why it would fail without, as it ought to just remove the whole folder first, then re-install…
could it be bad mode bits on that tree? https://github.com/pantsbuild/pants/pull/19648
h
I think I did this in the past with a different version of pants and have now upgraded since that original install.
So yeah could be that if that was reverted in this later version
The folder itself isn't read-only, but the contents inside are
Copy code
(3.8.10) ~/devel/monorepo (ent-969-hermetic-python)$ ls -lh ~/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/
total 8.0K
drwxrwxr-x 6 nathanael nathanael 4.0K Aug  3 17:26 3.8.16
(3.8.10) ~/devel/monorepo (ent-969-hermetic-python)$ ls -lh ~/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.8.16/
total 16K
dr-xr-xr-x 2 nathanael nathanael 4.0K Jun 21 20:36 bin
dr-xr-xr-x 3 nathanael nathanael 4.0K Jun 21 20:36 include
dr-xr-xr-x 4 nathanael nathanael 4.0K Jun 21 20:36 lib
dr-xr-xr-x 3 nathanael nathanael 4.0K Jun 21 20:36 share
Not sure why that would prevent removing the folder, though. It's still owned by my user.
Oh, guess you need write permissions to remove?
Yup, that did it
chmod -R 0770 <the folder>
let me remove it
After a fresh install, I now see read/write permissions
Copy code
(3.8.10) ~/devel/monorepo (ent-969-hermetic-python)$ ls -lh ~/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.8.16/
total 16K
drwxr-xr-x 2 nathanael nathanael 4.0K Nov 13 15:05 bin
-rw-rw-r-- 1 nathanael nathanael    0 Nov 13 15:05 DONE
drwxr-xr-x 3 nathanael nathanael 4.0K Nov 13 15:04 include
drwxr-xr-x 4 nathanael nathanael 4.0K Nov 13 15:04 lib
drwxr-xr-x 3 nathanael nathanael 4.0K Nov 13 15:04 share
Thanks a bunch for the quick help today!
👍 1