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!
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-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.
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.
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.