got-your-back icon indicating copy to clipboard operation
got-your-back copied to clipboard

bug: Homebrew error `No such file or directory`

Open jlarmstrongiv opened this issue 2 years ago • 1 comments

Please confirm the following:

  • [x] I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
  • [x] I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki

Full steps to reproduce the issue:

  1. brew install gyb
  2. gyb --action create-project --email [email protected]
  3. See the error
    • [Errno 2] No such file or directory: '/opt/homebrew/etc/gyb/client_secrets.json'
    • ERROR: [Errno 2] No such file or directory: '/usr/local/etc/gyb/oauth2service.json'

Expected outcome (what are you trying to do?):

No errors

Actual outcome (what errors or bad behavior do you see instead?):

  • [Errno 2] No such file or directory: '/opt/homebrew/etc/gyb/client_secrets.json'
  • ERROR: [Errno 2] No such file or directory: '/usr/local/etc/gyb/oauth2service.json'

Fixes:

Ensure the directory exists on the correct architecture (probably easier to do in the python script)

  • x86_64 mkdir -p /usr/local/etc/gyb
  • arm64 mkdir -p /opt/homebrew/etc/gyb

Once those folders exist, the scripts run without any issues

jlarmstrongiv avatar Dec 10 '23 19:12 jlarmstrongiv

Same issue...

iMonZ avatar Sep 16 '24 13:09 iMonZ