Just running the libgmail.py, it asks for username and password and then returns:
Please wait, logging in...
HTTP Error 400: Bad Request
No messages found
Traceback (most recent call last):
File "C:\Python25\Lib\libgmail-0.1.6\libgmail.py", line 1600, in <module>
quotaInfo = ga.getQuotaInfo()
File "C:\Python25\Lib\libgmail-0.1.6\libgmail.py", line 508, in getQuotaInfo
TypeError: 'NoneType' object is unsubscriptable
I believe I encountered a similar problem just a few moments ago. What I was doing was debugging a related issue using python2.5.1 (on cygwin) and libgmail-0.1.6. I was seeing the same 400 exception when trying to login with "ga.login()".
The resolution in my case was to download the latest 0.1.6.1 release in the download section. There may have been other factors, but I believe this was the root problem.