AttributeError: module 'gspread' has no attribute 'service_account'
See original GitHub issueHello, I just installed gspread in Google Collaboratory:
pip install gspread
Then I tried to run the code following the instructions:
import gspread
gc = gspread.service_account()
output:
AttributeError: module 'gspread' has no attribute 'service_account'
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
AttributeError: module 'gspread' has no attribute 'open_by_key'
Once the auth is complete, you can verify it by using python's built in function dir. Example: Service account: import gspread gc =...
Read more >gspread Documentation - Read the Docs
A service account is a special type of Google account intended to represent a non-human user that needs to authenticate.
Read more >Why am I getting 'AttributeError: module 'gspread' has ... - Quora
In your notebook, you are importing a module called [code ]gspread[/code], and are trying to access a module attribute from it, which does...
Read more >gspread 5.7.0 documentation
gspread is a Python API for Google Sheets. Features: Google Sheets API v4. Open a spreadsheet by title, key or url. Read, write...
Read more >module 'gspread' has no attribute 'service_account'
AttributeError : module 'gspread' has no attribute 'service_account' ... Hello, I just installed gspread in Google Collaboratory:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t name any of your files inside your directory as gspread.py. I had named the same thing and it was giving me an error. I changed the name to something else and it worked.
In this case, you’d need to upgrade gspread, as
service_account()
was added in 3.6.0