Â
Âí²»Í£ÌãµÄÖí
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?
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?