[Twisted-Python] problem using imap mail client
hi, I installed twisted on ubuntu lucid .When I checked the version ,it shows Version('twisted', 10, 0, 0) I tried to run imap4client.py giving it hostname='imap.gmail.com' and entered my username and password..When I run the program I am getting "twisted.internet.error.TCPTimedOutError: TCP connection timed out" error. I was able to login and read my gmail using python imaplib though..I am wondering why it doesn't work with twisted thanks jim
On Fri, 2010-10-15 at 08:42 +0530, jim gardener wrote:
hi, I installed twisted on ubuntu lucid .When I checked the version ,it shows Version('twisted', 10, 0, 0) I tried to run imap4client.py giving it hostname='imap.gmail.com' and entered my username and password..When I run the program I am getting "twisted.internet.error.TCPTimedOutError: TCP connection timed out" error.
I was able to login and read my gmail using python imaplib though..I am wondering why it doesn't work with twisted
Can you try Twisted 10.1? There were some bug fixes in the IMAP code that may solve the problem.
ubuntu packs version 10.0. Will try to build from source then thanks for the reply jim
I installed version 10.1 frpm the ppa ..Now ,it justs waits after taking the hostname,user/password.. Is there a way to generate a local copy of the documentation?..so I can browse while offline? thanks jim
On Fri, Oct 15, 2010 at 7:36 AM, jim gardener <jimgardener@gmail.com> wrote:
I installed version 10.1 frpm the ppa ..Now ,it justs waits after taking the hostname,user/password..
Is there a way to generate a local copy of the documentation?..so I can browse while offline? thanks jim
Install pydoctor (it googles up well), then run pydoctor --output-html twisted in the directory your Twisted source resides. Then, have apidocs/ to read and enjoy. pydoctor --help may tell you about some additional knobs you will want to tweak to bring the docs to perfection. -- Engineer : How do I do it? Economist : How much will it cost? Twisted Developer: But does it block?
On 04:36 am, jimgardener@gmail.com wrote:
I installed version 10.1 frpm the ppa ..Now ,it justs waits after taking the hostname,user/password..
It doesn't sound like an IMAP4 problem in particular. It sounds like you have some connectivity issues. Debug the connection not being set up, don't worry about the IMAP4 particulars until that's working.
Is there a way to generate a local copy of the documentation?..so I can browse while offline?
You can use pydoctor as was suggested, or you can download a development snapshot (which won't exactly match up with 10.1, but it'll be fairly close) from <http://buildbot.twistedmatrix.com/builds/>. Jean-Paul
participants (5)
-
exarkun@twistedmatrix.com
-
Itamar Turner-Trauring
-
jim gardener
-
Thijs Triemstra | Collab
-
Yaroslav Fedevych