This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oopos
Recipients amaury.forgeotdarc, oopos
Date 2009-01-15.11:58:29
SpamBayes Score 0.00433606
Marked as misclassified No
Message-id <>
To Amaury Forgeot d'Arc :

Thank you.

That error have sloved with your way:
[quote]Does it work if you change your script like this:
   opsform = cgi.FieldStorage(open(sys.stdin.fileno(), 'rb'))[/quote]

Now,The new problem come out:
[code]  97         """Push some new data into this object."""
   98         # Handle any previous leftovers
   99         data, self._partial = self._partial + data, ''
  100         # Crack into lines, but preserve the newlines on the end 
of each
  101         parts = NLCRE_crack.split(data)
data = b'-----------------------------7d91f41a302f4
\nCo...\x0e\x0f\x0c\x10\x17\x14\x18\x18\x17\x14\x16\x16', self = 
<email.feedparser.BufferedSubFile object at 0x00DD5270>, self._partial 
= '' 

TypeError: Can't convert 'bytes' object to str implicitly 

I find that the CGI LIB didn't use bytes flow, it always use string 

More info in the attch file:
Date User Action Args
2009-01-15 11:58:37oopossetrecipients: + oopos, amaury.forgeotdarc
2009-01-15 11:58:36oopossetmessageid: <>
2009-01-15 11:58:36ooposlinkissue4953 messages
2009-01-15 11:58:36ooposcreate