Folks,
Appreciate any more insight into this problem. ?
The error occurs not frequently, and would still like to understand and resolve 
it.
Thanks
Shal

From: SABARWAL, SHAL
Sent: Wednesday, May 28, 2014 5:07 PM
To: 'tutor@python.org'
Subject: RE: cgi.FieldStorage() causing thread.error: can't allocate lock

Hi,
Sorry for getting back so late on this. First time user of the mailing list, so 
was not aware of the protocol.
Anyway the problem occurs not frequently. Haven't been able to recreate it on 
demand.

The calling application(applicationCode.py) has a basic -  form = 
cgi.FieldStorage()

I have attached cgi.py, mimetools.py and tempfile.py

The error is pointed out at the import statement as below
File "applicationCode.py", line 4, in <module>
    import cgi
File "/usr/local/lib/python2.7/cgi.py", line 51, in <module>
    import mimetools
  File "/usr/local/lib/python2.7/mimetools.py", line 6, in <module>
    import tempfile
  File "/usr/local/lib/python2.7/tempfile.py", line 83, in <module>
    _once_lock = _allocate_lock()

Thanks
Shal
From: SABARWAL, SHAL
Sent: Friday, May 23, 2014 7:57 AM
To: tutor@python.org<mailto:tutor@python.org>
Subject: cgi.FieldStorage() causing thread.error: can't allocate lock

Wondering if anyone came across this error in using form = cgi.FieldStorage()
import tempfile
                    File /tempfile.py", line 83, in <module> _once_lock = 
_allocate_lock()
                        thread.error: can't allocate lock

puthon version 2.7, on HP-UX 11.11
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to