5

Hi I plan to deploy an app that would log to spreadsheets. I used the PyGSheets.

I get a raise.

raise SpreadsheetNotFound('Could not find a spreadsheet with title %s.' % title)
pygsheets.exceptions.SpreadsheetNotFound: Could not find a spreadsheet with title RSSI Spreadsheet.

after I used to authorize using service_account_file

gc = pygsheets.authorize(service_account_file='something.json')

But it works with

gc = pygsheets.authorize(client_secret='client_secret_something.json')

I would want to use the service_account_file so that it would pass authorization process.

4
  • 6
    if you are using service account make sure to share the sheet with that account. only then you can access then.
    – Nithin
    Sep 4, 2018 at 6:00
  • 1
    also what do you mean by pass the authorization process?
    – Nithin
    Sep 4, 2018 at 6:01
  • When you use the client_secret, it will generate some keys then need to copy and paste it.
    – Nikko
    Sep 4, 2018 at 6:34
  • Hey it worked, thanks! I shared it with the client email. Thanks!
    – Nikko
    Sep 4, 2018 at 6:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.