Updated to 3.44, errors

325 views
Skip to first unread message

Melissa Benson

unread,
Apr 16, 2015, 11:29:29 AM4/16/15
to google-ap...@googlegroups.com
I've tried this twice now and I can't get gam oauth info to work. I get the below errors.

Traceback (most recent call last):
  File "/Users/mebenson/gam/gam.py", line 35, in <module>
    import googleapiclient.discovery
  File "/Users/mebenson/GAM/googleapiclient/discovery.py", line 20, in <module>
    import six
ImportError: No module named six


I completely retried it again and re-doing the secrets. I added the nobrowser.txt.

I'm not getting to the place where I would accept the permissions (I thought it had me do this).

Dan Schwartz

unread,
Apr 17, 2015, 9:07:01 AM4/17/15
to google-ap...@googlegroups.com
Hi Melissa - 

I'm also having similar problems on debian with the new release.  I installed the six modules from repo, but that just moves the error over to a message about urllib.parse (from six.moves.urllib.parse) failing.  This is with python 2.7.3 (default on debian).  I searched around and found one other post about the problem with the google-api-client code which gam uses.  I copied over the "googleapiclient" and "oauth2client" folders from gam-3.43a and the code runs - though I haven't extensively tested any functionality.  Hopefully Jay will know more and be able to help out.

Dan


--
Dan Schwartz | LTS - Systems and Networking  | Lehigh University | da...@lehigh.edu | (610) 758-5061

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/6266cad6-5ca4-45b4-9659-9f6f0c0f21e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Schwartz

unread,
Apr 17, 2015, 9:22:52 AM4/17/15
to google-ap...@googlegroups.com
The six modules from the repo are older.  If you install pip, and then run "pip install -U six", it works -- at least it did for me.



--
Dan Schwartz | LTS - Systems and Networking  | Lehigh University | da...@lehigh.edu | (610) 758-5061

Melissa Benson

unread,
Apr 17, 2015, 1:49:57 PM4/17/15
to google-ap...@googlegroups.com
I'm not quite sure what that means lol...I'm on a Mac.


On Friday, April 17, 2015 at 8:22:52 AM UTC-5, Daniel Schwartz wrote:
The six modules from the repo are older.  If you install pip, and then run "pip install -U six", it works -- at least it did for me.



--
Dan Schwartz | LTS - Systems and Networking  | Lehigh University | da...@lehigh.edu | (610) 758-5061

On Fri, Apr 17, 2015 at 9:06 AM, Dan Schwartz <da...@lehigh.edu> wrote:
Hi Melissa - 

I'm also having similar problems on debian with the new release.  I installed the six modules from repo, but that just moves the error over to a message about urllib.parse (from six.moves.urllib.parse) failing.  This is with python 2.7.3 (default on debian).  I searched around and found one other post about the problem with the google-api-client code which gam uses.  I copied over the "googleapiclient" and "oauth2client" folders from gam-3.43a and the code runs - though I haven't extensively tested any functionality.  Hopefully Jay will know more and be able to help out.

Dan


--
Dan Schwartz | LTS - Systems and Networking  | Lehigh University | da...@lehigh.edu | (610) 758-5061
On Thu, Apr 16, 2015 at 11:29 AM, melissa benson <mebe...@gmail.com> wrote:
I've tried this twice now and I can't get gam oauth info to work. I get the below errors.

Traceback (most recent call last):
  File "/Users/mebenson/gam/gam.py", line 35, in <module>
    import googleapiclient.discovery
  File "/Users/mebenson/GAM/googleapiclient/discovery.py", line 20, in <module>
    import six
ImportError: No module named six


I completely retried it again and re-doing the secrets. I added the nobrowser.txt.

I'm not getting to the place where I would accept the permissions (I thought it had me do this).

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Ross Scroggs

unread,
Apr 17, 2015, 10:13:08 PM4/17/15
to google-ap...@googlegroups.com
Melissa,

We Mac folk have to look out for each other. By default, pip is not on Mac OS, but there is something called easy_install. I wrote a small script to clean out the old six and install a new one.
Take the lines below between <<< and >>> and save them to a file on your Desktop called UpdateSix.sh
Start a terminal session
cd ~/Desktop
chmod 755 UpdateSix.sh
sudo ./UpdateSix.sh

The output should look like this:

Searching for six
Best match: six 1.9.0
Processing six-1.9.0.tar.gz
Running six-1.9.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GV9MBF/six-1.9.0/egg-dist-tmp-hBQXDT
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __path__
Adding six 1.9.0 to easy-install.pth file

Installed /Library/Python/2.7/site-packages/six-1.9.0-py2.7.egg
Processing dependencies for six
Finished processing dependencies for six

Try GAM now.

Let me know the results.

Ross
<<<
#!/bin/bash                                                                                                                                                           
#                                                                                                                                                                     
# Update python library six                                                                                                                                           
#                                                                                                                                                                     
if [ `whoami` != 'root' ]
then
  echo "You need to be root to do this!"
  exit 1
fi
cd /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
# Get rid of the old library                                                                                                                                          
rm -f six.py*
rm -f six-*.egg-info
# Install the new one                                                                                                                                                 
easy_install six
# Clean up permissions                                                                                                                                                
cd /Library/Python/2.7/site-packages/
chmod 755 six-1.9.0-py2.7.egg six-1.9.0-py2.7.egg/EGG-INFO
chmod 644 six-1.9.0-py2.7.egg/*.py* six-1.9.0-py2.7.egg/EGG-INFO/*
>>>

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.

Mattias Bystedt

unread,
Apr 21, 2015, 5:11:00 AM4/21/15
to google-ap...@googlegroups.com
This worked for me, and it didn't break any of my older instances of GAM. I keep different versions in separate folders and only drop my oauth2 and oauth2service files every time i "update", if something "breaks" it's easy to "revert" to an older version.

Thanks for this quick and easy solution!

/Mattias
Message has been deleted
Message has been deleted

Melissa Benson

unread,
May 1, 2015, 3:36:39 PM5/1/15
to google-ap...@googlegroups.com
I didn't get a chance to try that..but I did try again with the new version and I didn't run into the issue. Thanks for the help!
Reply all
Reply to author
Forward
0 new messages