Explain your error message in plain English using ChatGPT. Just run your file with the stackexplain
command.
You can install stackexplain
with pip:
$ pip3 install stackexplain
Running a file with stackexplain
is just as easy as running it normally:
$ stackexplain <command_line_argument> [<additional_arguments>...]
This will execute the command and, if an error is thrown, send the stack trace to ChatGPT and display its explanation in your terminal.
Note: OpenAI API key is required in an environment variable called OPENAI_API_KEY