gspread.exception Spreadsheet not Found on a particular sheet

有些话、适合烂在心里 提交于 2019-12-11 16:57:51

问题


I am working to get google sheets downloaded on my EC2 linux server.I shared the google sheet with email id from credentials json file. I am using gspread, to open the sheet using open_by_key(file['id']) and the code works when I run using root but not using a different user having the same properties. It gives this error : File "/home/edh/.local/lib/python2.7/site-packages/gspread/client.py", line 113, in open_by_key raise SpreadsheetNotFound gspread.exceptions.SpreadsheetNotFound

This code works in team drives too. The weird thing is I am able to run this code over different google sheets in the same user of EC2, but this particular sheet gives the above error. Please help and let me know if you need any more info from my side.

来源:https://stackoverflow.com/questions/54793652/gspread-exception-spreadsheet-not-found-on-a-particular-sheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!