I'm having `[Errno 36] File name too long` issues ...
# general
a
I'm having
[Errno 36] File name too long
issues with
./pants export
for exporting a virtual environment where wheel filenames become too long, e.g.
Copy code
/home/testbed/.cache/pants/named_caches/pex_root/venvs/e1e75faaaa6a38e9f0be6c444681c7d5b11de48d/ddab8011daaee380698ac2fb9701af18c90c03f6/bin/python -sE /home/testbed/.cache/pants/named_caches/pex_root/venvs/e1e75faaaa6a38e9f0be6c444681c7d5b11de48d/ddab8011daaee380698ac2fb9701af18c90c03f6/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --use-deprecated legacy-resolver --isolated -q --cache-dir /home/testbed/.cache/pants/named_caches/pex_root/pip_cache install --no-deps --no-index --only-binary :all: --no-warn-script-location --force-reinstall --ignore-installed --ignore-requires-python --prefix /home/testbed/.cache/pants/named_caches/pex_root/installed_wheels/ccf956da45290df6e809ea12c54c02ace7f8ff4d765d6d3dfb3655ee876ce58d/SQLAlchemy-1.4.49-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.2aca002656914abfbba5c77df376060d.work --no-compile /home/testbed/.cache/pants/named_caches/pex_root/downloads/ccf956da45290df6e809ea12c54c02ace7f8ff4d765d6d3dfb3655ee876ce58d/SQLAlchemy-1.4.49-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl exited with 1 and STDERR:
ERROR: Could not install packages due to an OSError: [Errno 36] File name too long: '/home/testbed/.cache/pants/named_caches/pex_root/installed_wheels/ccf956da45290df6e809ea12c54c02ace7f8ff4d765d6d3dfb3655ee876ce58d/SQLAlchemy-1.4.49-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.2aca002656914abfbba5c77df376060d.work'
what's going on with the
manylinux
versioning being appended repeated?
e
Dotted wheel tags are a thing: https://peps.python.org/pep-0425/#compressed-tag-sets Are you using ecryptfs home for encryption per chance? If so, the short answer is don't.
a
I’m not familiar with our disk encryption but we do have something set up. Sounds like I’m out of luck on the dotted wheel tags? What a strange way to tag something
e
Pants and Pex have configurable cache dirs, from phone but you can search knowing that.
@ancient-terabyte-9085
df -h
is one way to learn more about your mount setup quick.
👍 1
FWIW: This should be fixed by https://github.com/pantsbuild/pex/pull/2217 When Pex 2.1.143 is released (should be by 8/17) I'll post instructions here to upgrade your Pants config to it.
Ok @ancient-terabyte-9085, to upgrade your Pants setup to use Pex 2.1.143 with the fix, add 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"
]
a
Thanks, I'll give this a shot
worked like a charm, thanks! 👍
e
Excellent. Thanks for testing that out.