Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81730 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-11-30 23:02 +1100 |
| Last post | 2014-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.
Re: Getting errors from Imaplib Chris Angelico <rosuav@gmail.com> - 2014-11-30 23:02 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-11-30 23:02 +1100 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web