OSX
Jump to navigation
Jump to search
Errors
GAM
Traceback (most recent call last): File "gam.py", line 7549, in <module> OAuthInfo() File "gam.py", line 7049, in OAuthInfo doRequestOAuth() File "gam.py", line 7277, in doRequestOAuth credentials = oauth2client.tools.run_flow(flow=FLOW, storage=storage, flags=flags, http=http) File "/Users/keegan/Projects/gam/GAM-3.44/oauth2client/util.py", line 137, in positional_wrapper return wrapped(*args, **kwargs) File "/Users/keegan/Projects/gam/GAM-3.44/oauth2client/tools.py", line 191, in run_flow authorize_url = flow.step1_get_authorize_url() File "/Users/keegan/Projects/gam/GAM-3.44/oauth2client/util.py", line 137, in positional_wrapper return wrapped(*args, **kwargs) File "/Users/keegan/Projects/gam/GAM-3.44/oauth2client/client.py", line 1827, in step1_get_authorize_url return _update_query_params(self.auth_uri, query_params) File "/Users/keegan/Projects/gam/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'
- Solution: edit gam.py, add this:
import sys sys.path.insert(1, '/Library/Python/2.7/site-packages')
- And remove'sys' from the other import line