socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error
Νικόλαος Κούρας
nikos.kouras at gmail.com
Thu Dec 22 11:29:37 EST 2011
On 22 Δεκ, 17:32, Rami Chowdhury <rami.chowdh... at gmail.com> wrote:
> 2011/12/22 Νικόλαος Κούρας <nikos.kou... at gmail.com>:
>
> > 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 at
> >http://superhost.gr
>
> > Please if you can tell me what might be wrong.
>
> I can't see any errors on that page -- can you please post the
> complete traceback so we can all see it?
Yes of course. Its the following:
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/nikos/public_html/cgi-bin/counter.py
15
16 hits = 0
17 host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
18 date = datetime.datetime.now().strftime( '%y-%m-%d %H:%M:%S' )
19 agent = os.environ['HTTP_USER_AGENT']
host undefined, socket = <module 'socket' from '/usr/lib64/python2.4/
socket.pyc'>, socket.gethostbyaddr = <built-in function
gethostbyaddr>, os = <module 'os' from '/usr/lib64/python2.4/os.pyc'>,
os.environ = {'REDIRECT_QUERY_STRING': 'page=index.html',
'HT...e,sdch', 'UNIQUE_ID': 'TvNasbAJGaoAABtUy at gAAAAI'}
herror: (1, '\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef\xec\xe1
\xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2')
args = (1, '\xb6\xe3\xed\xf9\xf3\xf4\xef \xfc\xed\xef\xec\xe1
\xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2')
More information about the Python-list
mailing list