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

Required plugin message is ambiguous #299

Closed
daviddavis opened this issue Jul 13, 2021 · 3 comments
Closed

Required plugin message is ambiguous #299

daviddavis opened this issue Jul 13, 2021 · 3 comments
Labels
bug Something isn't working (template-set) easy fix Good for newcomers
Milestone

Comments

@daviddavis
Copy link
Contributor

Run a pulp_python command (e.g. pulp python repository list) without pulp_python installed. You'll get an error:

Error: The server does not have 'python>=3.1.0.dev' installed, which is needed to use this command.

This resulted in some confusion because the user thought that the CLI was telling them that their version of Python was outdated. The error should probably say pulp_python instead of python.

@daviddavis daviddavis changed the title Required plugin message is ambigous Required plugin message is ambiguous Jul 13, 2021
@mdellweg
Copy link
Member

I agree that this is confusing. Even more so with pulp_python versions approaching 3.7 ...
If we do not want to carry the translation "app label" -> "python package" around, can we maybe reformulate to
"The server does not provide the component 'python>=3.1.0.dev', which is needed to use {this command}. See 'pulp status' for installed components."

Funny part: We used to report the package name in the status API...

@daviddavis
Copy link
Contributor Author

daviddavis commented Jul 14, 2021

Ah yea, I filed an issue here: https://pulp.plan.io/issues/9084. Maybe there is some way to clarify this better in the status api.

@mdellweg mdellweg added bug Something isn't working (template-set) easy fix Good for newcomers triaged labels Jul 21, 2021
@daviddavis
Copy link
Contributor Author

daviddavis commented Jul 21, 2021

The server does not provide the component 'python>=3.1.0.dev', which is needed to use {this command}. See 'pulp status' for installed components.

The error message looks good. I might be more specific though with "pulp component" or "plugin".

mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 23, 2021
@mdellweg mdellweg added this to the 0.11.0 milestone Jul 23, 2021
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 23, 2021
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 23, 2021
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working (template-set) easy fix Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants