GAM-3.4.4 install with new ClientSecretsFile Error

57 views
Skip to first unread message

Todd Higgins

unread,
Apr 29, 2015, 11:16:44 AM4/29/15
to google-ap...@googlegroups.com
So I downloaded the latest version of GAM 3.4.4 and created a new clientSecretsFile (I wanted to use the new Drive commands and needed the oauth2service.json).  I have been using GAM for a while, but this is the first time I have run into an error when running the 'gam info domain' command and selecting 22 (Continue)  


Traceback (most recent call last):
  File "/Users/higginsta/Applications/GAM-3.44/gam.py", line 7424, in <module>
    doGetDomainInfo()
  File "/Users/higginsta/Applications/GAM-3.44/gam.py", line 5539, in doGetDomainInfo
    adm = buildGAPIObject(u'admin-settings')
  File "/Users/higginsta/Applications/GAM-3.44/gam.py", line 516, in buildGAPIObject
    doRequestOAuth()
  File "/Users/higginsta/Applications/GAM-3.44/gam.py", line 7277, in doRequestOAuth
    credentials = oauth2client.tools.run_flow(flow=FLOW, storage=storage, flags=flags, http=http)
  File "/Users/higginsta/Applications/GAM-3.44/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Users/higginsta/Applications/GAM-3.44/oauth2client/tools.py", line 191, in run_flow
    authorize_url = flow.step1_get_authorize_url()
  File "/Users/higginsta/Applications/GAM-3.44/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Users/higginsta/Applications/GAM-3.44/oauth2client/client.py", line 1827, in step1_get_authorize_url
    return _update_query_params(self.auth_uri, query_params)
  File "/Users/higginsta/Applications/GAM-3.44/oauth2client/client.py", line 435, in _update_query_params
    parts = urllib.parse.urlparse(uri)
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'urlparse'

Any ideas?  Did I miss an API?

Thanks,

Todd

Ricardo Ardila Vetrovec

unread,
Apr 29, 2015, 11:18:51 AM4/29/15
to google-ap...@googlegroups.com
Are you using LINUX?

did you get your client_secret.json (exact file name on gam directory)



--
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/cad01c5b-fcac-425b-a096-3c9840f23b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--------------------------------------------------------------------------------------------------------



Dan Schwartz

unread,
Apr 29, 2015, 11:26:20 AM4/29/15
to google-ap...@googlegroups.com
Todd - upgrade the "six" python module using pip or easy_install to the current release.  There were some earlier posts about it on mac os and debian (same issue on centos).  The older packaged versions don't work with the new release of google's libraries which gam uses.


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

--

Todd Higgins

unread,
Apr 29, 2015, 12:22:40 PM4/29/15
to google-ap...@googlegroups.com
Hi Dan,

That did the trick.  I found the earlier posts you mentioned and used Ross's script to easily update the six module to the latest version. Back to cooking with GAM! Thanks everyone!

Regards,

Todd
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages