I'm trying to connect with gspread using http://www.danielhansen.net/2013/03/ras ... .html#more
Code: Select all
import os, glob, time, gspread, sys, datetime #Google account details email = 'email@example.com' password = 'yyyy' spreadsheet = 'tester' #the name of the spreadsheet already created #attempt to log in to your google account try: gc = gspread.login(email,password) except: print('fail') sys.exit()
Traceback (most recent call last):
File "./danielhansen.py", line 5, in <module>
import os, glob, time, gspread, sys, datetime
File "/home/pi/tempmonitor/gspread.py", line 4, in <module>
gc = gspread.login('firstname.lastname@example.org', 'yyyy')
AttributeError: 'module' object has no attribute 'login'
I followed the code at https://github.com/burnash/gspread/blob ... /README.md and get the same error.
What have i missed?