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

"grit apply openai" stuck at Analyzing Finding files #1834

Open
1 task done
shivanraptor opened this issue Oct 30, 2024 · 1 comment
Open
1 task done

"grit apply openai" stuck at Analyzing Finding files #1834

shivanraptor opened this issue Oct 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shivanraptor
Copy link

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

The command grit apply openai gets stuck when executed in a folder containing 1 Python file. Its progress was stuck at:

Your working tree currently has untracked changes and Grit will rewrite files in place. Do you want to proceed? yes

Analyzing Finding files
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 0/1

It is stuck for an hour but no error is found.

To Reproduce

Using Ubuntu 22.04 LTS

  1. Install the latest version of openai via pip: pip install openai --upgrade
  2. Install grit via: curl -fsSL https://docs.grit.io/install | bash and add the newly installed grit to system path
  3. Navigate to the code folder, execute grit apply openai --verbose
  4. Here is the output:
Your working tree currently has untracked changes and Grit will rewrite files in place. Do you want to proceed? yes

Analyzing Finding files
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 0/1

I first used: openai migrate but ended up in error:

$ openai migrate
Downloading Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz
Error: Failed to download Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz

Code snippets

No response

OS

Ubuntu 22.04 LTS

Python version

Python 3.10.12

Library version

openai v1.52.2

@shivanraptor shivanraptor added the bug Something isn't working label Oct 30, 2024
@morgante
Copy link
Contributor

Please share the output of grit doctor and a (redacted) copy of the file you're trying to run on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants