Hi all, I’m installing pants in a VM, after instal...
# general
j
Hi all, I’m installing pants in a VM, after installation, it fails to run any pants commands. Here is the error I got
Copy code
...
STDERR:
/home/yanqiang/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/pex_root/venvs/155fee4775d334e90ed3592a631df3a2877cdf3b/a5b0dc1d751801b1b7e559cef2b63322d40d94e7.lck.work/bin/python3.9: error while loading shared libraries: /home/yanqiang/.cache/nce/c55ee58a557d20bd4b109870e5a01b264c0d501ce817cce29502b2552903834d/bindings/pex_root/venvs/155fee4775d334e90ed3592a631df3a2877cdf3b/a5b0dc1d751801b1b7e559cef2b63322d40d94e7.lck.work/bin/../lib/libpython3.9.so.1.0: cannot open shared object file: No such file or directory

Error: Isolates your Pants from the elements.

Please select from the following boot commands:

scie-pants
bootstrap-tools
pants
pants-debug
update

You can select a boot command by passing it as the 1st argument or else by setting the SCIE_BOOT environment variable.
I’ve tried to set
SCIE_BOOT
but didn’t help
e
Can you run this and report back with full output?:
find ~/.cache/nce/ -name libpython3.9.so.1.0 | while read f; do echo $f && ldd $f && echo; done
For me that's:
Copy code
$ find ~/.cache/nce/ -name libpython3.9.so.1.0 | while read f; do echo $f && ldd $f && echo; done
/home/jsirois/.cache/nce/e63d0c00a499e0202ba7a0f53ce69fca6d30237af39af9bc3c76bce6c7bf14d7/cpython-3.9.14+20221002-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/libpython3.9.so.1.0
        linux-vdso.so.1 (0x00007fff899e8000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fc06596f000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc06596a000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc065883000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc06587e000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc065879000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fc065872000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc06564a000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc066da4000)

/home/jsirois/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/libpython3.9.so.1.0
        linux-vdso.so.1 (0x00007ffd7c1fd000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fa6c928d000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa6c9288000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa6c91a1000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa6c919c000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa6c9197000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fa6c9190000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa6c8f68000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa6ca6af000)
You can buy me a coke if you fail to link
libcrypt.so.1
(https://github.com/indygreg/python-build-standalone/issues/113).
j
Copy code
find ~/.cache/nce/ -name libpython3.9.so.1.0 | while read f; do echo $f && ldd $f && echo; done
/home/yanqiang/.cache/nce/2b6e146234a4ef2a8946081fc3fbfffe0765b80b690425a49ebe40b47c33445b/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/libpython3.9.so.1.0
	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007ffffebb9000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffffebb1000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffffea6d000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ffffea63000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ffffea41000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007ffffea3c000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffffe868000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ffffffd3000)
e
I'm not sure then. It looks like
ldd
doesn't complain; so I'm not sure what's up. What does
env | grep LD
show?
j
nothing show up
except it’s not in action runner, and I’ve tried the
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
, didn’t help.