-
-
Notifications
You must be signed in to change notification settings - Fork 690
Open
Labels
Description
Describe the bug
Cannot start Pants from launcher binary ~/.local/bin/pants.
Pants version
2.31.0
OS
Linux
Operating System: Red Hat Enterprise Linux 9.6 (Plow)
CPE OS Name: cpe:/o:redhat:enterprise_linux:9::baseos
Kernel: Linux 5.14.0-570.12.1.el9_6.x86_64
Additional info
Running the following after clean install after curl install script, from within repo with pants.toml and .pants.bootstrap.
> pants version
Downloading https://github.com/astral-sh/python-build-standalone/releases/download/20250612/cpython-3.9.23%2B20250612-x86_
[...]
Downloading https://github.com/astral-sh/python-build-standalone/releases/download/20250612/cpython-3.9.23%2B20250612-x86_
Traceback (most recent call last):
File "[$SCRATCH]/cache/scie/[HASH1]/cpython-3.9.23+20250612-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "[$SCRATCH]cache/scie/[HASH1]/cpython-3.9.23+20250612-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/__main__.py", line 233, in <module>
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/__main__.py", line 213, in boot
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/__main__.py", line 93, in __ensure_pex_installed__
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/.bootstrap/pex/layout.py", line 696, in ensure_installed
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/.bootstrap/pex/layout.py", line 326, in _ensure_installed
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/.bootstrap/pex/cache/access.py", line 91, in read_write
File "[$SCRATCH]/cache/scie/[HASH2]/tools.pex/.bootstrap/pex/cache/access.py", line 79, in _lock
OSError: [Errno 9] Bad file descriptor
Error: Failed to establish atomic directory [$SCRATCH]/cache/scie/[HASH3]/locks/configure-[HASH4]. Population of work directory failed: Boot binding command failed: exit status: 1
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.
Contents of pants.toml:
[GLOBAL]
pants_version = "2.31.0"
backend_packages = [
"pants.backend.python",
]
Contents of .pants.bootstrap:
export SCIE_BASE=$SCRATCH/cache/scie
export SCIE_CACHE=$SCRATCH/cache/nce
export PEX_ROOT=$SCRATCH/cache/pex
mkdir -p $SCRATCH/cache/scie $SCRATCH/cache/nce $SCRATCH/cache/pex
This doesn't work even when running with the default cache root directories (i.e. without .pants.bootstrap). In case it's relevant, I am working on a HPC cluster.
Reactions are currently unavailable