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 · 5 comments · May be fixed by #1951
Open
1 task done

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

atthasaeth opened this issue Oct 31, 2024 · 5 comments · May be fixed by #1951
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!

@albertnieto
Copy link

No news from this issue?

@Neutrovertido
Copy link

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

this did the trick for me

@tensor-works
Copy link

Same isssue hasn't moved

@chiptuned chiptuned linked a pull request Dec 15, 2024 that will close this issue
1 task
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

Successfully merging a pull request may close this issue.

6 participants