Upgrade Python failed to remove old version's file
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### What You Are Seeing?
After `choco upgrade python python3`, I found both `Python37` and `Python38` exist in `C:\`.
### What is Expected?
Only `Python38` exists in `C:\`.
### How Did You Get This To Happen? (Steps to Reproduce)
Upgrade Python from 3.7.4 to 3.8.0.
### Output Log
Full Log Output
~~~sh
2019-10-18 10:41:46,779 8940 [INFO ] - Chocolatey v0.10.15
2019-10-18 10:41:46,796 8940 [DEBUG] - Chocolatey is running on Windows v 10.0.18362.0
2019-10-18 10:41:46,803 8940 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-10-18 10:41:46,813 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-10-18 10:41:46,837 8940 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade python python3 --debug --verbose
2019-10-18 10:41:46,852 8940 [DEBUG] - Received arguments: upgrade python python3 --debug --verbose
2019-10-18 10:41:46,947 8940 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-10-18 10:41:46,965 8940 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-10-18 10:41:46,982 8940 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-10-18 10:41:47,157 8940 [DEBUG] - Performing validation checks.
2019-10-18 10:41:47,173 8940 [DEBUG] - Global Configuration Validation Checks:
2019-10-18 10:41:47,181 8940 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2019-10-18 10:41:47,186 8940 [DEBUG] - System State Validation Checks:
2019-10-18 10:41:47,192 8940 [DEBUG] - Reboot Requirement Checks:
2019-10-18 10:41:47,199 8940 [DEBUG] - - Pending Computer Rename = Checked
2019-10-18 10:41:47,206 8940 [DEBUG] - - Pending Component Based Servicing = Checked
2019-10-18 10:41:47,211 8940 [DEBUG] - - Pending Windows Auto Update = Checked
2019-10-18 10:41:47,220 8940 [DEBUG] - - Pending File Rename Operations = Ignored
2019-10-18 10:41:47,226 8940 [DEBUG] - - Pending Windows Package Installer = Checked
2019-10-18 10:41:47,231 8940 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2019-10-18 10:41:47,240 8940 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-10-18 10:41:47,245 8940 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-10-18 10:41:47,253 8940 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2019-10-18 10:41:47,273 8940 [DEBUG] - Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\18951\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='python python3'|
AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='python;python3'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.18362.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.15.0'|
Information.ChocolateyProductVersion='0.10.15'|
Information.FullName='choco, Version=0.10.15.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='18951'|
Information.UserDomainName='DESKTOP-A079E81'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\WINDOWS\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-10-18 10:41:47,312 8940 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2019-10-18 10:41:47,330 8940 [INFO ] - Upgrading the following packages:
2019-10-18 10:41:47,337 8940 [INFO ] - python;python3
2019-10-18 10:41:47,341 8940 [INFO ] - By upgrading you accept licenses for the packages.
2019-10-18 10:41:47,655 8940 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2019-10-18 10:41:50,176 8940 [DEBUG] - - Supports prereleases? 'True'.
2019-10-18 10:41:50,180 8940 [DEBUG] - - Is ServiceBased? 'True'.
2019-10-18 10:41:51,253 8940 [DEBUG] - Package 'python' found on source 'https://chocolatey.org/api/v2/'
2019-10-18 10:41:51,263 8940 [WARN ] -
You have python v3.7.4 installed. Version 3.8.0 is available based on your source(s).
2019-10-18 10:41:51,373 8940 [DEBUG] - Backing up existing python prior to operation.
2019-10-18 10:41:51,382 8940 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\python'
to 'C:\ProgramData\chocolatey\lib-bkp\python'
2019-10-18 10:41:53,392 8940 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\python".
2019-10-18 10:41:53,401 8940 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\python\python.nupkg"
to "C:\ProgramData\chocolatey\lib\python\python.nupkg".
2019-10-18 10:41:53,415 8940 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\python\python.nuspec"
to "C:\ProgramData\chocolatey\lib\python\python.nuspec".
2019-10-18 10:41:54,935 8940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python'
2019-10-18 10:41:54,944 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python\python.nupkg'
with checksum 'AAA97E9B75085FAD3BA5EEC948204E43'
2019-10-18 10:41:54,953 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python\python.nuspec'
with checksum 'E3EA359267EBF35C805F83B1C5757388'
2019-10-18 10:41:58,798 8940 [INFO ] - [NuGet] Attempting to resolve dependency 'python3 (= 3.8.0)'.
2019-10-18 10:42:05,403 8940 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey (¡Ý 0.10.5)'.
2019-10-18 10:42:05,430 8940 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (¡Ý 1.3.3)'.
2019-10-18 10:42:07,644 8940 [INFO ] - [NuGet] Uninstalling 'python 3.7.4'.
2019-10-18 10:42:07,672 8940 [DEBUG] - [NuGet] Removed file 'python.nuspec' to folder 'C:\ProgramData\chocolatey\lib\python'.
2019-10-18 10:42:07,683 8940 [DEBUG] - [NuGet] Removed file 'python.nupkg' to folder 'C:\ProgramData\chocolatey\lib\python'.
2019-10-18 10:42:07,695 8940 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\python'.
2019-10-18 10:42:07,704 8940 [INFO ] - [NuGet] Successfully uninstalled 'python 3.7.4'.
2019-10-18 10:42:07,710 8940 [INFO ] - [NuGet] Uninstalling 'python3 3.7.4'.
2019-10-18 10:42:07,736 8940 [DEBUG] - [NuGet] Removed file 'LICENSE.txt' to folder 'C:\ProgramData\chocolatey\lib\python3\legal'.
2019-10-18 10:42:07,748 8940 [DEBUG] - [NuGet] Removed file 'VERIFICATION.txt' to folder 'C:\ProgramData\chocolatey\lib\python3\legal'.
2019-10-18 10:42:07,753 8940 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\python3\legal'.
2019-10-18 10:42:07,759 8940 [DEBUG] - [NuGet] Removed file 'chocolateyInstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\python3\tools'.
2019-10-18 10:42:07,766 8940 [DEBUG] - [NuGet] Removed file 'python3.nuspec' to folder 'C:\ProgramData\chocolatey\lib\python3'.
2019-10-18 10:42:07,785 8940 [DEBUG] - [NuGet] Removed file 'python3.nupkg' to folder 'C:\ProgramData\chocolatey\lib\python3'.
2019-10-18 10:42:07,794 8940 [DEBUG] - [NuGet] Ŀ¼²»Êǿյġ£
2019-10-18 10:42:07,815 8940 [INFO ] - [NuGet] Successfully uninstalled 'python3 3.7.4'.
2019-10-18 10:42:07,850 8940 [INFO ] - [NuGet] Installing 'python3 3.8.0'.
2019-10-18 10:42:07,883 8940 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'python3\legal'.
2019-10-18 10:42:07,897 8940 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'python3\legal'.
2019-10-18 10:42:07,905 8940 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'python3\tools'.
2019-10-18 10:42:08,329 8940 [DEBUG] - [NuGet] Added file 'python-3.8.0-amd64.exe' to folder 'python3\tools'.
2019-10-18 10:42:08,777 8940 [DEBUG] - [NuGet] Added file 'python-3.8.0.exe' to folder 'python3\tools'.
2019-10-18 10:42:08,858 8940 [DEBUG] - [NuGet] Added file 'python3.nupkg' to folder 'python3'.
2019-10-18 10:42:09,197 8940 [DEBUG] - [NuGet] Added file 'python3.nuspec' to folder 'python3'.
2019-10-18 10:42:09,201 8940 [INFO ] - [NuGet] Successfully installed 'python3 3.8.0'.
2019-10-18 10:42:09,209 8940 [INFO ] -
python3 v3.8.0 [Approved]
2019-10-18 10:42:09,234 8940 [INFO ] - python3 package files upgrade completed. Performing other installation steps.
2019-10-18 10:42:09,359 8940 [DEBUG] - Setting installer args for python3
2019-10-18 10:42:09,364 8940 [DEBUG] - Setting package parameters for python3
2019-10-18 10:42:09,368 8940 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1':
2019-10-18 10:42:09,386 8940 [DEBUG] - $ErrorActionPreference = 'STOP'
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$pp = Get-PackageParameters
$installDir = '{0}\Python{1}' -f $Env:SystemDrive, ($Env:ChocolateyPackageVersion -replace '\.').Substring(0,2)
if ( $pp.InstallDir ) {
$installDir = $pp.InstallDir
if ($installDir.StartsWith("'") -or $installDir.StartsWith('"')){ $installDir = $installDir -replace '^.|.$' }
mkdir -force $installDir -ea 0 | out-null
}
$packageArgs = @{
packageName = 'python3'
fileType = 'exe'
file = "$toolsPath\python-3.8.0.exe"
file64 = "$toolsPath\python-3.8.0-amd64.exe"
silentArgs = '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="{0}"' -f $installDir
validExitCodes = @(0)
softwareName = 'Python*'
}
Install-ChocolateyInstallPackage @packageArgs
Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' }
Write-Host "Installed to: '$installDir'"
if (($Env:PYTHONHOME -ne $null) -and ($Env:PYTHONHOME -ne $InstallDir)) {
Write-Warning "Environment variable PYTHONHOME points to different version: $Env:PYTHONHOME"
}
2019-10-18 10:42:09,400 8940 [INFO ] - The package python3 wants to run 'chocolateyInstall.ps1'.
2019-10-18 10:42:09,409 8940 [INFO ] - Note: If you don't run this script, the installation will fail.
2019-10-18 10:42:09,413 8940 [INFO ] - Note: To confirm automatically next time, use '-y' or consider:
2019-10-18 10:42:09,418 8940 [INFO ] - choco feature enable -n allowGlobalConfirmation
2019-10-18 10:42:09,470 8940 [INFO ] - Do you want to run the script?
2019-10-18 10:42:09,472 8940 [INFO ] - 1) yes
2019-10-18 10:42:09,474 8940 [INFO ] - 2) all - yes to all
2019-10-18 10:42:09,477 8940 [INFO ] - 3) no
2019-10-18 10:42:09,479 8940 [INFO ] - 4) print
2019-10-18 10:42:45,696 8940 [INFO ] - Choice selected: 'all - yes to all'
2019-10-18 10:42:45,725 8940 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2019-10-18 10:42:45,741 8940 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=zh-CN, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-10-18 10:42:46,208 8940 [DEBUG] - Host version is 5.1.18362.1, PowerShell Version is '5.1.18362.145' and CLR Version is '4.0.30319.42000'.
2019-10-18 10:42:47,497 8940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-10-18 10:42:47,502 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-10-18 10:42:47,506 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-10-18 10:42:47,509 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-10-18 10:42:47,512 8940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-10-18 10:42:47,517 8940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-10-18 10:42:47,523 8940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-10-18 10:42:47,525 8940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-10-18 10:42:47,530 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-18 10:42:47,534 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-10-18 10:42:47,542 8940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-10-18 10:42:47,546 8940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-10-18 10:42:47,551 8940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-18 10:42:47,556 8940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-10-18 10:42:47,563 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-10-18 10:42:47,575 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-10-18 10:42:47,578 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-10-18 10:42:47,583 8940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-10-18 10:42:47,592 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-10-18 10:42:47,603 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:47,607 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-10-18 10:42:47,612 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-10-18 10:42:47,617 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-10-18 10:42:47,624 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-10-18 10:42:47,628 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-10-18 10:42:47,637 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-18 10:42:47,641 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-10-18 10:42:47,645 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-10-18 10:42:47,649 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-10-18 10:42:47,655 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-10-18 10:42:47,659 8940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-10-18 10:42:47,664 8940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-10-18 10:42:47,671 8940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-10-18 10:42:47,675 8940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-10-18 10:42:47,680 8940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-10-18 10:42:47,684 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-10-18 10:42:47,691 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:47,694 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-10-18 10:42:47,699 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-10-18 10:42:47,708 8940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-10-18 10:42:47,713 8940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-10-18 10:42:47,718 8940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-10-18 10:42:47,725 8940 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-10-18 10:42:47,729 8940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-10-18 10:42:47,736 8940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-10-18 10:42:47,740 8940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-10-18 10:42:47,744 8940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-10-18 10:42:47,749 8940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-10-18 10:42:47,761 8940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-10-18 10:42:47,765 8940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-10-18 10:42:47,771 8940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-10-18 10:42:47,778 8940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-10-18 10:42:47,782 8940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-10-18 10:42:47,803 8940 [DEBUG] - Loading community extensions
2019-10-18 10:42:47,829 8940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2019-10-18 10:42:47,836 8940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2019-10-18 10:42:48,100 8940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-18 10:42:48,120 8940 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-10-18 10:42:48,125 8940 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-10-18 10:42:48,130 8940 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-10-18 10:42:48,136 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-10-18 10:42:48,144 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-18 10:42:48,148 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-10-18 10:42:48,154 8940 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-10-18 10:42:48,159 8940 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-10-18 10:42:48,162 8940 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-10-18 10:42:48,166 8940 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-10-18 10:42:48,170 8940 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-10-18 10:42:48,178 8940 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-10-18 10:42:48,182 8940 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-10-18 10:42:48,189 8940 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-10-18 10:42:48,199 8940 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-10-18 10:42:48,205 8940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2019-10-18 10:42:48,211 8940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2019-10-18 10:42:48,371 8940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2019-10-18 10:42:48,375 8940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2019-10-18 10:42:48,380 8940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2019-10-18 10:42:48,384 8940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2019-10-18 10:42:48,413 8940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-10-18 10:42:48,420 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-10-18 10:42:48,426 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-10-18 10:42:48,431 8940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-10-18 10:42:48,436 8940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-10-18 10:42:48,443 8940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-10-18 10:42:48,446 8940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-10-18 10:42:48,449 8940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-10-18 10:42:48,455 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-18 10:42:48,460 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-10-18 10:42:48,464 8940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-10-18 10:42:48,475 8940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-10-18 10:42:48,479 8940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-18 10:42:48,481 8940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-10-18 10:42:48,488 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-10-18 10:42:48,492 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-10-18 10:42:48,497 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-10-18 10:42:48,501 8940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-10-18 10:42:48,511 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-10-18 10:42:48,515 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:48,521 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-10-18 10:42:48,525 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-10-18 10:42:48,530 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-10-18 10:42:48,535 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-10-18 10:42:48,541 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-10-18 10:42:48,545 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-18 10:42:48,548 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-10-18 10:42:48,555 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-10-18 10:42:48,559 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-10-18 10:42:48,563 8940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-10-18 10:42:48,568 8940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-10-18 10:42:48,575 8940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-10-18 10:42:48,579 8940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-10-18 10:42:48,584 8940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-10-18 10:42:48,589 8940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-10-18 10:42:48,592 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-10-18 10:42:48,596 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:48,601 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-10-18 10:42:48,607 8940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-10-18 10:42:48,610 8940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-10-18 10:42:48,615 8940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-10-18 10:42:48,621 8940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-10-18 10:42:48,627 8940 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-10-18 10:42:48,629 8940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-10-18 10:42:48,635 8940 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-10-18 10:42:48,641 8940 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-10-18 10:42:48,644 8940 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-10-18 10:42:48,648 8940 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-10-18 10:42:48,653 8940 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-10-18 10:42:48,659 8940 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-10-18 10:42:48,663 8940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2019-10-18 10:42:48,668 8940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2019-10-18 10:42:48,676 8940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-10-18 10:42:48,680 8940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-10-18 10:42:48,683 8940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-10-18 10:42:48,688 8940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-10-18 10:42:48,692 8940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-10-18 10:42:48,697 8940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-10-18 10:42:48,700 8940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-10-18 10:42:48,703 8940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-10-18 10:42:48,708 8940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-10-18 10:42:48,714 8940 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-10-18 10:42:48,718 8940 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-10-18 10:42:48,724 8940 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-10-18 10:42:48,729 8940 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-10-18 10:42:48,733 8940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-10-18 10:42:48,739 8940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-10-18 10:42:48,745 8940 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-10-18 10:42:48,748 8940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-10-18 10:42:48,755 8940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-10-18 10:42:48,757 8940 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-10-18 10:42:48,763 8940 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-10-18 10:42:48,767 8940 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-10-18 10:42:48,773 8940 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-10-18 10:42:48,777 8940 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-10-18 10:42:48,782 8940 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-10-18 10:42:48,787 8940 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-10-18 10:42:48,794 8940 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-10-18 10:42:48,798 8940 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-10-18 10:42:48,803 8940 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-10-18 10:42:48,808 8940 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-10-18 10:42:48,816 8940 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-10-18 10:42:48,820 8940 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-10-18 10:42:48,827 8940 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-10-18 10:42:48,830 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-10-18 10:42:48,835 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:48,843 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-10-18 10:42:48,847 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-10-18 10:42:48,850 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-10-18 10:42:48,856 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-10-18 10:42:48,859 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-10-18 10:42:48,864 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-18 10:42:48,868 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-10-18 10:42:48,874 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-10-18 10:42:48,878 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-10-18 10:42:48,883 8940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-10-18 10:42:48,888 8940 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-10-18 10:42:48,894 8940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2019-10-18 10:42:48,899 8940 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-10-18 10:42:48,905 8940 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-10-18 10:42:48,909 8940 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-10-18 10:42:48,914 8940 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-10-18 10:42:48,918 8940 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-10-18 10:42:48,926 8940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2019-10-18 10:42:48,929 8940 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-10-18 10:42:48,934 8940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-18 10:42:48,939 8940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-10-18 10:42:48,943 8940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-10-18 10:42:48,945 8940 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-10-18 10:42:48,950 8940 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-10-18 10:42:48,955 8940 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-10-18 10:42:48,959 8940 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-10-18 10:42:48,962 8940 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-10-18 10:42:48,967 8940 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-10-18 10:42:48,971 8940 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-10-18 10:42:48,977 8940 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-10-18 10:42:48,980 8940 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-10-18 10:42:48,986 8940 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-10-18 10:42:48,991 8940 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-10-18 10:42:48,998 8940 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-10-18 10:42:49,003 8940 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-10-18 10:42:49,010 8940 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-10-18 10:42:49,106 8940 [DEBUG] - ---------------------------Script Execution---------------------------
2019-10-18 10:42:49,112 8940 [DEBUG] - Running 'ChocolateyScriptRunner' for python3 v3.8.0 with packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\python3', installArguments: '', packageParameters: '',
2019-10-18 10:42:49,130 8940 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'
2019-10-18 10:42:49,208 8940 [DEBUG] - Running Get-PackageParameters
2019-10-18 10:42:49,217 8940 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2019-10-18 10:42:49,299 8940 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python38"' -file 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0.exe' -file64 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0-amd64.exe' -fileType 'exe' -validExitCodes '0' -packageName 'python3'
2019-10-18 10:42:49,313 8940 [DEBUG] - Running Get-ProcessorBits -compare '32'
2019-10-18 10:42:49,348 8940 [INFO ] - Installing 64-bit python3...
2019-10-18 10:42:49,456 8940 [DEBUG] - Ensuring 'C:\' exists
2019-10-18 10:42:49,523 8940 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\python3\tools' -statements '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python38" ' -exeToRun 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0-amd64.exe'
2019-10-18 10:42:49,531 8940 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead.
2019-10-18 10:42:49,575 8940 [DEBUG] - Test-ProcessAdminRights: returning True
2019-10-18 10:42:49,596 8940 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python38" ]. This may take a while, depending on the statements.
2019-10-18 10:43:58,781 8940 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python38" ] exited with '0'.
2019-10-18 10:43:58,808 8940 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2019-10-18 10:43:58,813 8940 [INFO ] - python3 has been installed.
2019-10-18 10:43:58,863 8940 [INFO ] - Installed to: 'C:\Python38'
2019-10-18 10:43:58,877 8940 [DEBUG] - ----------------------------------------------------------------------
2019-10-18 10:43:58,888 8940 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-10-18 10:43:58,904 8940 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2019-10-18 10:43:58,971 8940 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2019-10-18 10:43:59,005 8940 [INFO ] - python3 can be automatically uninstalled.
2019-10-18 10:43:59,030 8940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python3'
2019-10-18 10:43:59,315 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\python3.nupkg'
with checksum '049639FC0F762DC1B14BF2D7039FA71A'
2019-10-18 10:43:59,321 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\python3.nuspec'
with checksum '98BD441C549E835A534DEB3EC4C67CA8'
2019-10-18 10:43:59,327 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\legal\LICENSE.txt'
with checksum '3FBFBB88B1C6F11A666EB20C490B6DD6'
2019-10-18 10:43:59,332 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\legal\VERIFICATION.txt'
with checksum '2FB71F4A5E4E12A2F63608FEABCCC205'
2019-10-18 10:43:59,339 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'
with checksum '59D62EA548488ACEEB47DDA46D6CA714'
2019-10-18 10:43:59,344 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.7.4-amd64.exe.ignore'
with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2019-10-18 10:43:59,352 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.8.0-amd64.exe.ignore'
with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2019-10-18 10:43:59,424 8940 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry"
with "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry.8940.update".
Backup placed at "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry.backup".
2019-10-18 10:43:59,439 8940 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry.8940.update"
to "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry".
2019-10-18 10:43:59,462 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.registry.8940.update".
2019-10-18 10:43:59,488 8940 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files"
with "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files.8940.update".
Backup placed at "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files.backup".
2019-10-18 10:43:59,495 8940 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files.8940.update"
to "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files".
2019-10-18 10:43:59,503 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.files.8940.update".
2019-10-18 10:43:59,507 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.arguments".
2019-10-18 10:43:59,538 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.extra".
2019-10-18 10:43:59,543 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.version".
2019-10-18 10:43:59,550 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.sxs".
2019-10-18 10:43:59,554 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.8.0\.pin".
2019-10-18 10:43:59,562 8940 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-10-18 10:43:59,567 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\python3\.chocolateyPending".
2019-10-18 10:43:59,573 8940 [INFO ] - The upgrade of python3 was successful.
2019-10-18 10:43:59,577 8940 [INFO ] - Software installed as 'exe', install location is likely default.
2019-10-18 10:43:59,603 8940 [INFO ] - [NuGet] Installing 'python 3.8.0'.
2019-10-18 10:43:59,615 8940 [DEBUG] - [NuGet] Added file 'python.nupkg' to folder 'python'.
2019-10-18 10:43:59,823 8940 [DEBUG] - [NuGet] Added file 'python.nuspec' to folder 'python'.
2019-10-18 10:43:59,828 8940 [INFO ] - [NuGet] Successfully installed 'python 3.8.0'.
2019-10-18 10:43:59,834 8940 [INFO ] -
python v3.8.0 [Approved]
2019-10-18 10:43:59,843 8940 [INFO ] - python package files upgrade completed. Performing other installation steps.
2019-10-18 10:43:59,919 8940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python'
2019-10-18 10:43:59,925 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python\python.nupkg'
with checksum 'D893526667E6A583F01CFE0C1194BA05'
2019-10-18 10:43:59,929 8940 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python\python.nuspec'
with checksum '40546F2111BF74814E779FFB13ACA6DE'
2019-10-18 10:43:59,939 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.8.0\.arguments".
2019-10-18 10:43:59,970 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.8.0\.extra".
2019-10-18 10:43:59,977 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.8.0\.version".
2019-10-18 10:43:59,981 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.8.0\.sxs".
2019-10-18 10:43:59,988 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.8.0\.pin".
2019-10-18 10:43:59,993 8940 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-10-18 10:43:59,998 8940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\python\.chocolateyPending".
2019-10-18 10:44:00,018 8940 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\python".
2019-10-18 10:44:00,027 8940 [INFO ] - The upgrade of python was successful.
2019-10-18 10:44:00,030 8940 [INFO ] - Software install location not explicitly set, could be in package or
default install location if installer.
2019-10-18 10:44:00,042 8940 [DEBUG] - Attempting to delete file "C:\Users\18951\AppData\Local\NuGet\Cache\python.3.8.0.nupkg".
2019-10-18 10:44:00,072 8940 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2019-10-18 10:44:00,076 8940 [DEBUG] - - Supports prereleases? 'True'.
2019-10-18 10:44:00,081 8940 [DEBUG] - - Is ServiceBased? 'True'.
2019-10-18 10:44:02,436 8940 [DEBUG] - Package 'python3' found on source 'https://chocolatey.org/api/v2/'
2019-10-18 10:44:02,443 8940 [INFO ] - python3 v3.8.0 is the latest version available based on your source(s).
2019-10-18 10:44:02,473 8940 [WARN ] -
Chocolatey upgraded 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-10-18 10:44:02,481 8940 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-10-18 10:44:02,640 8940 [DEBUG] - Exiting with 0
~~~
Contributor guide
Research direction
Start by reproducing `choco upgrade python python3` from Python 3.7.4 to 3.8.0 on Windows and inspect the complete debug log. Trace the upgrade and uninstall flow that handles `C:\Python37` and `C:\Python38`; done means the old version's directory is removed while the new installation remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100