By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

IOError 11 CGI module

P: n/a
Hi list,

I have troubles with some python scripts I use as cgi scripts with
thttpd. At irregular intervals when a post is made an IOError is raised
by the CGI module. My question is how and why does this happen?
The exception looks like this:

Traceback (most recent call last):
File "teamadmin.cgi", line 11, in ?
File "/wing6/home/jury/iudex/nederlands/lib/", line 24,
in makeform
form = _extractflat( cgi.FieldStorage() )
File "/usr/lib/python2.3/", line 517, in __init__
File "/usr/lib/python2.3/", line 622, in read_urlencoded
qs =
IOError: [Errno 11] Resource temporarily unavailable

The code:

import sys
import time
import traceback
import cgi
import MySQLdb
from iudex_tags import *

form = None

def _extractflat( fields ):
form = {}
for i in fields.value:
if not form.has_key( ):
form[] = []
if i.filename:
form[].append( ( i.filename, i.value ) )
form[].append( i.value )
return form

def makeform():
global form
form = _extractflat( cgi.FieldStorage() )

With kind regards,

Anton Jansen
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.