New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gspread.v4.exceptions.APIError - Insufficient Permission #512
Comments
It only works with at what happened to the library? Apparently on api v3 everything worked fine, how to roll back? |
Thanks for reporting this. It is probably related to the upgrade of gspread (2.0.0) which now uses Sheet API v4 (the newest version). Can you check if you have Sheets API enabled for the creds you're using in https://console.cloud.google.com/ ? |
Thanks for the answer. |
Interesting, I think we're getting close. Let's first figure out the permission problem and then fix the formulas issue. Can you try to enable not only Sheets API in https://console.cloud.google.com/ but also Drive API? (this is what |
Ok, not as close as I expected. What do you see when you call |
I can confirm the exact same issue. I also tried regenerating service api creds.
|
Ok, try to change your scope to the following:
|
Adding to the scope of the https://www.googleapis.com/auth/drive helped open with the help of open. |
temporarily rolled back to gspread == 0.6.2 |
I'm glad we've figured out the issue with permissions. Let's fix the formula issue.
See Sheets API > ValueRenderOption for other possible values. |
I'm having the same issue
Switching to version 0.6.2 fixes the issue. The problem happens on an alpine:3.4 container, MAC os works just fine. |
@soad1982 Please share your code sample and stack traceback |
gspread module has received an update to api v4. This api includes faster insert_row() speeds, bringing down the spreadsheet_work time from over a min to less than 5 seconds in inserting data into spreadsheet[1][2]. Issues can be found here: [1] burnash/gspread#378 [2] burnash/gspread#512 Signed-off-by: Kien Ha <kienha9922@gmail.com>
Excellent I had the same problem.
As per your instruction! |
@burnash |
Adding the extra scope worked for me. |
Ha guys i see some of you have some issue with the permission . Just remember that when you enable the google drive api also enable google sheet api as well. It didnt work for me until i enable both the APIs |
I get the same troubles when I try to insert big data into google sheet, I've done this job before, (not enable drive api but it's not raise errror like this) but now, It raise error like this. I try to find out and figure out that I don't enable drive api, I try to do it and now it seems okay! |
I had a similar issue after the update. The trick is to share the sheet with your service worker email. (different than your usual email.) Then it can actually see and edit the file. I forgot to do this and it took me an hour to figure it out. Hope this helps someone else. |
Hello.
After the OS was reinstalled, the script stopped working.
gspread 2.0.0
python 2.7.12
code
error
The text was updated successfully, but these errors were encountered: