Re: python and os.system() failure

2005-05-17 Thread Anthony
Michael Hoffman wrote: > > Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a > lot of complications that are usually unnecessary. I believe I originally used mktemp(), but forgot how I learned that I should use mkstemp() instead. I originally wrote the script over 1.5 years ag

Re: python and os.system() failure

2005-05-02 Thread Michael Hoffman
Anthony wrote: > I only have a tempfile object: > > tmp = tempfile.mkstemp(dir="/var/tmp/") Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a lot of complications that are usually unnecessary. > I will try to explicitly call a close() or whatever the syntax is to > finalize

Re: python and os.system() failure

2005-05-02 Thread Anthony
Thanks for the tip on strace. I will look into it. I only have a tempfile object: tmp = tempfile.mkstemp(dir="/var/tmp/") I will try to explicitly call a close() or whatever the syntax is to finalize the object to deletion by garbage collection. Thanks, Kenny -- http://mail.python.org/mailma

Re: python and os.system() failure

2005-05-01 Thread Michael Hoffman
kennywiggin wrote: > .flac: ERROR while decoding data > state = FLAC__STREAM_DECODER_READ_FRAME > > The script fails to decode any more flac files until the vm > crashes from having too many open files. Whoa! Time to start using file.close() after you're done with each file. If that doesn't fix