Hi folks, I'm seeing a weird complain of dependenc...
# general
c
Hi folks, I'm seeing a weird complain of dependency conflicts when running
pants package ...
Copy code
ERROR: Cannot install fastavro==1.8.2 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 fastavro==1.8.2
     The user requested (constraint) fastavro==1.8.2
Is it complaining the same dependency is conflicting with itself? I'm sure something else may be wrong, but trying to decipher what does the error message actually means. Any insights here? Thank you!
h
I think it is a pip thing. You have some kind of conflict somewhere. I think it would be pretty hard to help with that without having more context. Do you have a lock-file you can look at and see the constraints? I assume you also have only a single lock-file, I'm not sure if a multiple of them could somehow cause that...
b
That’s certainly a weird message! Someone might recognise the problem here, but you might also have to dig a bit to get to a reduced example, that’ll hopefully either reveal what you need to change or a maybe bug in pip or pex or pants. To pierce the pants layers and start working with the underlying tools directly, the “keep sandboxes” section of https://www.pantsbuild.org/docs/troubleshooting is relevant. Starting with the
__run.sh
script there allows reducing what’s happening. You could also try cutting out parts of your code to focus down on what’s the cause. In the best case, if you can get to a reproduction case that you can share, you’ll get much more direct help here 😄