Code Monkey home page Code Monkey logo

stackexplain's Introduction

StackExplain

Explain your error message in plain English using ChatGPT. Just run your file with the stackexplain command.

Demo

Installation

You can install stackexplain with pip:

$ pip3 install stackexplain

Usage

Running a file with stackexplain is just as easy as running it normally:

$ stackexplain [file_path]

This will execute the file and, if an error is thrown, send the stack trace to ChatGPT and display its explanation in your terminal.

Note that when you first use stackexplain, you'll be asked to enter your OpenAI credentials.

Supported file types: Python, Node.js, Ruby, Golang, and Java.

stackexplain's People

Contributors

shobrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stackexplain's Issues

No module named 'revChatGPT.revChatGPT

pip install stackexplain works fine. On first run, I get the following error:

stackexplain error.py
Traceback (most recent call last):
  File "/opt/homebrew/bin/stackexplain", line 5, in <module>
    from stackexplain.stackexplain import main
  File "/opt/homebrew/lib/python3.10/site-packages/stackexplain/stackexplain.py", line 5, in <module>
    import stackexplain.utilities.chatgpt as gpt
  File "/opt/homebrew/lib/python3.10/site-packages/stackexplain/utilities/chatgpt.py", line 6, in <module>
    from revChatGPT.revChatGPT import Chatbot
ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'

pip list shows revChatGPT is indeed installed.

python -m pip --version
pip 22.3.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)

python --version
Python 3.10.9

Unable to change the credentials

The first time I executed the program I inserted a wrong password and the program stored that wrong credential. And now each time I execute the stackexplain a prompt appears saying that the password is wrong, and there's no way to change the credential store in your software. Please, just add a command line argument to change the credential OR check that the credential stored in your program is actually valid for an account of OpenAI.

Edit: I have temporarily solved it by hard coding my email and password in text plain in the program, but that's stupidly unsafe.

Edit 2: I just created a fork with that fixed and I made a pull request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.