chocolatey-community / chocolatey-packages

Chocolatey Community Maintainers Team Packages - packages that are managed and maintained by core community team for community package repository (https://community.chocolatey.org/packages)
https://community.chocolatey.org/profiles/chocolatey-community
Apache License 2.0
447 stars 377 forks source link

(python3) installation failing chocolateyInstall.ps1 #1691

Closed bilalanwer24h closed 2 years ago

bilalanwer24h commented 3 years ago

Python should be installed successfully via chocolateyInstall.ps1'.

================================================================ PS C:\Windows\system32> choco install python3 Chocolatey v0.10.15 Installing the following packages: python3 By installing you accept licenses for the packages. Progress: Downloading python3 3.10.0-b4... 100%

python3 v3.10.0-b4 [Approved] python3 package files install completed. Performing other installation steps. The package python3 wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): yes

Installing 64-bit python3... ERROR: Running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.0b4-amd64.exe" /quiet InstallAllUsers=1 Prepend Path=1 TargetDir="C:\Python310" ] was not successful. Exit code was '1'. See log for possible error messages. The install of python3 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'. See log for details.

Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

========================================================

Any help will be highly appreciated.

Regards

pauby commented 3 years ago

Can you let us know what you've done to troubleshoot it?

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] commented 2 years ago

Dear contributor,

As this issue seems to have been inactive for quite some time now, I've automatically closed it. If you feel this is a valid issue, please feel free to re-open the issue if/when a pull request has been added. Thank you for your contribution.

Mugane commented 2 years ago

Please reopen this. No solution exists as far as I can tell.

Terminal:

$ choco install -y python
Chocolatey v0.11.3
Installing the following packages:
python
By installing, you accept licenses for the packages.
Progress: Downloading python3 3.10.2... 100%
Progress: Downloading python 3.10.2... 100%

python3 v3.10.2 [Approved]
python3 package files install completed. Performing other installation steps.
Installing 64-bit python3...
ERROR: Running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310" ] was not successful. Exit code was '1'. See log for possible error messages.
The install of python3 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'.
 See log for details.

