New to Gam trouble running for the first time

653 views
Skip to first unread message

Chris Allison

unread,
Oct 25, 2016, 4:23:18 AM10/25/16
to GAM for G Suite
I have decompressed the file gam-3.72-macos.tar.xz to ~/gam

to do this, I used: tar xf gam-3.72-macos.tar.xz

Running this command, created the gam folder in my home directory. It contains four files: 

gam
lastupdatecheck.txt
LICENSE
whatsnew.txt

However, in the instructions it says to run:

python gam.py info user

When i do that, I get the following output:

python: can't open file 'gam.py': [Errno 2] No such file or directory


After that, I did: python --version to verify that I had this on my Mac (OS 10.11 Yosemie) and got this output: 


Python 2.7.10


My question is, why do the instructions ask me to run the "gam.py" file if there is no "gam.py" file from the uncompressed tar file? It is just "gam" as stated above. 


I tried renaming that gam file to gam.py and that did not work either.


Any suggestions? Any direction would be appreciated. 


Thanks!










James Hatz

unread,
Oct 25, 2016, 9:45:31 AM10/25/16
to GAM for G Suite

Here is what I did when I used to run GAM on a mac:

To make an alias in terminal so you don’t have to type out the whole command path:

alias gam= “python gam/gam.py”


Note - this only works on a temporary basis - to make permanent follow this:

If you assign an alias using the above method, then it will only be available for the current terminal session. Once you close the terminal window, the alias will no longer be available. To make the alias permanent, you will need to edit a file called “.bash_profile” by running the following command:

nano ~/.bash_profile


This will open nano (a command line text editor). Use the arrow keys to place the cursor at the bottom of the file, and type in the aliases that you wish to use, one per line, just as you did when creating temporary aliases. When you are done, press Control + O (Write Out) to save the file. Press Command + X to exit nano and go back to the command line.

When you quit and re-open the Terminal application, your aliases will work without having to re-create them each time.


Ross Scroggs

unread,
Oct 25, 2016, 10:31:55 AM10/25/16
to google-ap...@googlegroups.com
Chris,

What you downloaded is a Mac OS self-contained executable; to run it just say ./gam version.

If you want the Python version, download the Source code (tar.gz), extract it and then follow Jame's suggestion.

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/d0d96643-f973-431f-a35c-f2a02cf50ae3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Chris Allison

unread,
Oct 25, 2016, 4:57:48 PM10/25/16
to GAM for G Suite
Thanks James!!!

Chris Allison

unread,
Oct 25, 2016, 5:01:51 PM10/25/16
to GAM for G Suite
Thanks Ross!


On Tuesday, October 25, 2016 at 7:31:55 AM UTC-7, Ross Scroggs wrote:
Chris,

What you downloaded is a Mac OS self-contained executable; to run it just say ./gam version.

If you want the Python version, download the Source code (tar.gz), extract it and then follow Jame's suggestion.

Ross
On Tue, Oct 25, 2016 at 6:45 AM, 'James Hatz' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Here is what I did when I used to run GAM on a mac:

To make an alias in terminal so you don’t have to type out the whole command path:

alias gam= “python gam/gam.py”


Note - this only works on a temporary basis - to make permanent follow this:

If you assign an alias using the above method, then it will only be available for the current terminal session. Once you close the terminal window, the alias will no longer be available. To make the alias permanent, you will need to edit a file called “.bash_profile” by running the following command:

nano ~/.bash_profile


This will open nano (a command line text editor). Use the arrow keys to place the cursor at the bottom of the file, and type in the aliases that you wish to use, one per line, just as you did when creating temporary aliases. When you are done, press Control + O (Write Out) to save the file. Press Command + X to exit nano and go back to the command line.

When you quit and re-open the Terminal application, your aliases will work without having to re-create them each time.


--
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-ap...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages