error when use libgmail with proxy

Vincent phostu at gmail.com
Mon Jun 22 06:22:32 EDT 2009


On Jun 22, 3:33 pm, 马不停蹄的猪 <sunrui... at gmail.com> wrote:
> Hi all,
> Does anybody use libgmail with proxy?  I met error here.
>
> Below is code snip:
>
>         libgmail.PROXY_URL = G_PROXY # the proxy url
>         self.ga = libgmail.GmailAccount(account,pwd)
>         self.ga.login()
>
> Error information:
>           ga.login
> ()
> File "C:\Python25\Lib\site-packages\libgmail.py", line 305, in
> login
>          pageData = self._retrievePage
> (req)
> File "C:\Python25\Lib\site-packages\libgmail.py", line 348, in
> _retrievePage
>            resp = self.opener.open
> (req)
> File "build\bdist.win32\egg\mechanize\_opener.py", line 191, in
> open
> File "C:\Python25\lib\urllib2.py", line 399, in
> _open
>         '_open',
> req)
> File "C:\Python25\lib\urllib2.py", line 360, in
> _call_chain
>         result = func
> (*args)
> File "build\bdist.win32\egg\mechanize\_http.py", line 751, in
> https_open
> AttributeError: 'int' object has no attribute
> 'find_key_cert'
>
> Is it possible the issue of mechanize?

I do not know why you need proxy.

i have used gdata do the same work like you.

then i descript it in my blog: vincent-w.blogspot.com



More information about the Python-list mailing list