proud-dentist-22844
03/12/2023, 2:34 AM./pants help tools
shows is using pex 2.1.126).
Any hints on debugging would be appreciated. error message in the🧵proud-dentist-22844
03/12/2023, 2:34 AMProcessExecutionFailure: Process 'Generate lockfile for st2' failed with exit code 1.
stdout:
stderr:
Failed to import pip: No module named 'pip'
Download pip:
curl <https://bootstrap.pypa.io/get-pip.py> | python
<snip 2 more pip download errors>
<snip "running dist_info" and a bunch of "creating" and "writing" lines>
Could not gather lock metadata for 3 projects with source artifacts:
1. /tmp/pants-sandbox-9iomkx/.tmp/tmppu9xjjqs/usr.bin.python3.6m/st2-auth-backend-flat-file-0.1.1.zip: Executing /home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/52748ab20d11c253b0b94c5711d08220c8d6e353/5985ed09b49a653d6596b0e14d134c5456cf1a9f/bin/python -sE /home/cognifloyd/.cache/pants/named_caches/pex_root/venvs/52748ab20d11c253b0b94c5711d08220c8d6e353/5985ed09b49a653d6596b0e14d134c5456cf1a9f/pex -c 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-9iomkx/.tmp/tmp5fg3n042/build',), **{})
with open('/tmp/pants-sandbox-9iomkx/.tmp/tmpgryhk1b5', "w") as fp:
fp.write(result)
failed with 1
<snip 2 other equivalent error messages but for different zips>
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
proud-dentist-22844
03/12/2023, 2:37 AMproud-dentist-22844
03/12/2023, 2:40 AMst2-auth-backend-flat-file @ git+<https://github.com/StackStorm/st2-auth-backend-flat-file.git@master>
st2-auth-ldap @ git+<https://github.com/StackStorm/st2-auth-ldap.git@master>
st2-rbac-backend @ git+<https://github.com/StackStorm/st2-rbac-backend.git@master>
proud-dentist-22844
03/12/2023, 3:49 AMenough-analyst-54434
03/12/2023, 4:11 AMproud-dentist-22844
03/13/2023, 3:25 PMenough-analyst-54434
03/13/2023, 3:55 PMproud-dentist-22844
03/15/2023, 6:06 PMenough-analyst-54434
03/15/2023, 6:10 PMproud-dentist-22844
03/15/2023, 6:11 PMthousands-plumber-33255
04/21/2023, 1:40 PMCould not gather lock metadata for 1 project with source artifacts:
1. /tmp/pants-sandbox-Fusvjh/.tmp/tmp6341hm_u/myorg.dist.export.python.virtualenvs.default.3.8.16.bin.python3.8/cairocffi-1.5.1.tar.gz: Executing /tmp/named_caches/pex_root/venvs/b9549377f92ee3eff1e9e1fa14bb6cb3d0147571/5fd7049af63e03f347278c89401424cd9731df9a/bin/python -sE /tmp/named_caches/pex_root/venvs/b9549377f92ee3eff1e9e1fa14bb6cb3d0147571/5fd7049af63e03f347278c89401424cd9731df9a/pex -c import sys
import build
if not hasattr(build, 'prepare_metadata_for_build_wheel'):
sys.exit(75)
result = build.prepare_metadata_for_build_wheel(*('/tmp/pants-sandbox-Fusvjh/.tmp/tmpjtfl64d3/build',), **{})
with open('/tmp/pants-sandbox-Fusvjh/.tmp/tmptd9v7we7', "w") as fp:
fp.write(result)
failed with 1
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
Looks like it is due to the a new version of the package with only this commit: https://github.com/Kozea/cairocffi/commit/e70945dd27ec11d931b604da03c88adcb4de9440 Can you explain why so I can file an issue there?thousands-plumber-33255
04/21/2023, 1:54 PMenough-analyst-54434
04/21/2023, 2:12 PMenough-analyst-54434
04/21/2023, 3:20 PMdiscovered packages -- ['cairocffi']
running dist_info
creating /tmp/tmpk_oljxf2/build/cairocffi.egg-info
writing /tmp/tmpk_oljxf2/build/cairocffi.egg-info/PKG-INFO
writing dependency_links to /tmp/tmpk_oljxf2/build/cairocffi.egg-info/dependency_links.txt
writing requirements to /tmp/tmpk_oljxf2/build/cairocffi.egg-info/requires.txt
writing top-level names to /tmp/tmpk_oljxf2/build/cairocffi.egg-info/top_level.txt
writing manifest file '/tmp/tmpk_oljxf2/build/cairocffi.egg-info/SOURCES.txt'
reading manifest file '/tmp/tmpk_oljxf2/build/cairocffi.egg-info/SOURCES.txt'
reading manifest template '<http://MANIFEST.in|MANIFEST.in>'
adding license file 'LICENSE'
writing manifest file '/tmp/tmpk_oljxf2/build/cairocffi.egg-info/SOURCES.txt'
creating '/tmp/tmpk_oljxf2/build/cairocffi-1.5.1.dist-info'
error: invalid command 'bdist_wheel'
Could not gather lock metadata for 1 project with source artifacts:
So, that's invalid command 'bdist_wheel'
and that's because the build system requires omits wheel: https://github.com/Kozea/cairocffi/blob/b48a5b3776490ded8931dd8e0e92db91178ead5e/pyproject.toml#L1-L2
I have to read some specs to see if that is a bug on their part or on Pex's part. A short term workaround though is to fork the project and add wheel
to those requirements and change your cairocffi requirement to a vcs requirement on your fork.enough-analyst-54434
04/21/2023, 3:21 PMenough-analyst-54434
04/21/2023, 3:46 PMenough-analyst-54434
04/21/2023, 4:05 PMget_requires_for_build_wheel
when its present before calling `prepare_metadata_for_build_wheel`(https://peps.python.org/pep-0517/#get-requires-for-build-wheel).enough-analyst-54434
04/21/2023, 4:15 PMenough-analyst-54434
04/22/2023, 8:26 AM[pex-cli]
version = "v2.1.134"
known_versions = [
"v2.1.134|macos_arm64|82b24645769c19483c1306c1ba7a888471a5e1df3a2b538788bc7e0d1b20dbf0|4085867",
"v2.1.134|macos_x86_64|82b24645769c19483c1306c1ba7a888471a5e1df3a2b538788bc7e0d1b20dbf0|4085867",
"v2.1.134|linux_x86_64|82b24645769c19483c1306c1ba7a888471a5e1df3a2b538788bc7e0d1b20dbf0|4085867",
"v2.1.134|linux_arm64|82b24645769c19483c1306c1ba7a888471a5e1df3a2b538788bc7e0d1b20dbf0|4085867"
]
thousands-plumber-33255
04/24/2023, 9:16 AMthousands-plumber-33255
04/24/2023, 9:18 AMthousands-plumber-33255
04/24/2023, 9:18 AMenough-analyst-54434
04/24/2023, 6:02 PM