attributeerror - Python attribute error: type object '_socketobject' has no attribute 'gethostbyname' -


I am trying to do this in my program:

  dest = socket Gethostbyname (host)  

I have included this line:

  socket import at the beginning of the file from  
< P>.

I am getting this error:

Attribute error: object '_socketobject' has no special properties 'gethostbyname'

I am running Vista 64 bit Can there be a problem in my OS? I've changed my firewall and everything.

you shoulod

  import socket dest = socket. Gethostbyname (host)  

or by socket import

  use = dest = gethostbyname (host)  

focus Give: The first option is so far recommended.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -