cgi.FieldStorage() problem

Richard van de Stadt stadt at cs.utwente.nl
Mon Feb 5 16:53:29 EST 2001


Hi,

I have a problem, which seems to happen with 2.0, and not with 1.5.2

I have a webform (with quite some data in it) which is "POST"ed
to a cgi-script that calls

cgi.FieldStorage()

It fails. This exception is what I get if I "try" it:

Traceback (most recent call last):
  File "/...../cgi-bin/submitAssignRP.py", line 144, in main
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 504, in __init__
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 593, in read_multi
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 506, in __init__
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 603, in read_single
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 623, in read_lines
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/cgi.py", line 713, in make_file
  File "/opt/python/2.0/sparc-sunos5.6/lib/python2.0/tempfile.py", line 144, in TemporaryFile
OSError: [Errno 24] Too many open files: '/var/tmp/@24739.61'

Would anyone know what is causing this? Is it python, is it the OS?
And what's more, if there is a solution for this? 

Richard.



More information about the Python-list mailing list