nutritious-sunset-29053
04/02/2025, 3:13 PMERROR: Cannot install jsonschema==4.19.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts>
The conflict is caused by:
The user requested jsonschema==4.19.1
The user requested (constraint) jsonschema==4.23.0
jsonschema==4.19.1 is listed in the versions that Pants has found to install. But it's not found at all in my constraints or requirements files. So it must be coming from one of the dependencies of the app.
I can run pants dependencies --dependencies-transitive {target} but that only tells me the named dependencies of the different services and libraries
...
requirements/python#PyYAML
requirements/python#aiohttp
requirements/python#aiohttp-socks
requirements/python#boto3
requirements/python#boto3-stubs
requirements/python#colorama
requirements/python#cryptography
...
How can I get the actual versions of real packages that are going to get installed?
Ideally I want to see something like
requested foobar==1.2.3; depends on [jsonschema==4.19.1]breezy-twilight-65275
04/03/2025, 8:17 AMpants generate-lockfiles
https://www.pantsbuild.org/2.24/docs/python/overview/lockfilesnutritious-sunset-29053
04/03/2025, 10:11 AMrequirement_constraints instead of enable_resolves
but even if we swap, that doesn't answer my question, which is
If there's a conflict, how do we assess where the two conflicting packages are coming from?gorgeous-winter-99296
04/03/2025, 8:45 PMpex3 lock create -r requirements.txt --constraints constraints.txt $$other_args_you_need