big-crayon-94763
06/22/2023, 4:06 PMProcessExecutionFailure: Process 'Building dockerfile_parser.pex from <resource://pants.backend.docker.subsystems/dockerfile.lock>' failed with exit code 1.
further on:
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [66 lines of output]
...
running build_ext
$ GOPATH=/home/kevin.hughes/.cache/pants/named_caches/pex_root/pip_cache/.tmp/tmpksv0d6wu go get -d
go: <http://github.com/moby/buildkit@v0.9.0|github.com/moby/buildkit@v0.9.0>: reading <http://github.com/moby/buildkit/go.mod|github.com/moby/buildkit/go.mod> at revision v0.9.0: git ls-remote -q origin in /home/kevin.hughes/.cache/pants/named_caches/pex_root/pip_cache/.tmp/tmpksv0d6wu/pkg/mod/cache/vcs/caea0070b26a07cb7b120d5c2f77be316b3b67041a0fcead46cb7780b641be9a: exit status 128:
...
fatal: Could not read from remote repository.
Has anyone encountered similar or have some ideas on where to point me? I am not really sure how to debug furtherbroad-processor-92400
06/22/2023, 8:07 PMbig-crayon-94763
06/22/2023, 8:13 PMbroad-processor-92400
06/22/2023, 8:39 PMbig-crayon-94763
06/22/2023, 8:41 PMbig-crayon-94763
06/22/2023, 8:41 PMbroad-processor-92400
06/22/2023, 9:59 PM__run.sh
didn't seem to be reproducing the issue. One option would be editing the script to add more logging/verbosity and see if that surfaces the problem (but, if you can't reproduce the problem without making changes, who knows if that's going to be useful...)
Another piece outside a sandbox might be setting https://www.pantsbuild.org/docs/reference-pex#verbosity (e.g. pants --pex-verbosity=3 ...
) and seeing if that has any useful output. 🤷♂️broad-processor-92400
06/22/2023, 10:01 PMsetup.py
, can you work out what pypi package it is running it for? If so, does running pip install --no-binary :all: ...
directly (preferably, with the same interpreter) work outside pants?big-crayon-94763
06/22/2023, 11:23 PMERROR: Failed building wheel for dockerfile
which makes sense given the go get failure. Running pip install dockerfile
directly doesn’t fail but is currently hanging or taking a very long time. Waiting for it now… It did ask for my yubikey pin for ssh so that could be the issue inside of pants. I’ll have to spend some more time to make sure it is using the same interpreter but for now it seems to be stuck the same as when I ran __run.sh manually.big-crayon-94763
06/23/2023, 12:18 AMpip install dockerfile
did end up working. I had to install wheel manually and then I think things were quicker as well. The issue is probably how ssh is being asked for / used in the process. I’ll keep digging there when I get back to thisbig-crayon-94763
06/27/2023, 5:17 PM