-
Notifications
You must be signed in to change notification settings - Fork 436
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
--python python3.11 results in an error #1150
Comments
I just noticed that the same behaviour - help text and error / traceback - occur with
|
I see different behaviour if the python launcher is not installed ( https://python-launcher.app/ / https://github.com/brettcannon/python-launcher ). Testing on Ubuntu 22.04 with/without the Python launcherCommand using executable name:
Output:
Command using version number:
Output:
Commands to install the python launcher:
Now the behaviour matches the initial bug report. |
@maxwell-k would my linked PR fix this issue? this would essentially make the command with |
After more testing I think that there are two parts to this issue: The first part, emphasised in the table below, would be fixed by #1186 . The second part is the content of the tracebacks. There are two reasons that might produce a trace back here: (1) the launcher is not installed or (2) the requested version of Python is not installed. It is a leap from the displayed tracebacks (examples in #1186 (comment) ) to the underlying cause. In my opinion, the next steps here depend on if #1186 is accepted. Certain invocations of pipx like the example below require that the launcher must be installed. For these, should pipx display a warning if the launcher is not installed?
Today (pipx 1.4.1) including the full path is the only invocation that works both with the launcher installed and absent:
|
Thanks for having a thorough look at this @maxwell-k! I will take some time this weekend to be able to reproduce your examples and see if I can come up with a good solution to the tracebacks as well 👍 |
Describe the bug
--help
explains thatpipx run
supports--python python3.11
.--python 3.11
python-launcher
package installed on Fedora 38How to reproduce
Command to reproduce this bug:
Error message:
Command to show
pipx
version:Output:
Also tested with:
Expected behavior
Command to show help:
Excerpt from help:
I therefore expect the two commands below to be equivalent:
They should both display a mooing cow:
The text was updated successfully, but these errors were encountered: