Hi all, has anyone run into this error when Pants ...
# general
l
Hi all, has anyone run into this error when Pants builds a pex for a resolve? In my case is failing due to one of my transitive dependencies: frozenlist. I’m also using the local environments in the screenshot
Copy code
ERROR: Could not install packages due to an OSError: [Errno 36] File name too long: '/home/anler/.cache/pants/named_caches/pex_root/installed_wheels/261b9f5d17cac914531331ff1b1d452125bf5daa05faf73b71d935485b0c510b/frozenlist-1.4.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.da5be96c993045cf9c6a7db06199c735.work
1
b
That's unfortunate. It looks similar to https://github.com/pantsbuild/pex/issues/2087
👍 1
l
Well, I just ditched ecryptfs and switched to full-disk encryption and is working. Seems like ecryptfs is the cause but couldn’t find any up-to-date bug report I can follow
e
This is a pretty well known limitation of ecryptfs: an old example, but lots of hits for "ecryptfs file name too long": https://bugs.launchpad.net/ecryptfs/+bug/344878
🙈 1
FWIW: This should be fixed by https://github.com/pantsbuild/pex/pull/2217
OK. It sounds like you've moved on from eCryptFS home dir encryption @lively-gpu-26436, but to close the loop, Pex 2.1.143 now supports this. To use this support you'd upgrade your Pants setup to use Pex 2.1.143 by adding this to `pants.toml`:
Copy code
[pex-cli]
version = "v2.1.143"
known_versions = [
  "v2.1.143|macos_arm64|7dba8776000b4f75bc9af850cb65b2dc7720ea211733e8cb5243c0b210ef3c19|4194291",
  "v2.1.143|macos_x86_64|7dba8776000b4f75bc9af850cb65b2dc7720ea211733e8cb5243c0b210ef3c19|4194291",
  "v2.1.143|linux_x86_64|7dba8776000b4f75bc9af850cb65b2dc7720ea211733e8cb5243c0b210ef3c19|4194291",
  "v2.1.143|linux_arm64|7dba8776000b4f75bc9af850cb65b2dc7720ea211733e8cb5243c0b210ef3c19|4194291"
]
🙏 1
🎉 1