python v3.10.2 [Approved]
python package files install completed. Performing other installation steps.
 The install of python was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - python3 (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'.
 See log for details.

chocolatey.log:

2022-03-06 00:09:37,540 13940 [DEBUG] - XmlConfiguration is now operational
2022-03-06 00:09:37,575 13940 [INFO ] - ============================================================
2022-03-06 00:09:37,706 13940 [INFO ] - Chocolatey v0.11.3
2022-03-06 00:09:37,711 13940 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2022-03-06 00:09:37,713 13940 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2022-03-06 00:09:37,713 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2022-03-06 00:09:37,721 13940 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y python
2022-03-06 00:09:37,722 13940 [DEBUG] - Received arguments: install -y python
2022-03-06 00:09:37,758 13940 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2022-03-06 00:09:37,764 13940 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2022-03-06 00:09:37,770 13940 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2022-03-06 00:09:37,805 13940 [DEBUG] - Performing validation checks.
2022-03-06 00:09:37,810 13940 [DEBUG] - Global Configuration Validation Checks:
2022-03-06 00:09:37,811 13940 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2022-03-06 00:09:37,812 13940 [DEBUG] - System State Validation Checks:
2022-03-06 00:09:37,814 13940 [DEBUG] -  Reboot Requirement Checks:
2022-03-06 00:09:37,815 13940 [DEBUG] -  - Pending Computer Rename = Checked
2022-03-06 00:09:37,816 13940 [DEBUG] -  - Pending Component Based Servicing = Checked
2022-03-06 00:09:37,817 13940 [DEBUG] -  - Pending Windows Auto Update = Checked
2022-03-06 00:09:37,818 13940 [DEBUG] -  - Pending File Rename Operations = Ignored
2022-03-06 00:09:37,820 13940 [DEBUG] -  - Pending Windows Package Installer = Checked
2022-03-06 00:09:37,821 13940 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2022-03-06 00:09:37,824 13940 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2022-03-06 00:09:37,826 13940 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2022-03-06 00:09:37,828 13940 [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.
2022-03-06 00:09:37,836 13940 [DEBUG] - Configuration: CommandName='install'|CacheLocation='C:\tools\cygwin\tmp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='python'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='python'|
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='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.11.3.0'|
Information.ChocolateyProductVersion='0.11.3'|
Information.FullName='choco, Version=0.11.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='Admin'|Information.UserDomainName='Kirinyaga'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Users\Admin\Clients\Maya\GitLab\builder'|

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'|
ExportCommand.IncludeVersionNumbers='False'|
Proxy.BypassList='192.168.99.100'|Proxy.BypassOnLocal='True'|
2022-03-06 00:09:37,837 13940 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2022-03-06 00:09:37,841 13940 [INFO ] - Installing the following packages:
2022-03-06 00:09:37,843 13940 [INFO ] - python
2022-03-06 00:09:37,844 13940 [INFO ] - By installing, you accept licenses for the packages.
2022-03-06 00:09:37,937 13940 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2022-03-06 00:09:38,819 13940 [DEBUG] - - Supports prereleases? 'True'.
2022-03-06 00:09:38,821 13940 [DEBUG] - - Is ServiceBased? 'True'.
2022-03-06 00:09:39,010 13940 [DEBUG] - Package 'python' found on source 'https://chocolatey.org/api/v2/'
2022-03-06 00:09:39,078 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'python3 (= 3.10.2)'.
2022-03-06 00:09:53,736 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'vcredist2015 (= 14.0.24215.20170201)'.
2022-03-06 00:09:53,753 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'vcredist140 (= 14.0.24215.1)'.
2022-03-06 00:09:53,774 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.3.3)'.
2022-03-06 00:09:53,802 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'KB3033929 (= 1.0.3)'.
2022-03-06 00:09:53,824 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-windowsupdate.extension (= 1.0.4)'.
2022-03-06 00:09:53,876 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'KB3035131 (= 1.0.3)'.
2022-03-06 00:09:53,895 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919355 (= 1.0.20160915)'.
2022-03-06 00:09:53,910 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919442 (= 1.0.20160915)'.
2022-03-06 00:09:53,926 13940 [INFO ] - [NuGet] Attempting to resolve dependency 'kb2999226 (= 1.0.20170509)'.
2022-03-06 00:09:54,511 13940 [INFO ] - [NuGet] Installing 'python3 3.10.2'.
2022-03-06 00:09:54,517 13940 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'python3\legal'.
2022-03-06 00:09:54,518 13940 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'python3\legal'.
2022-03-06 00:09:54,520 13940 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'python3\tools'.
2022-03-06 00:09:54,521 13940 [DEBUG] - [NuGet] Added file 'helpers.ps1' to folder 'python3\tools'.
2022-03-06 00:09:54,544 13940 [DEBUG] - [NuGet] Added file 'python-3.10.2-amd64.exe' to folder 'python3\tools'.
2022-03-06 00:09:54,562 13940 [DEBUG] - [NuGet] Added file 'python-3.10.2.exe' to folder 'python3\tools'.
2022-03-06 00:09:54,605 13940 [DEBUG] - [NuGet] Added file 'python3.nupkg' to folder 'python3'.
2022-03-06 00:09:54,843 13940 [DEBUG] - [NuGet] Added file 'python3.nuspec' to folder 'python3'.
2022-03-06 00:09:54,844 13940 [INFO ] - [NuGet] Successfully installed 'python3 3.10.2'.
2022-03-06 00:09:54,846 13940 [INFO ] - 
python3 v3.10.2 [Approved]
2022-03-06 00:09:54,855 13940 [INFO ] - python3 package files install completed. Performing other installation steps.
2022-03-06 00:09:54,928 13940 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1':
2022-03-06 00:09:54,936 13940 [DEBUG] - $ErrorActionPreference = 'STOP'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. "$toolsPath/helpers.ps1"

$pp = Get-PackageParameters
$twoPartVersion = $Env:ChocolateyPackageVersion -replace "^(\d+\.\d+).*", "`$1"
$defaultFolder = '{0}\Python{1}' -f $Env:SystemDrive, ($twoPartVersion -replace '\.')
if ( $pp.InstallDir ) {
  $installDir = $pp.InstallDir
  if ($installDir.StartsWith("'") -or $installDir.StartsWith('"')) { $installDir = $installDir -replace '^.|.$' }
  mkdir -force $installDir -ea 0 | out-null
}
else {
  $installDir = $defaultFolder
}

Install-Python -toolsPath $toolsPath -installDir $installDir

if ($pp.InstallDir32) {
  Install-Python -toolsPath $toolsPath -installDir $pp.InstallDir32 -only32Bit

  $installed32BitLocation = Get-InstallLocation -twoPartVersion $twoPartVersion -is32Bit

  Write-Host "32-Bit Python installed to: '$installed32BitLocation'"
}

Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }

