openai / openai-python

The official Python library for the OpenAI API
https://pypi.org/project/openai/
Apache License 2.0
22.82k stars 3.19k forks source link

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

Open shivanraptor opened 5 days ago

shivanraptor commented 5 days ago

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

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
morgante commented 5 days ago

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