I'm trying to learn Gmail API with Python using Mac OSX.
I have a standard problem for this OS: the default installation of the "six" module is loaded before the one that pip installed. Google's solution(at the bottom of the page) or this answer don't work.
When I tried to perform Google's one, I haven't found file
~/.bashrc
~/.bash_profile
~/.bash_profile.pysave
Traceback (most recent call last):
File "quickstart.py", line 76, in <module>
main()
File "quickstart.py", line 60, in main
credentials = get_credentials()
File "quickstart.py", line 48, in get_credentials
credentials = tools.run_flow(flow, store, flags)
File "/Library/Python/2.7/site-packages/oauth2client/util.py", line 135, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Library/Python/2.7/site-packages/oauth2client/tools.py", line 199, in run_flow
authorize_url = flow.step1_get_authorize_url()
File "/Library/Python/2.7/site-packages/oauth2client/util.py", line 135, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Library/Python/2.7/site-packages/oauth2client/client.py", line 2006, in step1_get_authorize_url
return _update_query_params(self.auth_uri, query_params)
File "/Library/Python/2.7/site-packages/oauth2client/client.py", line 490, in _update_query_params
parts = urllib.parse.urlparse(uri)
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'urlparse'