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

scaf should fall back to python3 if python command is not found #386

Open
clshaw01 opened this issue Sep 19, 2024 · 0 comments
Open

scaf should fall back to python3 if python command is not found #386

clshaw01 opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@clshaw01
Copy link
Contributor

clshaw01 commented Sep 19, 2024

Currently, scaf errors out if python not found. If python is not found, try python3.

If neither is found, stop and give user a friendly error.

First check for python3, then python -- if neither, gracefully exit and ask user to install.

Example: python3 wasn't mapped to python, so it errored out:

/home/christine/.local/bin/scaf: line 129: python: command not found Waiting for authorization... /home/christine/.local/bin/scaf: line 125: python: command not found cat: code.txt: No such file or directory rm: cannot remove 'code.txt': No such file or directory Error: Access token was not retrieved.

@clshaw01 clshaw01 changed the title scaf should alert user if python not found scaf should fall back to python3 if python command is not found Sep 20, 2024
@abosio abosio self-assigned this Sep 20, 2024
abosio pushed a commit that referenced this issue Sep 20, 2024
abosio added a commit that referenced this issue Sep 21, 2024
Co-authored-by: abosio <abosio@sixfeetup.com>
github-actions bot pushed a commit that referenced this issue Sep 21, 2024
## [1.15.1](v1.15.0...v1.15.1) (2024-09-21)

### Bug Fixes

* check for python commands, fallback to python3 refs [#386](#386) ([#389](#389)) ([7510477](7510477))
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