Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81730
| References | <4B0DF114-E705-47B3-9815-003899F174CE@beatrixwillius.de> |
|---|---|
| Date | 2014-11-30 23:02 +1100 |
| Subject | Re: Getting errors from Imaplib |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16437.1417349371.18130.python-list@python.org> (permalink) |
On Sun, Nov 30, 2014 at 7:36 PM, Beatrix Willius from Moth Software
<mail@beatrixwillius.de> wrote:
>
> Let's say I have the following very simple Python code:
>
> import imaplib
>
> host = 'imap.gmail.com'
> try:
> imap_connection = imaplib.IMAP4(host)
> print('success')
> except imaplib.IMAP4.error:
> print('authentication failed')
>
> OSError: [Errno 65] No route to host
You're getting an error before it even gets as far as authenticating -
there's a network-level issue here. Are you able to ping that host?
Something's not connected.
ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Getting errors from Imaplib Chris Angelico <rosuav@gmail.com> - 2014-11-30 23:02 +1100
csiph-web