rhythmic-glass-66959
11/18/2024, 9:32 PMpants package ::
command using a private repo like Artifactory. It seems that the pants package pex doesn't respect `[python-repos].indexes`:
21:01:31.29 [INFO] waiting for pantsd to start...
21:01:32.39 [INFO] pantsd started
21:01:32.98 [INFO] Initializing scheduler...
21:01:33.12 [INFO] Initializing Nailgun pool for 24 processes...
21:01:38.23 [INFO] Scheduler initialized.
21:01:43.91 [INFO] Completed: Building build_backend.pex from <resource://pants.backend.python.subsystems/setuptools.lock>
21:01:43.92 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Building build_backend.pex from <resource://pants.backend.python.subsystems/setuptools.lock>' failed with exit code 1.
stdout:
stderr:
There were 2 errors downloading required artifacts:
1. setuptools 63.4.3 from <https://files.pythonhosted.org/packages/2a/a3/49c29680d6118273b992b40ebe881e8e899b8e26a4e951f37f223da8f862/setuptools-63.4.3-py3-none-any.whl>
ERROR: Could not install requirement setuptools==63.4.3 from <https://files.pythonhosted.org/packages/2a/a3/49c29680d6118273b992b40ebe881e8e899b8e26a4e951f37f223da8f862/setuptools-63.4.3-py3-none-any.whl> because of HTTP error 403 Client Error: Forbidden for url: <https://files.pythonhosted.org/packages/2a/a3/49c29680d6118273b992b40ebe881e8e899b8e26a4e951f37f223da8f862/setuptools-63.4.3-py3-none-any.whl> for URL <https://files.pythonhosted.org/packages/2a/a3/49c29680d6118273b992b40ebe881e8e899b8e26a4e951f37f223da8f862/setuptools-63.4.3-py3-none-any.whl>
2. wheel 0.37.1 from <https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl>
ERROR: Could not install requirement wheel==0.37.1 from <https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl> because of HTTP error 403 Client Error: Forbidden for url: <https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl> for URL <https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl>
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
It looks similar to this issue: https://github.com/pantsbuild/pants/issues/15675gorgeous-winter-99296
11/18/2024, 9:44 PM[python-repos].indexes
, I don't think it relates to that topic. This looks like an internal Pants tool being built; and those lockfiles are bundled with Pants.
I'd change the settings here to generate a custom lockfile/resolve and use that instead. You'll likely need to repeat this for every tool.
https://www.pantsbuild.org/stable/reference/subsystems/setuptoolsrhythmic-glass-66959
11/18/2024, 9:48 PMrhythmic-glass-66959
11/18/2024, 9:57 PMgorgeous-winter-99296
11/18/2024, 9:57 PM