You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great little utility and I hope it is able to be maintained.
As you have probably noticed at pypa/pip#3813 there was a big issue around the message which should be shown to the user, regardless of what changes might be made.
Unfortunately I think pybin retains some of these issues of documentation and understandability in terms of the guidance and messages shown, but I think they may be easily fixed with your help.
Fix 1: Change the github README instructions so that users run python3 -m pybin
I suffer from the Debian curse of no .local/bin in my $PATH . Of course, this means that it is impossible to run pybin which is in .local/bin, which defeats its own purpose. Running the 'package main' of pybin using the -m option works regardless if .local/bin is on the path or not.
Fix 2: Provide an instruction showing how to fix the issue
I ran the following...
python3 -m pybin
The user bin directory `/home/cefn/.local/bin` is not in PATH.
...but I was disappointed that it didn't offer a fix. It should instead read as follows.
python3 -m pybin
The user bin directory `/home/cefn/.local/bin` is not in PATH.
Run type the following line and press enter to fix your path...
python3 -m pybin put
Alternatively you could have pybin by default offer an interactive prompt to fix a non-existent path, with flags to override interactive (do nothing) or force (change the path non-interactively).
Success!
I ran...
python3 -m pybin put
Success!
..and it had successfully added the path line to the end of my .bashrc. Brilliant! This will be very useful for me as an educator working with learners who may be following my instructions to install python3 at home, as part of the VGKits Vanguard project.
Thanks for your intervention. It could save a world of pain for lots of people.
The text was updated successfully, but these errors were encountered:
This is a great little utility and I hope it is able to be maintained.
As you have probably noticed at pypa/pip#3813 there was a big issue around the message which should be shown to the user, regardless of what changes might be made.
Unfortunately I think pybin retains some of these issues of documentation and understandability in terms of the guidance and messages shown, but I think they may be easily fixed with your help.
Fix 1: Change the github README instructions so that users run
python3 -m pybin
I suffer from the Debian curse of no .local/bin in my $PATH . Of course, this means that it is impossible to run pybin which is in .local/bin, which defeats its own purpose. Running the 'package main' of pybin using the -m option works regardless if .local/bin is on the path or not.
Fix 2: Provide an instruction showing how to fix the issue
I ran the following...
...but I was disappointed that it didn't offer a fix. It should instead read as follows.
Alternatively you could have pybin by default offer an interactive prompt to fix a non-existent path, with flags to override interactive (do nothing) or force (change the path non-interactively).
Success!
I ran...
..and it had successfully added the path line to the end of my .bashrc. Brilliant! This will be very useful for me as an educator working with learners who may be following my instructions to install python3 at home, as part of the VGKits Vanguard project.
Thanks for your intervention. It could save a world of pain for lots of people.
The text was updated successfully, but these errors were encountered: