python 1.5.2 cgi.py and os.py error

Discussion in 'Python' started by Holly, Jul 14, 2003.

  1. Holly

    Holly Guest

    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.
     
    Holly, Jul 14, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shailan
    Replies:
    2
    Views:
    1,445
    Shailan
    Dec 15, 2003
  2. John Smith
    Replies:
    0
    Views:
    3,429
    John Smith
    May 15, 2006
  3. LarsenMTL
    Replies:
    4
    Views:
    1,125
    Eric Walstad
    Nov 4, 2004
  4. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    1,120
    Michael Sparks
    Jul 30, 2005
  5. Amir  Michail

    cgi relay for python cgi script

    Amir Michail, Oct 4, 2005, in forum: Python
    Replies:
    7
    Views:
    774
    Michael Ekstrand
    Oct 4, 2005
  6. epsilon
    Replies:
    4
    Views:
    496
    Gabriel Genellina
    Aug 22, 2007
  7. Stefan Fischer
    Replies:
    2
    Views:
    511
    Stefan Fischer
    Feb 23, 2010
  8. zippy

    cgi and cgi-bin

    zippy, Feb 1, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    745
    Sam Holden
    Feb 2, 2005
Loading...