473,769 Members | 7,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\AP ACHE~1\apache\h tdocs\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\AP ACHE~1\apache\h tdocs\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=e nviron)

[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.
Jul 18 '05 #1
0 1768

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2506
by: Helmut Zeisel | last post by:
I want to build a static extension of Python using SWIG and VC++ 6.0 as described in http://www.swig.org/Doc1.3/Python.html#n8 for gcc. My file is testerl.i: ========================= %module testerl extern int hz(int i);
0
1866
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 259 open ( -5) / 2573 closed (+17) / 2832 total (+12) Bugs : 745 open ( +0) / 4405 closed (+21) / 5150 total (+21) RFE : 150 open ( +1) / 130 closed ( +0) / 280 total ( +1) New / Reopened Patches ______________________
1
2205
by: Sean | last post by:
Hi, Trying to compile the PythonCE (Validus Medical Systems Python 2.3.4) using eVC++ 4.0 and the Smartphone2003 SDK. Linking is generating 28 errors. I dug into the first one (PyErr_Fetch) and it's in pyerrors.h so I don't see why it misses it. Anyone have an idea? TIA
3
2604
by: Saravanan | last post by:
Hello, Im running Python Application as a Windows Service (using windows extensions). But, sporadically the application crashes (crash in Python23.dll) and this stops the service. This problem cann't be reproduced easily in my system and the call stack generated by the application is given below. Please note that the call stack generation is taken from crash dump file.
0
1601
by: | last post by:
Greetings. In an effort to get python2.4 on my Centos 3.7, I installed the python bootstrap rpm. This installed 2.4 alongside 2.2 and updated yum to 2.4.0. Oddly, it didn't create a symlink 'python' for either 2.2 or 2.4. I also get a series of troubling dependency errors when I run yum update. Below is the output of the bootstrap install, which includes both a failure early on (possibly related to alternatives and/or the symlink?)...
11
4919
by: Osiris | last post by:
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file: ============================ #include <iostream> #include <stdafx.h>
0
1984
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 385 open (+21) / 3790 closed (+21) / 4175 total (+42) Bugs : 1029 open (+43) / 6744 closed (+43) / 7773 total (+86) RFE : 262 open ( +4) / 291 closed ( +4) / 553 total ( +8) New / Reopened Patches ______________________
8
3288
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to my pc. But, it is not getting installed and is failing by throwing the below errors. Should i need to configure / install any specific files for resolving this issue ?
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.