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

"openai migrate" Error: Failed to download Grit CLI #1838

Open
1 task done
atthasaeth opened this issue Oct 31, 2024 · 2 comments
Open
1 task done

"openai migrate" Error: Failed to download Grit CLI #1838

atthasaeth opened this issue Oct 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@atthasaeth
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

When running the openai migrate command, it attempts to download the Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz, but the link appears to be broken or outdated and it response Error: Failed to download Grit CLI from https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz

To Reproduce

  1. Install the latest version of openai via pip: pip install openai --upgrade
  2. Observe the command attempting to download the file marzano-x86_64-unknown-linux-gnu.tar.gz.

I think that the current Grit releases on GitHub seem to have changed the prefix from marzano- to grit- in the file names, which is likely causing the download to fail.

Code snippets

No response

OS

Ubuntu 20.04 LTS

Python version

Python v3.11.4

Library version

openai 1.53.0

@atthasaeth atthasaeth added the bug Something isn't working label Oct 31, 2024
@mvmendes
Copy link

mvmendes commented Nov 5, 2024

I could bypass this bug is downloading grit and executing grit CLI , with "apply openai" parameters:

$ 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

$ curl -fsSL https://docs.grit.io/install | bash
downloading grit 0.1.0-alpha.1730315451 x86_64-unknown-linux-gnu
installing to /home/marcus/.grit/bin
  grit
everything's installed!

To add $HOME/.grit/bin to your PATH, either restart your shell or run:

    source $HOME/.grit/bin/env (sh, bash, zsh)
    source $HOME/.grit/bin/env.fish (fish)

$  source $HOME/.grit/bin/env 

$ grit apply openai

@adenisdeveloper
Copy link

grit apply openai

Thanks for the tip, it worked! I was having the same problem!

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

3 participants