python 1.5.2 cgi.py and os.py error 
Author Message
 python 1.5.2 cgi.py and os.py error

Hello List,

My windows laptop configured as: XP, python 1.5.2, MySQL 4.0.9 and
Appache 1.3.17

A form ("Post" has been used) has a product list with about 400
products. The user checks each item he wants and place an order. NOw
when they hit "Place Order" or "Cancel Order" , apache pops an error
in log:

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1] Premature end of
script headers: c:/program files/apache
group/apache/htdocs/usa/order.py
[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1] Traceback
(innermost last):

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]   File
"c:\PROGRA~1\APACHE~1\apache\htdocs\usa\order.py", line 1923, in ?

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]     Main()

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]   File
"c:\PROGRA~1\APACHE~1\apache\htdocs\usa\order.py", line 1892, in Main

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]     form =
FormContent() # handle stdin parsing

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]   File
"C:\usr\bin\lib\cgi.py", line 1097, in __init__

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]     self.dict =
parse(environ=environ)

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]   File
"C:\usr\bin\lib\cgi.py", line 528, in parse

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]    
environ['QUERY_STRING'] = qs    # XXX Shouldn't, really

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]   File
"C:\usr\bin\lib\os.py", line 243, in __setitem__

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1]     putenv(key,
item)

[Wed Jul 09 14:33:11 2003] [error] [client 127.0.0.1] OSError: (0,
'Error')

If I delete more than ten records in the product table, the error
disappears. Any ideas?

Thanks in advance.



Sat, 31 Dec 2005 01:04:40 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. syntax-error with new Python 2.1 and pyFTPd.py and pyFTPdrop.py

2. trying to run boa: problem with stc.py / stc_.py / stc_c.py

3. site.py, sitecustomize.py and unicode errors

4. attribute error in cgi.py

5. cgi.py in Python 1.5

6. typo.py - Warn of typographical errors in Python scripts

7. typo.py - Warn of typographical errors in Python scripts

8. setup.py syntax error building python-imaging

9. Deleting rexec.py and Bastion.py

10. trace.py and coverage.py

11. execfile('bla.py'), can bla.py know its full path

12. problem using http proxy with urllib.py and urllib2.py

 

 
Powered by phpBB® Forum Software