Hi, I have a transitive dependency that can’t be s...
# general
m
Hi, I have a transitive dependency that can’t be solved (found one incompatible version) although I can’t see any other package requires it in the lock file… you have any suggestions why this could happen and how to solve it?
b
Sorry for the trouble! It'll be hard for us to help you without more info. Can you share the error message? Even better would be a reduced example, but we can start with the errror.
m
Failed to resolve compatible artifacts from requirements.lock for 1 target: 1. /usr/bin/python3.8 failed to resolve all requirements for … Configured with: Build: True use_wheel: True Dependency on starlette not satisfied, 1 incompatible candidate found: 1.) starlette 0.43 does not satisfy the following requirements: <0.42.0, >=0.40.0 (via: fastapi-> starlette<0.42.0, >=0.40.0 )
Is there a way to ignore this and use the incompatible version?
b
I don't know. Pants is using the https://github.com/pex-tool/pex tool to create lockfiles, which in turn uses pip, so I suggest working outside of pants with those tools directly and then, once you have a working solution, we can translate that back to pants. https://www.pantsbuild.org/prerelease/docs/using-pants/troubleshooting-common-issues#debug-tip-inspect-the-sandbox-with---keep-sandboxes gives you access to the underlying command pants is invoking, to start reducing/editing.