[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-04-02 Thread Barry Warsaw
For me, this fails on Ubuntu 13.04 both with system Python and upstream's hg trunk, so it's unlikely to be an Ubuntu delta to Python. It does *not* fail for me with hg trunk on Wheezy. I've closed the Python bug as invalid. -- You received this bug notification because you are a member of

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-04-02 Thread Barry Warsaw
The problem is that getaddrinfo() returns different error codes on Ubuntu. On Wheezy, getaddrinfo() returns -2 with errno set to 2 (ENOENT). On Raring, getaddrinfo() returns -11 (EAI_SYSTEM) with errno also set to 2 (ENOENT). Python has this bit of code to set the error type based on the return

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-04-02 Thread Barry Warsaw
Possibly related: http://sourceware.org/bugzilla/show_bug.cgi?id=15272 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: dns lookup failure raises socket.error not socket.gaierror To

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-04-02 Thread Barry Warsaw
Reproducible with pure C, so this has nothing to do with Python. ** No longer affects: python ** Package changed: python2.7 (Ubuntu) = eglibc (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-04-02 Thread Barry Warsaw
$ gcc -g -o gaitest gaitest.c ./gaitest Wheezy: % ./gaitest status = -2, errno = 2 Raring: % ./gaitest status = -11, errno = 2 ** Attachment added: gaitest.c https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1154599/+attachment/3615897/+files/gaitest.c ** Summary changed: - dns

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-30 Thread Matthias Klose
** Bug watch added: Python Roundup #1159051 http://bugs.python.org/issue1159051 ** Also affects: python via http://bugs.python.org/issue1159051 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-30 Thread Bug Watch Updater
** Changed in: python Status: Unknown = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: dns lookup failure raises socket.error not socket.gaierror To manage notifications

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-20 Thread Brian Murray
** Changed in: python2.7 (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: dns lookup failure raises socket.error not socket.gaierror To

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-13 Thread Scott Kitterman
Works for me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: dns lookup failure raises socket.error not socket.gaierror To manage notifications about this bug go to:

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-13 Thread Scott Moser
simplified a little bit: #!/usr/bin/python import sys, socket names = [slashdot.org., foowhi.com.] if len(sys.argv) 1: names = sys.argv[1:] for iname in names: try: sys.stdout.write(== %s ==\n % iname) result =

[Bug 1154599] Re: dns lookup failure raises socket.error not socket.gaierror

2013-03-13 Thread Launchpad Bug Tracker
** Branch linked: lp:cloud-init -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: dns lookup failure raises socket.error not socket.gaierror To manage notifications about this bug go