Anyone using Pants in NixOS ? I am having problems...
# general
a
Anyone using Pants in NixOS ? I am having problems running recommended installation method of pants, using manual installation method. Everything was fine until Nix version 23.05 via setting
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib"
in shell.nix whenever I run pants. After upgrading to Nix version to 23.11, I am facing errors from that solution as well
Copy code
ImportError: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/myw67gkgayf3s2mniij7zwd79lxy8v0k-gcc-12.3.0-lib/lib/libstdc++.so.6)
Any help would be appreciated.
1
b
Seems more like a nix issue than a pants one 😬
f
what is the manual method recommended?
a
@flat-zoo-31952 I somehow made the manual installation method work again in Nix version 23.11. Installer script's
pants
was not working before either. I have been able to only make this method work > https://www.pantsbuild.org/docs/manual-installation#manual-installation I am unable to make the installer script work. I get the following error after installation upon running `pants`:
Copy code
Error: Failed to establish atomic directory /home/namit/.cache/nce/3d6643e46b53e4cc0b2a0d5c768866226ddce3de1f57f80c4a02d8d39800fa8e/locks/configure-5a743b6906496f9f3407a29d197cc9e9399f8daf7eeddb64eb04ec274cbb8192. Population of work directory failed: Failed to launch boot binding: Failed to spawn "/home/namit/.cache/nce/f3ff38b1ccae7dcebd8bbf2e533c9a984fac881de0ffd1636fbb61842bd924de/cpython-3.9.18+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz/python/bin/python3.9" ["/home/namit/.cache/nce/ab17472609e6239f40fe8557bcf7efd7df515e9136724bd619f3febb4ed73e41/tools.pex", "configure-pants", "--ptex-path", "/home/namit/.cache/nce/22652cf60b12e7a187ea0cf21d7bc9d8234bbb630fa94ca6f9c28655bd6a81fb/ptex-linux-x86_64", "--pants-version", "2.18", "--pants-sha", "", "--pants-config", "", "--github-api-bearer-token", "", "/home/namit/.cache/nce/3d6643e46b53e4cc0b2a0d5c768866226ddce3de1f57f80c4a02d8d39800fa8e/bindings"]: No such file or directory (os error 2)

Isolates your Pants from the elements.

Please select from the following boot commands:

<default> (when SCIE_BOOT is not set in the environment)  Detects the current Pants installation and launches it.
bootstrap-tools                                           Introspection tools for the Pants bootstrap process.
update                                                    Update scie-pants.

You can select a boot command by setting the SCIE_BOOT environment variable.
f
ah so using the scie-pants version did not work? that's a problem, because I think there are plans to discontinue support for the
./pants
scripts at some point