Форум сайта python.su
пытаюсь установить pyib
на хостинг, но ничего не получается.
Прописал в .htaccess
DirectoryIndex index.html
AddCharset UTF-8 .html
AddCharset UTF-8 .py
Options +ExecCGI
AddHandler cgi-script py
<IfModule mod_headers.c>
<Files *.html>
Header add Pragma "no-cache"
Header add Cache-Control "no-cache"
Header unset Vary
</Files>
</IfModule>
/home/username/www/pyib.py in ()
293 psyco.bind(processImage)
294 except:
295 pass
296
297 WSGIServer(pyib).run()
WSGIServer = <class 'fcgi.WSGIServer'>, pyib = <class '__main__.pyib'>, ).run = <unbound method pyib.run>
/home/username/www/fcgi.py in run(self=<fcgi.WSGIServer object>, timeout=1.0)
1085 if r:
1086 try:
1087 clientSock, addr = sock.accept()
1088 except socket.error, e:
1089 if e[0] in (errno.EINTR, errno.EAGAIN):
clientSock undefined, addr undefined, sock = <socket object, fd=4, family=2, type=1, protocol=0>, sock.accept = <built-in method accept of _socket.socket object>
<class 'socket.error'>: [Errno 22] Invalid argument
args = (22, 'Invalid argument')
errno = 22
filename = None
message = ''
strerror = 'Invalid argument'
Офлайн