We've been trying to move to lockfiles, more and m...
# general
a
We've been trying to move to lockfiles, more and more lately, and aside the other issues we're facing, we have issues with some packages that fail when pants tries to run whatever it tries to run whatever target it uses to get the deps, but work just fine when installing. How can one handle that?
c
it would help if you could be more specific. Command executed with the error output you get along with packages involved etc. A reproduction is ideal of course, if possible 😉
a
The first example is
fastparquet
, when we try to generate a lockfile for that, we get:
Copy code
Could not gather lock metadata for 1 project with source artifacts:
1. /tmp/pants-sandbox-LBzkWx/.tmp/tmp_f23fy6_/home.cris.birzan..pyenv.versions.3.10.9.bin.python3.10/fastparquet-0.4.1.tar.gz: Executing /home/cris.birzan/.cache/pants/named_caches/pex_root/venvs/aea67ebeb0155c7b43fefa35d59b855c2e06cc79/abd4a6124f409cfec33d10030d1b7b266ff3990a/bin/python -sE /home/cris.birzan/.cache/pants/named_caches/pex_root/venvs/aea67ebeb0155c7b43fefa35d59b855c2e06cc79/abd4a6124f409cfec33d10030d1b7b266ff3990a/pex -c import json
import sys

import setuptools.build_meta


if not hasattr(setuptools.build_meta.__legacy__, 'prepare_metadata_for_build_wheel'):
    sys.exit(75)

result = setuptools.build_meta.__legacy__.prepare_metadata_for_build_wheel(*('/tmp/pants-sandbox-LBzkWx/.tmp/tmphrr8efht/build',), **{})
with open('/tmp/pants-sandbox-LBzkWx/.tmp/tmph_l36xpk', "w") as fp:
    json.dump(result, fp)
 failed with 1