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
Post a Comment