cool-easter-32542
11/14/2024, 1:49 PMwheelshouse. When generating lock files, pants identify .whl files in it successfully. But when building pex, an error is returned that the dependency file was not found.
pants.toml
[python-repos]
indexes = [
'<https://pypi-proxy.ptsecurity.com>',
]
find_links = ["file://%(buildroot)s/wheelshouse"]
output:
16:38:51.92 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Building 37 requirements for ... failed with exit code 1.
stdout:
stderr:
There was 1 error downloading required artifacts:
1. tiktoken 0.7 from file:///Users/<PATH>/wheelshouse/tiktoken-0.7.0-cp312-cp312-linux_x86_64.whl
[Errno 2] No such file or directory: '/Users/<PATH>/wheelshouse/tiktoken-0.7.0-cp312-cp312-linux_x86_64.whl'
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
P.S. the correct location of the files is hidden under the PATH
pantsbuild/pants