Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. drive = GoogleDrive(gauth)
  2. file_list = drive.ListFile({'q': "'1fasSmc7insM4cQOoCik0vmEvYLN6Z5XZ' in parents and trashed=false"}).GetList()
  3.  
  4.  
  5.  
  6. ---------------------------------------------------------------------------
  7. FileNotFoundError Traceback (most recent call last)
  8. /usr/local/lib/python3.6/dist-packages/oauth2client/clientsecrets.py in _loadfile(filename)
  9. 120 try:
  10. --> 121 with open(filename, 'r') as fp:
  11. 122 obj = json.load(fp)
  12.  
  13. FileNotFoundError: [Errno 2] No such file or directory: 'client_secrets.json'
  14.  
  15. During handling of the above exception, another exception occurred:
  16.  
  17. InvalidClientSecretsError Traceback (most recent call last)
  18. 10 frames
  19. InvalidClientSecretsError: ('Error opening file', 'client_secrets.json', 'No such file or directory', 2)
  20.  
  21. During handling of the above exception, another exception occurred:
  22.  
  23. InvalidConfigError Traceback (most recent call last)
  24. /usr/local/lib/python3.6/dist-packages/pydrive/auth.py in LoadClientConfigFile(self, client_config_file)
  25. 386 client_type, client_info = clientsecrets.loadfile(client_config_file)
  26. 387 except clientsecrets.InvalidClientSecretsError as error:
  27. --> 388 raise InvalidConfigError('Invalid client secrets file %s' % error)
  28. 389 if not client_type in (clientsecrets.TYPE_WEB,
  29. 390 clientsecrets.TYPE_INSTALLED):
  30.  
  31. InvalidConfigError: Invalid client secrets file ('Error opening file', 'client_secrets.json', 'No such file or directory', 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement