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

Slightly improved NoCandidateFound error message. #614

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

vphilippon
Copy link
Member

@vphilippon vphilippon commented Nov 24, 2017

This should help a little, making the message less cryptic.
Still no "source of conflict" yet.
Fixes #352

Changelog-friendly one-liner: Slightly improved the NoCandidateFound error message.

Contributor checklist
  • Requested (or received) a review from another contributor
  • Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md afterwards).

@vphilippon vphilippon added this to the 1.11.0 milestone Nov 24, 2017
@@ -13,6 +13,10 @@ def __str__(self):
'Could not find a version that matches {}'.format(self.ireq),
'Tried: {}'.format(', '.join(str(version) for version in sorted_versions) or '(no version found at all)')
]
if sorted_versions:
lines.append('You probably have incompatible dependencies.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would try to take a more neutral tone, as this seems to be accusing. How about:
There are incompatible versions in solved versions of dependencies

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I'll change that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, I rephrased a bit

if sorted_versions:
lines.append('There are incompatible versions in the resolved dependencies.')
else:
lines.append('Was the PyPi repository reachable?')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know which pypi repository was tried, I would add it here. If it is an internal server, this will help diagnose errors vs public pypi. Small nit:

Is the $(pypi) repo reachable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There we go

@davidovich
Copy link
Contributor

Much better ;-) LGTM

@vphilippon vphilippon merged commit 7c13e6f into jazzband:master Nov 24, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants