Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message "Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies." is not always right #6091

Open
Kroppeb opened this issue Feb 12, 2024 · 2 comments

Comments

@Kroppeb
Copy link

Kroppeb commented Feb 12, 2024

I have encountered the following message a few times:

Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.

Some other cases I remember:

  • The package being installed doesn't provide the modules it claims it does (we had a typo)
  • The package has dependencies in form of package @ url where the url is invalid.

The suggestion to use pipenv run pip install <requirement_name> does work, as it gives a more usable error. But is a bit useless when you don't know which dependency is causing the issue.

@matteius
Copy link
Member

I've usually been able to narrow it down by looking at the output of the lock generation when using the -v or --verbose flag.

@Kroppeb
Copy link
Author

Kroppeb commented Mar 21, 2024

Yeah, that does help sometimes. Given the fact that pip has better errors, I suppose my question is: is there a way that these could be given to the user somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants