-
Notifications
You must be signed in to change notification settings - Fork 188
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
Wrap python2.7 error message with user-friendly error message #362
Labels
grokability
Make the project easier to approach and understand
intermediate
Intermediate level issue
Milestone
Comments
rnjudge
added
grokability
Make the project easier to approach and understand
intermediate
Intermediate level issue
labels
Jul 23, 2019
I am a beginner, but I would like to work on this issue, can I? |
@AyahRamahi Go for it! We always love help. Let us know if you have any questions. |
PrajwalM2212
added a commit
to PrajwalM2212/tern
that referenced
this issue
Aug 28, 2019
This PR Wraps python2.7 error message with user-friendly error message Resolves tern-tools#362 Signed-off-by: Prajwal M <[email protected]
PrajwalM2212
added a commit
to PrajwalM2212/tern
that referenced
this issue
Aug 28, 2019
Wraps python2.7 error message with user-friendly error message Resolves tern-tools#362 Signed-off-by: Prajwal M <[email protected]>
nishakm
pushed a commit
that referenced
this issue
Aug 28, 2019
Wraps python2.7 error message with user-friendly error message Resolves #362 Signed-off-by: Prajwal M <[email protected]>
rnjudge
pushed a commit
that referenced
this issue
Aug 28, 2019
Wraps python2.7 error message with user-friendly error message Resolves #362 Signed-off-by: Prajwal M <[email protected]>
rnjudge
pushed a commit
to rnjudge/tern
that referenced
this issue
Jun 5, 2020
Wraps python2.7 error message with user-friendly error message Resolves tern-tools#362 Signed-off-by: Prajwal M <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
grokability
Make the project easier to approach and understand
intermediate
Intermediate level issue
Describe the Feature
If you run Tern in an environment that defaults to Python2.7 (even with python3 installed) you get the following output:
I propose wrapping the raw output with a more user-friendly error message. Something to the effect of "Error running Tern. Please check that python3 is configured as default."
Use Cases
This would be helpful to new users who do think they have python3 installed on their system but do not have it configured as default.
Implementation Changes
The error is being hit in
tern/classes/docker_image.py.
Might consider using thetraceback
library: https://docs.python.org/3/library/traceback.htmlAnother option would be for Tern to check for dependencies somehow before running.
The text was updated successfully, but these errors were encountered: