Skip to content

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

@shivanraptor

Description

@shivanraptor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions