error when use libgmail with proxy

  • Thread starter Âí²»Í£ÌãµÄÖí
  • Start date
Â

Âí²»Í£ÌãµÄÖí

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?
 
V

Vincent

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
 
E

eGlyph

Hi all,
Does anybody use libgmail with proxy? I met error here.

I wouldn't recommend to use this module at all. It was writtent at the
time when no IMAP was available at Google. Now there are POP and IMAP,
so it's better to use them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top