Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and produces an output file repeatedly, simulating the input file separately for each replicate. The error occurs when trying to open the input file to write out the new data. The problem is difficult to reproduce since it only shows up once every few thousand replicates. I've tried using both os.system and os.popen to invoke the external program. Originally I was running this on cygwin, but also tried under windows.
I'm confused as to why the error would state no such file when opening in write mode, it should just create the file if it can't find it. I imagine it has something to do with the external program (its mostly likely not written very well), but I'm hoping theres a solution to this that doesn't involve modifying that program. Is it possible that the file isn't being closed properly? If so, how can I ensure it is available? Thanks -- http://mail.python.org/mailman/listinfo/python-list