python - libgmail login() runs with error -


i installed libgmail on centos 5, python 2.6 easy_install. there problem, until installed mechanize manually. after easy_install said ok , wrote 1st test program sample googled:

    import libgmail      ga = libgmail.gmailaccount("someaccount@gmail.com", "mypassword")     ga.login()     folder = ga.getmessagesbyfolder('inbox')      thread in folder:       print thread.id, len(thread), thread.subject       msg in thread:         print "  ", msg.id, msg.number, msg.subject         print msg.source 

i following error message:

traceback (most recent call last):   file "gm.py", line 4, in <module>     ga.login()   file "build/bdist.linux-i686/egg/libgmail.py", line 305, in login   file "build/bdist.linux-i686/egg/libgmail.py", line 340, in _retrievepage   file "build/bdist.linux-i686/egg/mechanize/_request.py", line 31, in __init__   file "build/bdist.linux-i686/egg/mechanize/_rfc3986.py", line 62, in is_clean_uri typeerror: expected string or buffer 

it seems, problem not python code, libgmail installation. clues, anyone?

libgmail deprecated , has stopped developing, since gmail started offering imap access.

use imaplib or similar (twisted.mail comes mind, example code here).


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -