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

2006-01-12 Thread Alec Wysoker
7;truncate'): db.db.truncate() 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 >

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 again.

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-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 p

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 the

Occasional OSError: [Errno 13] Permission denied on Windows

2006-01-05 Thread Alec Wysoker
to fix this problem, 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: Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-03-08 Thread Alec Wysoker
It seems unlikely that is the problem, since I can connect from the client machine to server using JDBC, just not using mySQL client (any by extension) mysql-python. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-02-24 Thread Alec Wysoker
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. W

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 I'

Trouble with mysql-python 1.2.0 on Solaris 8 sparc

2005-02-18 Thread Alec Wysoker
ced symbol not found Any 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
rn') 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 -- http://mail.python.org/mailman/listinfo/python-list

Finding user's home dir

2005-02-09 Thread Alec Wysoker
Could you explain a little more clearly what the problem is? In the implementation of expanduser in Python 2.3.4, it uses the value of HOME env var if it exists, otherwise, it uses HOMEDRIVE + HOMEPATH. I don't have access to a Win 2K machine right now, but my recollection is that when I did,