Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python.Python.2 Package v2.7.15150 is in a seemingly corrupt state #3485

Closed
the-simian opened this issue Jul 29, 2023 · 5 comments
Closed

Python.Python.2 Package v2.7.15150 is in a seemingly corrupt state #3485

the-simian opened this issue Jul 29, 2023 · 5 comments
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation. Side-by-Side Issue related to side by side package installation
Milestone

Comments

@the-simian
Copy link

the-simian commented Jul 29, 2023

Brief description of your issue

Attempt to upgrade Python 2.7.15150 and get "
No installed package found matching input criteria."

I am not sure if this is related to Winget-cli itself or Winget UI, but I suspect its in the underlying cli, so submitting here.

Steps to reproduce

As stated
image
And listed as installed:
image

if I use the command line and run `list I get:

C:\Users\<my username>\Desktop>winget list Python
Name                     Id                                     Version    Available Source
-------------------------------------------------------------------------------------------
Python 2.7.15 (64-bit)   Python.Python.2                        2.7.15150  2.7.18150 winget
Python 3.12.0b4 (64-bit) Python.Python.3.12                     3.12.0b4             winget
WingetUI                 SomePythonThings.WingetUIStore         2.0.2                winget
Python 2.7.18 (64-bit)   Python.Python.2                        2.7.18150            winget
Python Launcher          {C6192300-FDE6-46C6-96A9-EB8C9370D520} 3.12.114.0

You can see that Winget (and winget ui) thinks that 2.7.15150 is there and can be updated, and also that the version it should update to is also there.

Expected behavior

I'd expect to be able to uninstall or update 2.7.15150 and 2.7.15150 would no longer appear in the 'needs-updating' list.

Actual behavior

Version 2.7.15150 is still in the list, no matter what. I cannot update or remove it. I've got the version it seems to think it should update to installed.

here is the related log operation entry in winget ui:

 Operation: update - Perform date 2023-07-29 15:39:22.374189
 Package: <Package: Python 2.7.15 (64-bit);Python.Python.2;2.7.15150;Winget: winget;<PackageManagers.winget.WingetPackageManager object at 0x00000275A4144810>;<genericCustomWidgets.TreeWidgetItemWithQAction object at 0x00000275A9FDBC80>>
 Command-line call: "C:\Users\<username>\AppData\Local\Programs\WingetUI\components\gsudo.exe C:\Users\the-simian\AppData\Local\Programs\WingetUI\PackageManagers\winget-cli_x64\winget.exe upgrade --id Python.Python.2 --exact --include-unknown --accept-source-agreements --disable-interactivity" Output code: -1978335212
 Console output:
   | - 
   |                                                                                                                         
   | 
   |   █▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  1024 KB / 15.7 MB
   |   ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  2.00 MB / 15.7 MB
   |   █████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  3.00 MB / 15.7 MB
   |   ███████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  4.00 MB / 15.7 MB
   |   █████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  5.00 MB / 15.7 MB
   |   ███████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  6.00 MB / 15.7 MB
   |   █████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  7.00 MB / 15.7 MB
   |   ███████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  8.00 MB / 15.7 MB
   |   █████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒  9.00 MB / 15.7 MB
   |   ███████████████████▒▒▒▒▒▒▒▒▒▒▒  10.0 MB / 15.7 MB
   |   ████████████████████▒▒▒▒▒▒▒▒▒▒  11.0 MB / 15.7 MB
   |   ██████████████████████▒▒▒▒▒▒▒▒  12.0 MB / 15.7 MB
   |   ████████████████████████▒▒▒▒▒▒  13.0 MB / 15.7 MB
   |   ██████████████████████████▒▒▒▒  14.0 MB / 15.7 MB
   |   ████████████████████████████▒▒  15.0 MB / 15.7 MB
   |   ██████████████████████████████  15.7 MB / 15.7 MB
   |                                                                                                                         
   | 
   |    - 
   |    \ 
   |                                                                                                                         
   | No installed package found matching input criteria.
   | 

Here is the log itself:


🔴   File ".\genericCustomWidgets.py", line 337, in removeItem

🔴 ValueError: list.remove(x): x not in list

🔴 ValueError: list.remove(x): x not in list

🔴 Note this traceback was caught by reporter and has been added to the log (list.remove(x): x not in list)
[]
🟢 Waiting for install permission... title=Python 2.7.15 (64-bit), id=Python.Python.2, installId=1690663162.1616096
🔵 Given package: <Package: Python 2.7.15 (64-bit);Python.Python.2;2.7.15150;Winget: winget;<PackageManagers.winget.WingetPackageManager object at 0x00000275A4144810>;<genericCustomWidgets.TreeWidgetItemWithQAction object at 0x00000275A9FDBC80>>
🔵 Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=True;Version=;Architecture=;InstallationScope=;CustomParameters=[];RemoveDataOnUninstall=False>
[<storeEngine.PackageUpdaterWidget(0x275b06ff7a0, name="package") at 0x00000275AF94CB80>]
🔵 Found icon:  
🟡 Icon url empty
🟡 Icon python-2 not found in json
🟡 Icon for Python.Python.2 does not exist
🔵 Current program set to 1690663162.1616096
🟢 Have permission to install, starting installation threads...
🔵 Starting <Package: Python 2.7.15 (64-bit);Python.Python.2;2.7.15150;Winget: winget;<PackageManagers.winget.WingetPackageManager object at 0x00000275A4144810>;<genericCustomWidgets.TreeWidgetItemWithQAction object at 0x00000275A9FDBC80>> update with Command ['C:\\Users\\<username>\\AppData\\Local\\Programs\\WingetUI\\components\\gsudo.exe', 'C:\\Users\\<username>\\AppData\\Local\\Programs\\WingetUI\\PackageManagers\\winget-cli_x64\\winget.exe', 'upgrade', '--id', 'Python.Python.2', '--exact', '--include-unknown', '--accept-source-agreements', '--disable-interactivity']
OverflowError
['- \r                                                                                                                        \r\r  █▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  1024 KB / 15.7 MB\r  ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  2.00 MB / 15.7 MB\r  █████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  3.00 MB / 15.7 MB\r  ███████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  4.00 MB / 15.7 MB\r  █████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  5.00 MB / 15.7 MB\r  ███████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  6.00 MB / 15.7 MB\r  █████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  7.00 MB / 15.7 MB\r  ███████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  8.00 MB / 15.7 MB\r  █████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒  9.00 MB / 15.7 MB\r  ███████████████████▒▒▒▒▒▒▒▒▒▒▒  10.0 MB / 15.7 MB\r  ████████████████████▒▒▒▒▒▒▒▒▒▒  11.0 MB / 15.7 MB\r  ██████████████████████▒▒▒▒▒▒▒▒  12.0 MB / 15.7 MB\r  ████████████████████████▒▒▒▒▒▒  13.0 MB / 15.7 MB\r  ██████████████████████████▒▒▒▒  14.0 MB / 15.7 MB\r  ████████████████████████████▒▒  15.0 MB / 15.7 MB\r  ██████████████████████████████  15.7 MB / 15.7 MB\r                                                                                                                        \r\r   - \r   \\ \r                                                                                                                        \rNo installed package found matching input criteria.', '']

Environment

C:\Users\<username>\Desktop>winget --info
Windows Package Manager v1.5.1881
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1881.0

Winget Directories
----------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutpu…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jul 29, 2023
@stephengillie stephengillie added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Matching Issue related to correlation between installed package and manifest and removed Needs-Triage Issue need to be triaged labels Jul 31, 2023
@stephengillie
Copy link

It seems like the upgrade might have installed version 2.8.18150 alongside the previous version, instead of upgrading it.

@the-simian
Copy link
Author

@stephengillie do you have any advice for a way I can forcibly remove/fix this. I've tried all the usual approaches with the force flags. What's the general approach with a corrupt package to fully remove manually?

@mdanish-kh
Copy link
Contributor

@the-simian Unfortunately, you'll have to manually remove the older version from appwiz.cpl or Apps&Features. WinGet has work to do to improve handling of these "side-by-side" installations and that work is being tracked in

@microsoft-github-policy-service microsoft-github-policy-service bot added the Side-by-Side Issue related to side by side package installation label Aug 2, 2023
@the-simian
Copy link
Author

the-simian commented Oct 8, 2023

For anyone that sees this and has a similar problem:

  1. use Win+R to open the run command.
  2. run ms-settings:appsfeatures, which loads Apps > Installed apps.
  3. From here I was able to remove the stuck package by filtering, clicking the ... icon and selecting uninstall..

@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

WinGet 1.8 now has better support for side-by-side installed package versions. You can target a specific version of a package for uninstall.

@denelon denelon closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation. Side-by-Side Issue related to side by side package installation
Projects
None yet
Development

No branches or pull requests

4 participants