[issue12395] packaging remove fails under Windows

2011-09-19 Thread Éric Araujo
Éric Araujo added the comment: If I’m not mistaken, 2b9a0a091566 fixed this. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> packaging: fix database to stop skipping uninstall tests on win32 _

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: Ah, nice, just use %r for the filename. I’ll commit this improvement in a few days. Do you want to write a test for the remove error? -- assignee: tarek -> eric.araujo stage: -> needs patch ___ Python tracker

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: We could fix the error message, for example, like this: --- a/Lib/packaging/install.py Fri Jun 24 10:21:46 2011 +0100 +++ b/Lib/packaging/install.py Fri Jun 24 13:06:08 2011 +0100 @@ -412,6 +415,7 @@ error = _move_file(file_, tmpfile)

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: > So the error message needs to say which file(s) couldn't be moved. Isn’t that a Windows error message which we have no control on? -- ___ Python tracker ___

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Vinay Sajip
Changes by Vinay Sajip : -- Removed message: http://bugs.python.org/msg138920 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: I can confirm that putting a list() around the generator allows the removal to proceed: diff -r d2453f281baf Lib/packaging/install.py --- a/Lib/packaging/install.py Fri Jun 24 10:21:46 2011 +0100 +++ b/Lib/packaging/install.py Fri Jun 24 12:48:33 2011 +0100 @@

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: I can confirm that putting a list() around the generator allows the removal to proceed: diff -r d2453f281baf Lib/packaging/install.py --- a/Lib/packaging/install.py Fri Jun 24 10:21:46 2011 +0100 +++ b/Lib/packaging/install.py Fri Jun 24 12:48:33 2011 +0100 @@

[issue12395] packaging remove fails under Windows

2011-06-24 Thread Vinay Sajip
New submission from Vinay Sajip : "pysetup3 remove projectX" fails on Windows. The reason is that the RECORD file can't be moved, as it's still open (we're using a generator in list_installed_files). Apart from fixing that, a related annoyance is that you get the [Error 32] The process canno