Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-12 Thread Alec Wysoker
() db.close() return True Pretty ugly but it seems to work. -Alec Alec Wysoker wrote: I tried something not exactly like this, but in the same spirit. I don't generally have a list of files I want to delete - just one. I try to delete it and if I get errno 13 I sleep for a little while

Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-07 Thread Alec Wysoker
File attributes may be an issue to. Take look at the recipe at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343 which ensures the file attributes are normal before you delete it. I don't think file attributes are an issue, because generally I can manually delete the file in

Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-07 Thread Alec Wysoker
I tried something not exactly like this, but in the same spirit. I don't generally have a list of files I want to delete - just one. I try to delete it and if I get errno 13 I sleep for a little while (0.2) and then try again. If the same problem then I add 1 sec to the sleep time and try

Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-05 Thread Alec Wysoker
, because I'm developing an app that won't survive if it fails to delete its files. Thanks, Alec Wysoker -- http://mail.python.org/mailman/listinfo/python-list

Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-05 Thread Alec Wysoker
Interesting theory. I do have a virus scanner, and also Google Desktop Search. Sometimes I get this error when running a large suite of unit tests. Each unit test starts off by cleaning the test output directory, and failing if it can't do so. I will see many (hundreds?) tests fail because

Re: Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-05 Thread Alec Wysoker
Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno 13] Permission denied when calling os.remove(). This can occur with a file that is not used by any other process on the machine, How do you know that? Yeah, good point. I don't really know. I should have said no process

Re: Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-24 Thread Alec Wysoker
Hi Andy, Thanks for your message. It turned out that I had installed 64-bit mySql on a 32-bit machine. I'm amazed it worked at all. Anyway, I finally got mysql-python built, but I'm unable to connect to a machine on a remote host. The problem doesn't seem to be with the python code, because

Re: Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-24 Thread Alec Wysoker
that it is the right version: /usr/local/mysql/bin/mysql --version /usr/local/mysql/bin/mysql Ver 14.7 Distrib 4.1.10, for sun-solaris2.8 (sparc) At 03:08 PM 2/24/2005, Steve Holden wrote: Alec Wysoker wrote: Hi Steve, Thanks for the response. I don't think this is the problem. When I connect to the remote

Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-18 Thread Alec Wysoker
advice would be greatly appreciated. Thanks, Alec Wysoker -- http://mail.python.org/mailman/listinfo/python-list

Crash in thread on program termination

2005-02-09 Thread Alec Wysoker
: self.__stop() # Line 451 I.e. I would expect to get one of the messages ('raised SystemExit', 'unhandled exception', or 'normal return') before self.__stop() is called at line 451. However, I do not see any of those messages. Any ideas or suggestions? I am baffled. Thanks, Alec Wysoker