Update-SessionEnvironment
$installLocation = Get-InstallLocation -twoPartVersion $twoPartVersion

if ($installLocation -ne $installDir) {
  Write-Warning "Provided python InstallDir was ignored by the python installer"
  Write-Warning "Its probable that you had pre-existing python installation"
  Write-Warning "Python installed to: '$installLocation'"
}
else { Write-Host "Python installed to: '$installDir'" }

if (($Env:PYTHONHOME -ne $null) -and ($Env:PYTHONHOME -ne $InstallDir)) {
  Write-Warning "Environment variable PYTHONHOME points to different version: $Env:PYTHONHOME"
}

if ($pp.NoLockdown) {
  Write-Warning "NoLockdown parameter found. Not changing permissions. Please ensure your installation is secure."
} else {
  . "$toolsPath/helpers.ps1"
  Protect-InstallFolder `
    -packageName "python3" `
    -defaultInstallPath $defaultFolder `
    -folder $installLocation  
}

2022-03-06 00:09:54,948 13940 [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 ''']
2022-03-06 00:09:54,950 13940 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-03-06 00:09:55,097 13940 [DEBUG] - Host version is 5.1.14409.1005, PowerShell Version is '5.1.14409.1018' and CLR Version is '4.0.30319.42000'.
2022-03-06 00:09:55,226 13940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-03-06 00:09:55,227 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-03-06 00:09:55,228 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-03-06 00:09:55,228 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-03-06 00:09:55,229 13940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-03-06 00:09:55,230 13940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-03-06 00:09:55,230 13940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-03-06 00:09:55,231 13940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-03-06 00:09:55,231 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-03-06 00:09:55,232 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-03-06 00:09:55,233 13940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-03-06 00:09:55,234 13940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-03-06 00:09:55,234 13940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-03-06 00:09:55,235 13940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-03-06 00:09:55,235 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-03-06 00:09:55,236 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-03-06 00:09:55,237 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-03-06 00:09:55,238 13940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-03-06 00:09:55,239 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-03-06 00:09:55,239 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,240 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-03-06 00:09:55,241 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-03-06 00:09:55,241 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-03-06 00:09:55,242 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-03-06 00:09:55,243 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-03-06 00:09:55,243 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-03-06 00:09:55,244 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-03-06 00:09:55,245 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-03-06 00:09:55,245 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-03-06 00:09:55,246 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-03-06 00:09:55,246 13940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-03-06 00:09:55,247 13940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-03-06 00:09:55,248 13940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-03-06 00:09:55,248 13940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-03-06 00:09:55,249 13940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-03-06 00:09:55,250 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-03-06 00:09:55,251 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,251 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-03-06 00:09:55,252 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-03-06 00:09:55,253 13940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-03-06 00:09:55,254 13940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-03-06 00:09:55,254 13940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-03-06 00:09:55,255 13940 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-03-06 00:09:55,255 13940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-03-06 00:09:55,257 13940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-03-06 00:09:55,257 13940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-03-06 00:09:55,258 13940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-03-06 00:09:55,259 13940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-03-06 00:09:55,259 13940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-03-06 00:09:55,260 13940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-03-06 00:09:55,261 13940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-03-06 00:09:55,261 13940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-03-06 00:09:55,262 13940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-03-06 00:09:55,272 13940 [DEBUG] - Loading community extensions
2022-03-06 00:09:55,278 13940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2022-03-06 00:09:55,279 13940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2022-03-06 00:09:55,342 13940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-03-06 00:09:55,343 13940 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-03-06 00:09:55,344 13940 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-03-06 00:09:55,345 13940 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-03-06 00:09:55,345 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-03-06 00:09:55,346 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-03-06 00:09:55,348 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-03-06 00:09:55,348 13940 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-03-06 00:09:55,350 13940 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-03-06 00:09:55,353 13940 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-03-06 00:09:55,354 13940 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-03-06 00:09:55,355 13940 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-03-06 00:09:55,356 13940 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-03-06 00:09:55,357 13940 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-03-06 00:09:55,357 13940 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-03-06 00:09:55,358 13940 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-03-06 00:09:55,359 13940 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-03-06 00:09:55,359 13940 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-03-06 00:09:55,360 13940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2022-03-06 00:09:55,361 13940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2022-03-06 00:09:55,374 13940 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-03-06 00:09:55,375 13940 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-03-06 00:09:55,375 13940 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-03-06 00:09:55,376 13940 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-03-06 00:09:55,377 13940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'
2022-03-06 00:09:55,378 13940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'.
2022-03-06 00:09:55,397 13940 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-03-06 00:09:55,398 13940 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-03-06 00:09:55,398 13940 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-03-06 00:09:55,399 13940 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-03-06 00:09:55,400 13940 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-03-06 00:09:55,402 13940 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-03-06 00:09:55,405 13940 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-03-06 00:09:55,406 13940 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-03-06 00:09:55,406 13940 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-03-06 00:09:55,407 13940 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-03-06 00:09:55,408 13940 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-03-06 00:09:55,408 13940 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-03-06 00:09:55,409 13940 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-03-06 00:09:55,410 13940 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-03-06 00:09:55,410 13940 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-03-06 00:09:55,411 13940 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-03-06 00:09:55,411 13940 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-03-06 00:09:55,412 13940 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-03-06 00:09:55,412 13940 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-03-06 00:09:55,413 13940 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-03-06 00:09:55,414 13940 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-03-06 00:09:55,415 13940 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-03-06 00:09:55,450 13940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-03-06 00:09:55,451 13940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-03-06 00:09:55,451 13940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-03-06 00:09:55,452 13940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-03-06 00:09:55,453 13940 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-03-06 00:09:55,454 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-03-06 00:09:55,455 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-03-06 00:09:55,455 13940 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-03-06 00:09:55,456 13940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-03-06 00:09:55,456 13940 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-03-06 00:09:55,457 13940 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-03-06 00:09:55,458 13940 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-03-06 00:09:55,458 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-03-06 00:09:55,459 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-03-06 00:09:55,460 13940 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-03-06 00:09:55,460 13940 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-03-06 00:09:55,461 13940 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-03-06 00:09:55,461 13940 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-03-06 00:09:55,462 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-03-06 00:09:55,463 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-03-06 00:09:55,463 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-03-06 00:09:55,464 13940 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-03-06 00:09:55,465 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-03-06 00:09:55,465 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,466 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-03-06 00:09:55,467 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-03-06 00:09:55,468 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-03-06 00:09:55,469 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-03-06 00:09:55,470 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-03-06 00:09:55,470 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-03-06 00:09:55,471 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-03-06 00:09:55,471 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-03-06 00:09:55,472 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-03-06 00:09:55,472 13940 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-03-06 00:09:55,473 13940 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-03-06 00:09:55,473 13940 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-03-06 00:09:55,474 13940 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-03-06 00:09:55,475 13940 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-03-06 00:09:55,475 13940 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-03-06 00:09:55,476 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-03-06 00:09:55,476 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,476 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-03-06 00:09:55,477 13940 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-03-06 00:09:55,477 13940 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-03-06 00:09:55,478 13940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-03-06 00:09:55,479 13940 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-03-06 00:09:55,479 13940 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-03-06 00:09:55,480 13940 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-03-06 00:09:55,480 13940 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-03-06 00:09:55,481 13940 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-03-06 00:09:55,482 13940 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-03-06 00:09:55,482 13940 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-03-06 00:09:55,483 13940 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-03-06 00:09:55,484 13940 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-03-06 00:09:55,484 13940 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-03-06 00:09:55,485 13940 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-03-06 00:09:55,486 13940 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-03-06 00:09:55,487 13940 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-03-06 00:09:55,487 13940 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-03-06 00:09:55,488 13940 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-03-06 00:09:55,488 13940 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-03-06 00:09:55,489 13940 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-03-06 00:09:55,490 13940 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-03-06 00:09:55,490 13940 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-03-06 00:09:55,491 13940 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-03-06 00:09:55,492 13940 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-03-06 00:09:55,492 13940 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-03-06 00:09:55,493 13940 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-03-06 00:09:55,494 13940 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-03-06 00:09:55,494 13940 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-03-06 00:09:55,495 13940 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-03-06 00:09:55,496 13940 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-03-06 00:09:55,496 13940 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-03-06 00:09:55,497 13940 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-03-06 00:09:55,497 13940 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-03-06 00:09:55,498 13940 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-03-06 00:09:55,499 13940 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-03-06 00:09:55,499 13940 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-03-06 00:09:55,500 13940 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-03-06 00:09:55,501 13940 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-03-06 00:09:55,502 13940 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-03-06 00:09:55,502 13940 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-03-06 00:09:55,503 13940 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-03-06 00:09:55,504 13940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-03-06 00:09:55,504 13940 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-03-06 00:09:55,505 13940 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-03-06 00:09:55,506 13940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-03-06 00:09:55,506 13940 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-03-06 00:09:55,507 13940 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-03-06 00:09:55,508 13940 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-03-06 00:09:55,508 13940 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-03-06 00:09:55,509 13940 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-03-06 00:09:55,509 13940 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-03-06 00:09:55,510 13940 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-03-06 00:09:55,510 13940 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-03-06 00:09:55,511 13940 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-03-06 00:09:55,512 13940 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-03-06 00:09:55,512 13940 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-03-06 00:09:55,513 13940 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-03-06 00:09:55,513 13940 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-03-06 00:09:55,514 13940 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-03-06 00:09:55,515 13940 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-03-06 00:09:55,515 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-03-06 00:09:55,516 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,517 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-03-06 00:09:55,517 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-03-06 00:09:55,518 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-03-06 00:09:55,518 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-03-06 00:09:55,519 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-03-06 00:09:55,520 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-03-06 00:09:55,520 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-03-06 00:09:55,521 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-03-06 00:09:55,521 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-03-06 00:09:55,522 13940 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-03-06 00:09:55,523 13940 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-03-06 00:09:55,523 13940 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-03-06 00:09:55,524 13940 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-03-06 00:09:55,525 13940 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-03-06 00:09:55,525 13940 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-03-06 00:09:55,526 13940 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-03-06 00:09:55,526 13940 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-03-06 00:09:55,527 13940 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-03-06 00:09:55,528 13940 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-03-06 00:09:55,528 13940 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-03-06 00:09:55,529 13940 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-03-06 00:09:55,529 13940 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-03-06 00:09:55,530 13940 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-03-06 00:09:55,530 13940 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-03-06 00:09:55,531 13940 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-03-06 00:09:55,532 13940 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-03-06 00:09:55,532 13940 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-03-06 00:09:55,533 13940 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-03-06 00:09:55,533 13940 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-03-06 00:09:55,534 13940 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-03-06 00:09:55,535 13940 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-03-06 00:09:55,536 13940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-03-06 00:09:55,537 13940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-03-06 00:09:55,539 13940 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-03-06 00:09:55,539 13940 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-03-06 00:09:55,540 13940 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-03-06 00:09:55,541 13940 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-03-06 00:09:55,541 13940 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-03-06 00:09:55,542 13940 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-03-06 00:09:55,543 13940 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-03-06 00:09:55,543 13940 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-03-06 00:09:55,544 13940 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-03-06 00:09:55,544 13940 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-03-06 00:09:55,545 13940 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-03-06 00:09:55,546 13940 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-03-06 00:09:55,546 13940 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-03-06 00:09:55,547 13940 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-03-06 00:09:55,548 13940 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-03-06 00:09:55,570 13940 [DEBUG] - ---------------------------Script Execution---------------------------
2022-03-06 00:09:55,571 13940 [DEBUG] - Running 'ChocolateyScriptRunner' for python3 v3.10.2 with packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\python3', installArguments: '', packageParameters: '',
2022-03-06 00:09:55,577 13940 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'
2022-03-06 00:09:55,600 13940 [DEBUG] - Running Get-PackageParameters 
2022-03-06 00:09:55,603 13940 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2022-03-06 00:09:55,647 13940 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310"' -file 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2.exe' -fileType 'exe' -validExitCodes '0' -file64 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe' -packageName 'python3' 
2022-03-06 00:09:55,652 13940 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2022-03-06 00:09:55,663 13940 [INFO ] - Installing 64-bit python3...
2022-03-06 00:09:55,693 13940 [DEBUG] - Ensuring 'C:\' exists
2022-03-06 00:09:55,718 13940 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\python3\tools' -statements '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310" ' -exeToRun 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe' 
2022-03-06 00:09:55,746 13940 [DEBUG] - Test-ProcessAdminRights: returning True
2022-03-06 00:09:55,751 13940 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310" ]. This may take a while, depending on the statements.
2022-03-06 00:09:56,112 13940 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310" ] exited with '1'.
2022-03-06 00:09:56,132 13940 [ERROR] - ERROR: Running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python310" ] was not successful. Exit code was '1'. See log for possible error messages.
2022-03-06 00:09:56,136 13940 [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 '1'.
2022-03-06 00:09:56,141 13940 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-03-06 00:09:56,156 13940 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-03-06 00:09:56,240 13940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python3'
2022-03-06 00:09:56,405 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\python3.nupkg'
  with checksum 'EF34B46B4932D15E33B0F99DE5ECBFC8'
2022-03-06 00:09:56,406 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\python3.nuspec'
  with checksum '3C8E9A4C492EFF4E60B57D3A8C3F40DC'
2022-03-06 00:09:56,407 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\legal\LICENSE.txt'
  with checksum '3FBFBB88B1C6F11A666EB20C490B6DD6'
2022-03-06 00:09:56,408 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\legal\VERIFICATION.txt'
  with checksum '568AF5B6EA2CC3E7981CCDB5D39E79F6'
2022-03-06 00:09:56,409 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'
  with checksum 'F666B4ECA6C344CB1A5E19D00263F501'
2022-03-06 00:09:56,410 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\tools\helpers.ps1'
  with checksum '57720D017CC2AF92672EC71DF7D089B1'
2022-03-06 00:09:56,510 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe'
  with checksum '2B4FD1ED6E736F0E65572DA64C17E020'
2022-03-06 00:09:56,511 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2-amd64.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2022-03-06 00:09:56,593 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.10.2.exe'
  with checksum 'EF91F4E873280D37EB5BC26E7B18D3D1'
2022-03-06 00:09:56,606 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.10.2\.arguments".
2022-03-06 00:09:56,606 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.10.2\.extra".
2022-03-06 00:09:56,607 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.10.2\.version".
2022-03-06 00:09:56,608 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.10.2\.sxs".
2022-03-06 00:09:56,608 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python3.3.10.2\.pin".
2022-03-06 00:09:56,613 13940 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\python3".
2022-03-06 00:09:56,631 13940 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-03-06 00:09:56,632 13940 [ERROR] - The install of python3 was NOT successful.
2022-03-06 00:09:56,635 13940 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'.
 See log for details.
2022-03-06 00:09:56,639 13940 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\python3'
 to 'C:\ProgramData\chocolatey\lib-bad\python3'
2022-03-06 00:09:58,689 13940 [INFO ] - [NuGet] Installing 'python 3.10.2'.
2022-03-06 00:09:58,692 13940 [DEBUG] - [NuGet] Added file 'python.nupkg' to folder 'python'.
2022-03-06 00:09:58,894 13940 [DEBUG] - [NuGet] Added file 'python.nuspec' to folder 'python'.
2022-03-06 00:09:58,895 13940 [INFO ] - [NuGet] Successfully installed 'python 3.10.2'.
2022-03-06 00:09:58,896 13940 [INFO ] - 
python v3.10.2 [Approved]
2022-03-06 00:09:58,898 13940 [INFO ] - python package files install completed. Performing other installation steps.
2022-03-06 00:09:58,972 13940 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python'
2022-03-06 00:09:58,973 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python\python.nupkg'
  with checksum '72342612A58E829EC42E5623D4E3CC5D'
2022-03-06 00:09:58,974 13940 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python\python.nuspec'
  with checksum '2D2CE00462FED4225BB364E355ABBEF9'
2022-03-06 00:09:58,982 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.10.2\.arguments".
2022-03-06 00:09:58,983 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.10.2\.extra".
2022-03-06 00:09:58,984 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.10.2\.version".
2022-03-06 00:09:58,985 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.10.2\.sxs".
2022-03-06 00:09:58,985 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python.3.10.2\.pin".
2022-03-06 00:09:58,987 13940 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-03-06 00:09:58,988 13940 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\python\.chocolateyPending".
2022-03-06 00:09:58,990 13940 [INFO ] -  The install of python was successful.
2022-03-06 00:09:58,991 13940 [INFO ] -   Software install location not explicitly set, it could be in package or
  default install location of installer.
2022-03-06 00:09:58,992 13940 [DEBUG] - Attempting to delete file "C:\Users\Admin\AppData\Local\NuGet\Cache\python.3.10.2.nupkg".
2022-03-06 00:09:59,000 13940 [WARN ] - 
Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-03-06 00:09:59,001 13940 [INFO ] - 
2022-03-06 00:09:59,002 13940 [ERROR] - Failures
2022-03-06 00:09:59,004 13940 [ERROR] -  - python3 (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'.
 See log for details.
2022-03-06 00:09:59,005 13940 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2022-03-06 00:09:59,046 13940 [DEBUG] - Exiting with 1
pauby commented 2 years ago

Works fine here in Windows 10 sandbox. I think this is a local environment issue.

PS C:\Users\WDAGUtilityAccount> choco install -y python
Chocolatey v0.12.1
Installing the following packages:
python
By installing, you accept licenses for the packages.
Progress: Downloading python3 3.10.2... 100%
Progress: Downloading KB2919355 1.0.20160915... 100%
Progress: Downloading python 3.10.2... 100%

chocolatey-core.extension v1.3.5.1
chocolatey-core.extension package files install completed. Performing other installation steps.
 Installed/updated chocolatey-core extensions.
 The install of chocolatey-core.extension was successful.
  Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'

chocolatey-windowsupdate.extension v1.0.4
chocolatey-windowsupdate.extension package files install completed. Performing other installation steps.
 Installed/updated chocolatey-windowsupdate extensions.
 The install of chocolatey-windowsupdate.extension was successful.
  Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate'

KB3035131 v1.0.3
kb3035131 package files install completed. Performing other installation steps.
Skipping installation because update KB3035131 does not apply to this operating system (Microsoft Windows 10 Enterprise).
 The install of kb3035131 was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

KB3033929 v1.0.5
kb3033929 package files install completed. Performing other installation steps.
Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows 10 Enterprise).
 The install of kb3033929 was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

KB2919442 v1.0.20160915
kb2919442 package files install completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
 The install of kb2919442 was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

KB2919355 v1.0.20160915 [Approved]
kb2919355 package files install completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
 The install of kb2919355 was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

KB2999226 v1.0.20181019
kb2999226 package files install completed. Performing other installation steps.
Skipping installation because update KB2999226 does not apply to this operating system (Microsoft Windows 10 Enterprise).
 The install of kb2999226 was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

vcredist140 v14.28.29913
vcredist140 package files install completed. Performing other installation steps.
Installing vcredist140-x86...
vcredist140-x86 has been installed.
Installing vcredist140-x64...
vcredist140-x64 has been installed.
  vcredist140 may be able to be automatically uninstalled.
 The install of vcredist140 was successful.
  Software installed as 'exe', install location is likely default.

vcredist2015 v14.0.24215.20170201
vcredist2015 package files install completed. Performing other installation steps.
 The install of vcredist2015 was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\vcredist2015'

python3 v3.10.2 [Approved]
python3 package files install completed. Performing other installation steps.
Installing 64-bit python3...
python3 has been installed.
Python installed to: 'C:\Python310'
Restricting write permissions to Administrators
  python3 can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of python3 was successful.
  Software installed as 'exe', install location is likely default.

python v3.10.2 [Approved]
python package files install completed. Performing other installation steps.
 The install of python was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\python'

Chocolatey installed 11/11 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Installed:
 - kb3033929 v1.0.5
 - python3 v3.10.2
 - chocolatey-windowsupdate.extension v1.0.4
 - vcredist140 v14.28.29913
 - kb2999226 v1.0.20181019
 - kb2919355 v1.0.20160915
 - chocolatey-core.extension v1.3.5.1
 - kb2919442 v1.0.20160915
 - vcredist2015 v14.0.24215.20170201
 - kb3035131 v1.0.3
 - python v3.10.2
Mugane commented 2 years ago

In case it helps anyone, this was a compatibility issue - Python version >3.8 does not work on Windows 7

tallpeak commented 1 year ago

(In case anyone else finds this useful) I got the same error; chocolatey was trying to install 3.11.0 when 3.11.1 is already installed. So I used choco pin -n=python to prevent future updates. Now choco upgrade all says ... python v3.11.0 is the latest version available based on your source(s). ...

=== chocolatey.log tail: 2023-01-13 14:21:06,806 1092 [ERROR] - Failures 2023-01-13 14:21:06,809 1092 [ERROR] - - python3 (exited 1638) - Error while running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1'. See log for details. 2023-01-13 14:21:06,812 1092 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2023-01-13 14:21:07,101 1092 [DEBUG] - Exiting with 1638

rg Error "C:\Users\tallp\AppData\Local\Temp\chocolatey\Python 3.11.0 (64-bit)_20230113141906.log"

171:[2FDC:1B5C][2023-01-13T14:19:07]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

python says: Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32

So I'm trying: C:\Program Files\smartmontools\bin>choco pin add -n=python Chocolatey v1.2.1 Trying to add a pin for python Successfully added a pin for python v3.11.0.

ref: https://superuser.com/questions/1011003/remove-chocolatey-registration-without-uninstalling-application