I've also seen this when logging is improperly configured, and ends up sending output to stdout...which gives the same results as the extraneous print statements
Kevin Horn On Jan 10, 2008 6:15 PM, Mickey <[EMAIL PROTECTED]> wrote: > > Oh heck. The production version is on Linux, on WebFaction to be > exact. I develop on Xubuntu. > > I don't have any prints, but that at least gives me a hint. Thanks. > > On Jan 10, 7:57 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > Hi Mickey. You haven't said which platform (win/linux?) you're > > running on, or whether this is a debug or production setup? > > > > When I deploy our site using linux it runs in production mode which > > means there's no stdout. If we've left print statements in the code > > then on occasion we get 'Broken Pipe' errors. I believe that stdout's > > buffer isn't being flushed as, under production mode, the output > > doesn't go to screen (or indeed anywhere) so the buffer just fills up > > and then barfs. The site keeps going and the error gets logged. > > > > Not that we tend to leave print stmts on deployed code (!), but it has > > been known to happen. The broken pipes have only ever appeared due to > > print stmts. On our dev environments we print stdout to screen so we > > never see these 'broken pipe' errors. > > > > Hope that helps? > > Ian. > > > > On Jan 10, 12:21 pm, Mickey <[EMAIL PROTECTED]> wrote: > > > > > My TurboGears based app (still somewhat under development) throws this > > > error, "exceptions.IOError [Errno 32] Broken pipe". My app uses TG > > > 1.0.2 and Kid templates, along with the identity module for TG. > > > > > I've peppered my code with log.debug statements, and it's failing at a > > > point when I return a multi-valued function: > > > > > def foo() > > > return 1, 2, 3, 4, 5 > > > > > a, b, c, d, e = foo() > > > > > Restarting TG was making it go away, but now it fails every time. It > > > happens to be the main page of the app, so I'm really confused on this > > > one. > > > > > Any ideas? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

