[issue1073] Mysterious failure under Windows

2007-08-31 Thread Martin v. Löwis
Martin v. Löwis added the comment: I'm closing this as "works for me" now. It cannot possibly be a bug in Python, since the error was created by the operating system; Python does not make it up randomly. I also doubt that the operating system will arbitrarily report that a file is not present if

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Aki
Aki added the comment: Sorry to disappoint you but ... (1) Does the file exist before program is started, and remains after program finishes? Yes and Yes (2) Do you change the current directory (with os.chdir or similar)? No. The file is in the current directory where the program was invoked. //

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Gabriel Genellina
Gabriel Genellina added the comment: Does the file exist before program is started, and remains after program finishes? If it is your program which creates the file, you may have a race condition. Maybe some delays/retries will be enough, or perhaps you will have to use some other syncronizati

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Aki
Aki added the comment: I know it is hard to believe. I spent days to try out many things. For example, I added the following: try: print os.path.isfile(fn) <<<--- fd = open(fn, 'rb') crypted = fd.read() fd.close()

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't see the problem. When open() reports that the file does not exist, the most likely reason is that it really does not exist. Perhaps it has not been created, yet, and you need to wait until it has been created before you can open it? -- nosy: +lo

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Aki
New submission from Aki: Hi, I'm not sure this is a right place to write in the problem I found. What I found was: (1) create a thread (2) open a file in the thread (3) everything works fine under Solaris (4) Openning a file in the thread fails intermittenly under Windows Not always it fails. Th

[issue1073] Mysterious failure under Windows

2007-08-31 Thread Aki
Changes by Aki: -- severity: major status: open title: Mysterious failure under Windows versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> __ _