{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/346","repository_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/346/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/346/events","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/346","id":183287123,"number":346,"title":"(python3) upgrade to version 3.5.2 does not work","user":{"login":"CWempe","id":1270359,"avatar_url":"https://avatars.githubusercontent.com/u/1270359?v=3","gravatar_id":"","url":"https://api.github.com/users/CWempe","html_url":"https://github.com/CWempe","followers_url":"https://api.github.com/users/CWempe/followers","following_url":"https://api.github.com/users/CWempe/following{/other_user}","gists_url":"https://api.github.com/users/CWempe/gists{/gist_id}","starred_url":"https://api.github.com/users/CWempe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWempe/subscriptions","organizations_url":"https://api.github.com/users/CWempe/orgs","repos_url":"https://api.github.com/users/CWempe/repos","events_url":"https://api.github.com/users/CWempe/events{/privacy}","received_events_url":"https://api.github.com/users/CWempe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-10-16T19:49:52Z","updated_at":"2016-10-29T08:53:44Z","closed_at":"2016-10-29T08:53:44Z","body":"\r\nHere is the debug-log:\r\n\r\n```\r\nPS C:\\Users\\USERNAME> choco upgrade python3 -debug -y\r\nChocolatey v0.10.3\r\nChocolatey is running on Windows v 10.0.14393.0\r\nCommand line: \"C:\\ProgramData\\chocolatey\\choco.exe\" upgrade python3 -debug -y\r\nReceived arguments: upgrade python3 -debug -y\r\nThe source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type\r\n \r\nNOTE: Hiding sensitive configuration data! Please double and triple\r\n check to be sure no sensitive data is shown, especially if copying\r\n output to a gist for review.\r\nConfiguration: CommandName='upgrade'|\r\nCacheLocation='C:\\Users\\USERNAME\\AppData\\Local\\Temp\\chocolatey'|\r\nContainsLegacyPackageInstalls='True'|\r\nCommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|\r\nSources='https://chocolatey.org/api/v2/'|SourceType='normal'|\r\nDebug='True'|Verbose='False'|Force='False'|Noop='False'|\r\nHelpRequested='False'|RegularOutput='True'|QuietOutput='False'|\r\nPromptForConfirmation='False'|AcceptLicense='True'|\r\nAllowUnofficialBuild='False'|Input='python3'|AllVersions='False'|\r\nSkipPackageInstallProvider='False'|PackageNames='python3'|\r\nPrerelease='False'|ForceX86='False'|OverrideArguments='False'|\r\nNotSilent='False'|ApplyPackageParametersToDependencies='False'|\r\nApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|\r\nAllowMultipleVersions='False'|AllowDowngrade='False'|\r\nForceDependencies='False'|Information.PlatformType='Windows'|\r\nInformation.PlatformVersion='10.0.14393.0'|\r\nInformation.PlatformName='Windows'|\r\nInformation.ChocolateyVersion='0.10.3.0'|\r\nInformation.ChocolateyProductVersion='0.10.3'|\r\nInformation.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|\r\n \r\nInformation.Is64Bit='True'|Information.IsInteractive='True'|\r\nInformation.IsUserAdministrator='True'|\r\nInformation.IsProcessElevated='True'|\r\nInformation.IsLicensedVersion='False'|Information.LicenseType='Foss'|\r\nFeatures.AutoUninstaller='True'|Features.ChecksumFiles='True'|\r\nFeatures.AllowEmptyChecksums='False'|\r\nFeatures.AllowEmptyChecksumsSecure='True'|\r\nFeatures.FailOnAutoUninstaller='False'|\r\nFeatures.FailOnStandardError='False'|Features.UsePowerShellHost='True'|\r\nFeatures.LogEnvironmentValues='False'|Features.VirusCheck='False'|\r\nFeatures.FailOnInvalidOrMissingLicense='False'|\r\nFeatures.IgnoreInvalidOptionsSwitches='True'|\r\nFeatures.UsePackageExitCodes='True'|\r\nFeatures.UseFipsCompliantChecksums='False'|\r\nFeatures.ScriptsCheckLastExitCode='False'|\r\nListCommand.LocalOnly='False'|\r\nListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|\r\nListCommand.Exact='False'|ListCommand.ByIdOnly='False'|\r\nListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|\r\nListCommand.ApprovedOnly='False'|\r\nListCommand.DownloadCacheAvailable='False'|\r\nListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|\r\nUpgradeCommand.FailOnNotInstalled='False'|\r\nUpgradeCommand.NotifyOnlyAvailableUpgrades='False'|\r\nNewCommand.AutomaticPackage='False'|\r\nNewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|\r\nSourceCommand.Priority='0'|FeatureCommand.Command='unknown'|\r\nConfigCommand.Command='unknown'|PinCommand.Command='unknown'|\r\n_ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _\r\nUpgrading the following packages:\r\npython3\r\nBy upgrading you accept licenses for the packages.\r\n \r\nYou have python3 v3.5.1.20161002 installed. Version 3.5.2 is available based on your source(s).\r\nBacking up existing python3 prior to operation.\r\nCapturing package files in 'C:\\ProgramData\\chocolatey\\lib\\python3'\r\npython3 not upgraded. An error occurred during installation:\r\n Updating 'python3 3.5.1.20161002' to 'python3 3.5.2' failed. Unable to find a version of 'python' that is compatible with 'python3 3.5.2'.\r\npython3 package files upgrade completed. Performing other installation steps.\r\nThe upgrade of python3 was NOT successful.\r\npython3 not upgraded. An error occurred during installation:\r\n Updating 'python3 3.5.1.20161002' to 'python3 3.5.2' failed. Unable to find a version of 'python' that is compatible with 'python3 3.5.2'.\r\nAttempting rollback\r\n \r\nChocolatey upgraded 0/1 packages. 1 packages failed.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n \r\nFailures\r\n - python3 (exited 1) - python3 not upgraded. An error occurred during installation:\r\n Updating 'python3 3.5.1.20161002' to 'python3 3.5.2' failed. Unable to find a version of 'python' that is compatible with 'python3 3.5.2'.\r\nExiting with 1\r\n```"},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/comments/257080048","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/346#issuecomment-257080048","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/346","id":257080048,"user":{"login":"majkinetor","id":85767,"avatar_url":"https://avatars.githubusercontent.com/u/85767?v=3","gravatar_id":"","url":"https://api.github.com/users/majkinetor","html_url":"https://github.com/majkinetor","followers_url":"https://api.github.com/users/majkinetor/followers","following_url":"https://api.github.com/users/majkinetor/following{/other_user}","gists_url":"https://api.github.com/users/majkinetor/gists{/gist_id}","starred_url":"https://api.github.com/users/majkinetor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majkinetor/subscriptions","organizations_url":"https://api.github.com/users/majkinetor/orgs","repos_url":"https://api.github.com/users/majkinetor/repos","events_url":"https://api.github.com/users/majkinetor/events{/privacy}","received_events_url":"https://api.github.com/users/majkinetor/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T08:53:44Z","updated_at":"2016-10-29T08:53:44Z","body":"Now, with exact versioning desynchronisation of packages makes them unusable (for either side) which requires effort from maintainers to keep them in sync. Above code for example will probably one day get out of sync as `python3` package may fail even if `python` doesn't (this make happen due to network problems, auto checksum problems etc.)\r\n\r\nI was thinking about adding to AU atomic operations on virtual package and its packages:\r\n\r\nThis is the `python:update.ps1`\r\n```\r\n# . $PSScriptRoot\\..\\python3\\update.ps1   <- I DO THIS NOW\r\n\r\nfunction global:au_SearchReplace {\r\n   @{\r\n        \"$($Latest.PackageName).nuspec\" = @{\r\n            \"(\\<dependency .+? version=)`\"([^`\"]+)`\"\" = \"`$1`\"$($Latest.Version)`\"\"\r\n        }\r\n    }\r\n}\r\n\r\nupdate -ChecksumFor none -WithDependency    #  <- SHOULD I DO THIS?\r\n```\r\n\r\nSo in this ` WithDependency` scenario AU will look into nuspec deps for `python`, take the first one, try to run its updater and then update itself only when dependent package updated successfully. Then AU will push both packages or none if any of them failed. Push could still fail on any of them but this still significantlly reduces the probability of failure as it will happen in almost the same moment of time.\r\n\r\nThis feature would actually be used almost exclusively for virtual packages.\r\n\r\nNow, this is only idea and we should probably talk about it if desync starts to happen with above method that separatelly updates and pushes them."}}
{"actor":{"display_login":"majkinetor"}}