Rolly Robot - not connecting to GMAIL Calendar


#1

Hello,

I am new to BrickPi and the google API.

I have attempted to get the rolly robot working but receive the following error:

> ------------start-----------
> Full text query for events on Primary Calendar: 'wake1'
> Traceback (most recent call last):
>   File "./alarm.py", line 161, in <module>
>     callable_func()
>   File "./alarm.py", line 154, in callable_func
>     FullTextQuery(calendar_service)
>   File "./alarm.py", line 81, in FullTextQuery
>     feed = calendar_service.CalendarQuery(query)
>   File "/usr/lib/python2.7/dist-packages/gdata/calendar/service.py", line 125, in CalendarQuery
>     converter=gdata.calendar.CalendarEventFeedFromString)
>   File "/usr/lib/python2.7/dist-packages/gdata/calendar/service.py", line 117, in Query
>     result = self.Get(uri, converter=converter)
>   File "/usr/lib/python2.7/dist-packages/gdata/service.py", line 1107, in Get
>     'reason': server_response.reason, 'body': result_body}
> gdata.service.RequestError: {'status': 403, 'body': '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n', 'reason': 'Forbidden'}

I have attempted to update all software on the Raspberry Pi and also done some research online. It seems that GDATA needs to be updated to V3 (V2 is installed) because Google updated the APIs. I have no idea how to do this, and am wondering if someone can help me out here.

I have entered my credentials properly in the alarm.py file (replaced the private data with stars):

#this is more stuff google told me to do, but essentially it handles the login $
calendar_service = gdata.calendar.service.CalendarService()
calendar_service.email = '********@gmail.com' #your email
calendar_service.password = '************' #your password
calendar_service.source = 'Google-Calendar_Python_Sample-1.0'
calendar_service.ProgrammaticLogin()

Can anyone help me out?

Thanks,

Johan


#2

Hi @jbroersma,

Thanks for reaching out to us, we are looking into it and we will get back shortly.

-Shoban