Error: [Errno 2] No such file or directory: '/root/oauth2service.json'
Please follow the instructions at:
https://code.google.com/p/google-apps-manager/wiki/GAM3OAuthServiceAccountSetup
to setup a Service Account
[root@sam ~]# gam user sjoyce show calendars
Traceback (most recent call last):
File "gam.py", line 6499, in <module>
showCalendars(users)
File "gam.py", line 1456, in showCalendars
cal = buildGAPIServiceObject('calendar', user)
File "gam.py", line 559, in buildGAPIServiceObject
json_data = json.loads(json_string)
File "/usr/lib/python2.7/json/__init__.py", line 310, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 349, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 1 - line 8 column 234 (char 1 - 1668)
Traceback (most recent call last):
File "gam.py", line 6499, in <module>
showCalendars(users)
File "gam.py", line 1456, in showCalendars
cal = buildGAPIServiceObject('calendar', user)
File "gam.py", line 593, in buildGAPIServiceObject
return apiclient.discovery.build(api, version, http=http)
File "/root/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/root/apiclient/discovery.py", line 196, in build
resp, content = http.request(requested_url)
File "/root/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/root/oauth2client/client.py", line 475, in new_request
self._refresh(request_orig)
File "/root/oauth2client/client.py", line 653, in _refresh
self._do_refresh_request(http_request)
File "/root/oauth2client/client.py", line 677, in _do_refresh_request
body = self._generate_refresh_request_body()
File "/root/oauth2client/client.py", line 861, in _generate_refresh_request_body
assertion = self._generate_assertion()
File "/root/oauth2client/client.py", line 977, in _generate_assertion
private_key, self.private_key_password), payload)
File "/root/oauth2client/crypt.py", line 294, in make_signed_jwt
signature = signer.sign(signing_input)
File "/root/oauth2client/crypt.py", line 112, in sign
return crypto.sign(self._key, message, 'sha256')
AttributeError: 'module' object has no attribute 'sign'
I have repeated the entire process twice and have the same error. I'm afraid I'm missing something extremely simple.
TIA if anyone can offer any suggestions. Again, GAM 3.0.4, Linux.
-
S. Joyce
--
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/ed396b3e-e8c2-4f8d-b2a9-4bced01403d4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Error: [Errno 2] No such file or directory: '/root/oauth2service.json'
Please follow the instructions at:
https://code.google.com/p/google-apps-manager/wiki/GAM3OAuthServiceAccountSetup
to setup a Service Account
Still at a loss...
Sean Joyce
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oy8ZEuoVjW2gRq5Shv6An7n--EonYugYFzOJOk-5CYCA%40mail.gmail.com.
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 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/ed396b3e-e8c2-4f8d-b2a9-4bced01403d4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
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 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/85ddc2bf-e002-4889-be98-fb0658b0664f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@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/ed396b3e-e8c2-4f8d-b2a9-4bced01403d4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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+unsubscribe...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAOXHi9Oy8ZEuoVjW2gRq5Shv6An7n--EonYugYFzOJOk-5CYCA%40mail.gmail.com.
--
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.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
gam user xx...@xxxx.com show filelist allfields
Getting files for xx...@xxxx.com...
Error 401: Invalid Credentials - authError
----