Getting KeyError error when trying to install GAM via curl command

125 views
Skip to first unread message

Shawon Crosen

unread,
Mar 13, 2017, 8:19:01 PM3/13/17
to GAM for G Suite
I'm getting a KeyError error hen running this curl command from the README page on the GAM repo: bash <(curl -s -S -L https://git.io/install-gam)

Here's the actual terminal output from the curl call: 

Good, you're running MacOS 10.12...

Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...

Getting file and download URL...

Traceback (most recent call last):
  File "<string>", line 16, in <module>
KeyError: 'assets'
Traceback (most recent call last):
  File "<string>", line 16, in <module>
KeyError: 'assets'
Downloading file  from  to /var/folders/2h/xzt0nxf56dz1x8dbvq9l0fl00000gp/T/tmp.qwvathNJ.

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Extracting archive to /Users/shawoncrosen/bin

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
ERROR: extracting the GAM archive with tar failed with error 1. Exiting.


I've tried running this in different python versions and tried running the raw curl command. My co-worker, who installed this morning, also got the same error when trying to install to a virtual environment this evening. 

Ross Scroggs

unread,
Mar 13, 2017, 8:36:16 PM3/13/17
to google-ap...@googlegroups.com
Shawon,

Download gam-4.12-macos.tar.xz into some folder, Downloads for instance.
In terminal:
cd ~/Downloads
tar -xvf gam-4.12-macos.tar.xz
This will create a gam folder, move it somewhere, ~ for instance or /usr/local.
Edit ~/.bash_aliases and add a line pointing to the gam executable
alias gam="/Users/xxx/gam/gam" or alias gam="/usr/local/gam/gam"
Execute that same command in your terminal window to have it take immediate effect.
Now issue the following commands and carefully follow directions:
gam create project
gam oauth create
gam user <nonadm...@domain.com> check serviceaccount

You should be good to go.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9876afea-5314-4c04-a2a5-4ca07e1a4edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages