Failed to execute script gam

125 views
Skip to first unread message

Martin Vonášek

unread,
Aug 10, 2019, 8:50:14 AM8/10/19
to GAM for G Suite
Hi,

I reinstall my os (Ubuntu 19.04.), instal gam: bash <(curl -s -S -L https://git.io/install-gam), create a project (copy ID, secret) and got this: 

That's it! Your GAM Project is created and ready to use. 

I typed command gam info user and start authorization - select continue and allow all in my browser and got this:

Traceback (most recent call last):
  File "gam.py", line 14761, in <module>
  File "gam.py", line 14129, in ProcessGAMCommand
  File "gam.py", line 10013, in doGetUserInfo
  File "gam.py", line 1312, in buildGAPIObject
  File "gam.py", line 1256, in getValidOauth2TxtCredentials
  File "gam.py", line 13268, in doRequestOAuth
  File "gam.py", line 7632, in _run_oauth_flow
  File "site-packages/google_auth_oauthlib/flow.py", line 442, in run_local_server
  File "site-packages/google_auth_oauthlib/flow.py", line 263, in fetch_token
  File "site-packages/requests_oauthlib/oauth2_session.py", line 307, in fetch_token
  File "site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 415, in parse_request_body_response
  File "site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 425, in parse_token_response
  File "site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 432, in validate_token_parameters
  File "site-packages/oauthlib/oauth2/rfc6749/errors.py", line 405, in raise_from_error
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) code_verifier or verifier is not needed.
[4989] Failed to execute script gam

I have tried it 3 or more times with same results - sometimes I couldn't open link for authorization (Error 400 in browser) and for first time I had to enable Google Cloud Platform for OU where is my admin account.

Thanks a lot for your respond

Martin Vonášek

unread,
Aug 11, 2019, 2:10:42 AM8/11/19
to GAM for G Suite
I don't know what to do - do you have any idea - please help?

Dne sobota 10. srpna 2019 14:50:14 UTC+2 Martin Vonášek napsal(a):

Martin Vonášek

unread,
Aug 12, 2019, 9:25:22 AM8/12/19
to GAM for G Suite
Maybe I have the same problem like this: https://github.com/jay0lee/GAM/issues/479. Can I delete all file in bin/gam and try it again, or uninstall gam (how can I do it?).
Thanks for your help


Dne sobota 10. srpna 2019 14:50:14 UTC+2 Martin Vonášek napsal(a):
Hi,

Martin Vonášek

unread,
Aug 22, 2019, 4:01:45 PM8/22/19
to GAM for G Suite
I have found the solution (maybe) - I tried to create a new project (after deleting 2 json files from gam folder) and authentification link I selected and copied manually to web browser (Vivaldi) and it worked (but after restart computer after creating project - the first attempt finished with same error in Firefox). 


Dne pondělí 12. srpna 2019 15:25:22 UTC+2 Martin Vonášek napsal(a):
Reply all
Reply to author
Forward
0 new messages