Re: Python gethostbyname fails just one one machine.

2014-12-17 Thread Chris Angelico
On Thu, Dec 18, 2014 at 3:26 PM, Abhishek Srivastava wrote: > I was able to resolve the issue. > > since you said that there is nothing wrong with python as such... and its a > networking issue. > > I deleted the network adapter of my vm and then re-created it. > > now suddenly it began to work.

Re: Python gethostbyname fails just one one machine.

2014-12-17 Thread Abhishek Srivastava
I was able to resolve the issue. since you said that there is nothing wrong with python as such... and its a networking issue. I deleted the network adapter of my vm and then re-created it. now suddenly it began to work. funny! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python gethostbyname fails just one one machine.

2014-12-17 Thread Chris Angelico
On Thu, Dec 18, 2014 at 2:21 PM, wrote: > I have many machines on which the following command returns nothing (but does > not throw an error as well > > python -c 'import socket; socket.gethostbyname(socket.getfqdn())' > > > but on just one machine. this command throws > > Traceback (most recent

Python gethostbyname fails just one one machine.

2014-12-17 Thread abhishes
I have many machines on which the following command returns nothing (but does not throw an error as well python -c 'import socket; socket.gethostbyname(socket.getfqdn())' but on just one machine. this command throws Traceback (most recent call last): File "", line 1, in socket.gaierror: [Er