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
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
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
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.
$ 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 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
** 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
** 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
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:
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 =
** 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
11 matches
Mail list logo