This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author firewave
Recipients eryksun, firewave, paul.moore, steve.dower, tim.golden, zach.ware
Date 2022-02-09.15:39:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644421164.22.0.839853470605.issue45789@roundup.psfhosted.org>
In-reply-to
Content
I figured it out.

I tried to delete the files using PowerShell and I got the following:

Remove-Item : Cannot remove item C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe: The
process cannot access the file 'C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe' because it
is being used by another process.

Using the "Resource Monitor" via the "CPU" tab and "Associated Handles" I was able the process which was using those. Somehow the handle search in "Process Explorer" was not returning this.

After closing the process I was able to remove the files and install Python again.

So it is exactly as I suspected before. When an update/uninstall is performed and the files are in use they cannot be updated/removed.

It should probably check this early and fail in case the files are in use so it doesn't perform a partial operation leaving the app unusable/not installable.
History
Date User Action Args
2022-02-09 15:39:24firewavesetrecipients: + firewave, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2022-02-09 15:39:24firewavesetmessageid: <1644421164.22.0.839853470605.issue45789@roundup.psfhosted.org>
2022-02-09 15:39:24firewavelinkissue45789 messages
2022-02-09 15:39:24firewavecreate