title: why am I getting IOError: (9, 'Bad file descriptor') error while making print statements?
body: <p>I am running a python2.5 script on a windows 2003 server as a service. I am getting this error for simple print statments:</p>
  
  <pre><code>IOError: (9, 'Bad file descriptor')
  </code></pre>
  
  <p>I deleted all the print statements because they were only used for development purposes, but I am unsure why a print statement would cause me any greif. I ran the same script not as a service without any major problems. Just wondering if anyone else has any insight?</p>