Error trying to access “google drive” with python (google quickstart.py source code)

前端 未结 3 1953
迷失自我
迷失自我 2021-01-13 00:00

I\'m trying to learn how to access Google Drive from Python but I have problems.

I followed the tutorial of google\'s official website: https://developers.google.co

3条回答
  •  梦毁少年i
    2021-01-13 00:51

    The module in question oauthclient.util makes some assumptions that there is logging established and this warning is actually masking a more detailed warning/error which it tried to write to the log.

    If you add some logging to your own code then it should reveal the underlying error:

    import logging
    logging.basicConfig()
    

    was enough to replace the appearance of the above error with the true error in my output (YMMV).

    Once that's resolved you can probably remove these two lines safely (although you'll probably wind up back here should something else go wrong).

    This question came up in a google search for No handlers could be found for logger "oauth2client.util" alongside this issue and this issue.

提交回复
热议问题