Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81730 > unrolled thread

Re: Getting errors from Imaplib

Started byChris Angelico <rosuav@gmail.com>
First post2014-11-30 23:02 +1100
Last post2014-11-30 23:02 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Getting errors from Imaplib Chris Angelico <rosuav@gmail.com> - 2014-11-30 23:02 +1100

#81730 — Re: Getting errors from Imaplib

FromChris Angelico <rosuav@gmail.com>
Date2014-11-30 23:02 +1100
SubjectRe: Getting errors from Imaplib
Message-ID<mailman.16437.1417349371.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web