hello! I'm seeing this error: ```❯ pants generate-...
# general
e
hello! I'm seeing this error:
Copy code
❯ pants generate-lockfiles
22:45:49.88 [INFO] Completed: Generate lockfile for python-default
22:45:49.88 [ERROR] 1 Exception encountered:

Engine traceback:
  in `generate-lockfiles` goal

ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:

stderr:
No distribution metadata found for fs-gcsfs==1.5.1.
I tried upgrading
pex
(via
[pex-cli]
) and downgrading
fs-gcsfs
but nothing helped. I see a couple other similar messages with different packages, but no resolution. Help?
h
What are your interpreter constraints?
e
interpreter_constraints = ["CPython==3.11.*"]
h
Ah, hmm, so that shouldn't be the issue. Sometimes having ICs with no upper bounds can cause resolves to fail because there is not yet a distribution for some later Python version.
But never mind, in any case that is not a pip error, it's a pex error.
Which Pants version is this?
e
Copy code
❯ pants --version
2.21.0
the context is that I'm attempting to try out Pants on a monorepo with several different Poetry projects. Not sure if that's relevant, I'm a complete beginner with Pants, unfortunately.
w
Related to the lack of wheels?
Seems to be this exact problem? using
setup_requires
in the library? John made a fork that uses a pyproject.toml following pep518 https://github.com/pantsbuild/pants/issues/19898#issuecomment-1730109755
PEP518 compliant https://github.com/sureshjoshi/gcsfs/commit/181c4058d440e965951cf4ed5d0cdac1a68926ec in requirements.txt (or wherever)
fs-gcsfs @ git+<https://github.com/sureshjoshi/gcsfs@181c4058d440e965951cf4ed5d0cdac1a68926ec>
pants generate-lockfiles resolve=python-default
works - no prob
e
sigh. Thanks for that, I'm fairly ignorant of the internals of Python packaging. Seems like a mess though.
w
Yep - I recommend you vendor that yourself though - or maybe PR to that repo, my repo will go bye bye
e
yeah for sure, thanks!