socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

becky_lewis bex.lewis at gmail.com
Thu Dec 22 10:52:39 EST 2011


On Dec 22, 2:40 pm, Νικόλαος Κούρας <nikos.kou... at gmail.com> wrote:
> Hello when i try to visit my webpage i get the error it displays. Iam
> not posting it since you can see it by visiting my webpage athttp://superhost.gr
>
> Please if you can tell me what might be wrong.

It doesn't seem entirely clear but if I had to guess I'd think that
for some reason os.environ['REMOTE_ADDR'] is not returning a good
value (os.environ is a dictionary holding all of the os evironment
variables).
According to the socket docs, this error gets raised for address
related errors.



More information about the Python-list mailing list