marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.9k stars 443 forks source link

[BUG] WingetUI doesn't show any installed Packages anymore! #1720

Closed saimench closed 9 months ago

saimench commented 9 months ago

Please confirm these before moving forward

Describe your issue

Suddenly, WingetUI doesn't show any installed Packages anymore. The Winget Command in Powershell winget list shows all my installed Packages correctly.

Steps to reproduce the issue

Open or search on the "installed Packages" tab: 2024-01-19 12_21_41-WingetUI

WingetUI Log

🟒 Using cached lang file
🟑 Using bundled lang file (forced=True)
πŸ”΅ It took 0.06700253486633301 to load all language files
🟒 checkQueue Thread started!
πŸ”΅ Found default chocolatey installation on expected location
πŸ”΅ Language file up-to-date
---------------------------------------------------------------------------------------------------

   WingetUI version 2.2.0 (version number 2.2) log
   All modules loaded successfully and sys.stdout patched correctly, starting main script
   Translator function language set to "de"

---------------------------------------------------------------------------------------------------

 Log legend:
 πŸ”΅: Verbose
 🟒: Information
 🟑: Warning
 🟠: Handled unexpected exception
 πŸ”΄: Unhandled unexpected exception

πŸ”΅ Starting main application...
πŸ”΅ Looking for alive instances...
🟑 Found lock file(s), reactivating...
πŸ”΅ Starting API with random session authentication token 0f0685ca8a3b472909f0d4f25f0e501cb8c444ef545122707d0642b17eaab502
πŸ”΅ Reloading Winget sources...
πŸ”΅ Loading WingetUI AUMID...
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
🟒 Downloaded latest metadata to local file from url https://raw.githubusercontent.com/marticliment/WingetUI/main/WebBasedData/screenshot-database-v2.json
πŸ”΅ Loaded metadata from local file
πŸ”΅ Reactivation signal ignored: RaiseWindow_[1705614976.4266784]
πŸ”΅ Starting Winget source search...
🟒 Winget source search finished with 0 sources
🟒 Found valid aumid {6D80...
{'sudoFound': True, 'sudoVersion': 'gsudo v2.0.4 (Branch.tags-v2.0.4.Sha.506efa024af0cef6e4b0cfec42e0c8c5d0b1472c)\r', 'ScoopFound': False, 'ScoopVersion': 'Scoop ist deaktiviert', 'PipFound': False, 'PipVersion': 'Pip ist deaktiviert', 'NpmFound': False, 'NpmVersion': 'Npm ist deaktiviert', '.NET ToolFound': False, '.NET ToolVersion': '.NET Tool ist deaktiviert', 'PowerShellFound': False, 'PowerShellVersion': '', 'WingetFound': True, 'WingetVersion': 'v1.6.3482  ', 'ChocolateyFound': True, 'ChocolateyVersion': '2.2.2  '}
πŸ”΅ Reached main ui load milestone
🟒 Discover tab loaded successfully
🟒 Total packages: 0
🟒 Update tab loaded successfully
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
🟒 Searching for string ""
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
🟒 Uninstall tab loaded successfully
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Reloading Scoop sources...
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Winget source search...
πŸ”΅ Starting Scoop source search...
πŸ”΅ Starting Chocolatey source search...
🟒 PowerShell search for installed packages finished with 0 result(s)
πŸ”΅ Starting PowerShell source search...
🟒 Settings tab loaded!
🟒 About tab loaded!
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Winget source search finished with 0 sources
Win32Mica Error: win32 version 19045 is not supported
πŸ”΅ Starting PowerShell source search...
🟒 Scoop source search finished with 0 sources
πŸ”΅ Starting Winget search for updates
πŸ”΅ Starting Chocolatey search for updates
Win32Mica Error: win32 version 19045 is not supported
🟒 Main application loaded...
🟒 Total packages: 0
🟒 Total packages: 0
🟒 Total packages: 0
Traceback (most recent call last):
  File ".\Interface\CustomWidgets\InstallerWidgets.py", line 669, in <lambda>
TypeError: 'NoneType' object is not callable
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey source search finished with 1 sources
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
🟒 Chocolatey search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell source search finished with 1 sources
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting PowerShell search for updates
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ('utf-8' codec can't decode byte 0x81 in position 114: invalid start byte)
🟒 Searching for string ""
🟒 Searching for string ""
🟑 Can't get custom interval time! (got value was '')
🟒 Total packages: 0
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
πŸ”΅ Starting update check
πŸ”΅ Version URL: https://www.marticliment.com/versions/wingetui.ver
🟒 Updates not found
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
🟒 Searching for string ""
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Starting Chocolatey search for updates
πŸ”΅ Starting Winget search for updates
πŸ”΅ Starting PowerShell source search...
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting PowerShell search for updates
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ('utf-8' codec can't decode byte 0x81 in position 114: invalid start byte)
🟒 Searching for string ""
🟒 Searching for string ""
🟑 Can't get custom interval time! (got value was '')
🟒 Total packages: 0
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
πŸ”΅ Reloading sources...
πŸ”΅ Reloading Winget sources...
🟒 Searching for string ""
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Reloading Scoop sources...
πŸ”΅ Starting Chocolatey search for updates
πŸ”΅ Starting PowerShell source search...
πŸ”΅ Starting Winget search for updates
🟒 Winget search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for updates finished with 0 result(s)
🟒 Searching for string ""
🟒 PowerShell source search finished with 1 sources
πŸ”΅ Starting PowerShell search for updates
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄    File ".\PackageEngine\Managers\powershell.py", line 138, in getAvailableUpdates

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 114: invalid start byte

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ('utf-8' codec can't decode byte 0x81 in position 114: invalid start byte)
🟒 Searching for string ""
🟒 Searching for string ""
🟑 Can't get custom interval time! (got value was '')
🟒 Total packages: 0
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
πŸ”΅ Announcement URL: https://www.marticliment.com/resources/wingetui.announcement
πŸ”΅ Image URL: https://www.marticliment.com/resources/translate.png
🟠 Unable to retrieve announcement image
πŸ”΄  Traceback (most recent call last):

πŸ”΄  Traceback (most recent call last):

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄    File ".\Interface\CustomWidgets\SpecificWidgets.py", line 403, in loadAnnouncements

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\simon\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\simon\\AppData/Local/WingetUI/CachedIcons\\announcement.png'

πŸ”΄ Note this traceback was caught by reporter and has been added to the log ([Errno 2] No such file or directory: 'C:\\Users\\simon\\AppData/Local/WingetUI/CachedIcons\\announcement.png')
https://www.marticliment.com/wingetui/help?isWingetUIIframe
https://www.marticliment.com/wingetui/help?isWingetUIIframe
https://www.marticliment.com/wingetui/help?isWingetUIIframe
🟒 Found reactivation lock file...
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
πŸ”΅ Starting Winget search for installed packages
πŸ”΅ Starting Chocolatey search for installed packages
πŸ”΅ Starting PowerShell search for installed packages
🟒 Searching for string ""
🟒 Winget search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Winget search for installed packages
🟒 Winget search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟠 Chocolatey got too few installed packages, retrying
πŸ”΅ Starting Chocolatey search for installed packages
🟒 PowerShell search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Chocolatey search for installed packages finished with 0 result(s)
🟒 Searching for string ""
🟒 Searching for string ""
🟒 Total packages: 0
πŸ”΅ Loading WingetUI log...
πŸ”΅ Copying log to the clipboard...
πŸ”΅ Loading WingetUI log...

Package Managers Logs

Outputs from package managers on the current session:
 ---------Chocolatey
Chocolatey v2.2.2

---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.

---------
---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Chocolatey
Chocolatey v2.2.2
0 packages installed.
---------Chocolatey
Chocolatey v2.2.2
Outdated Packages
Output is package name | current version | available version | pinned?Chocolatey has determined 0 package(s) are outdated.

---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Chocolatey
Chocolatey v2.2.2
Outdated Packages
Output is package name | current version | available version | pinned?Chocolatey has determined 0 package(s) are outdated.
---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Chocolatey
Chocolatey v2.2.2
Outdated Packages
Output is package name | current version | available version | pinned?Chocolatey has determined 0 package(s) are outdated.
---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt

---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Chocolatey
Chocolatey v2.2.2
0 packages installed.------------------Chocolatey
Chocolatey v2.2.2
0 packages installed.---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt

---------Chocolatey
Chocolatey v2.2.2
0 packages installed.---------
---------Chocolatey
Chocolatey v2.2.2
0 packages installed.
---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt

---------Winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000b : The configured source information is corrupt
---------Chocolatey
Chocolatey v2.2.2
0 packages installed.------------------Chocolatey
Chocolatey v2.2.2
0 packages installed.

Relevant information

No response

Screenshots and videos

No response

Korben85 commented 9 months ago

Hi I have the same issue and can see that in the Winget/Chocolatey settings there are no sources anymore. I tried resetting the winget sources but getting the same error as described above in the package manager logs. The system cannot find the path specified. '.\winget.exe' is not recognized as an internal or external command, operable program or batch file.

marticliment commented 9 months ago

Hello,

Please try deleting this file: C:\Users\%USERNAME%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata

Korben85 commented 9 months ago

Tried deleting the file but it didn't resolve the issue.

saimench commented 9 months ago

Hello MartΓ­,

thank you very much. Your advice fixed the issue !

Best Regards

Simon

Von: MartΓ­ Climent @. Gesendet: Freitag, 19. Januar 2024 17:24 An: marticliment/WingetUI @.> Cc: Simon Anderegg @.>; Author @.> Betreff: Re: [marticliment/WingetUI] [BUG] WingetUI doesn't show any installed Packages anymore! (Issue #1720)

Hello,

Please try deleting this file: C:\Users%USERNAME%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata

β€” Reply to this email directly, view it on GitHub https://github.com/marticliment/WingetUI/issues/1720#issuecomment-1900716722 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABME62OWVE42RUDILLZ6X6LYPKM2VAVCNFSM6AAAAABCBZKC76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG4YTMNZSGI . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ABME62ORI53VVTM5CMMGCCDYPKM2VA5CNFSM6AAAAABCBZKC76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRJKRLE.gif Message ID: @. @.> >

saimench commented 9 months ago

Addendum: The correct path to delete is (without quotes): "%USERPROFILE%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata"

Korben85 commented 9 months ago

Hi, I'm sorry for reopening this, but the provided solution doesn't work for me. Here some information about my system. I have an account without admin privileges and it is my primary account. Then I have another account for administrative operations. The app was working fine and suddenly doesn't show any installed packages. I tried:

  1. reinstalling the app
  2. deleting the "%USERPROFILE%\AppData\Local\Microsoft\WinGet\Settings\defaultState\sources_metadata" file
  3. resetting the winget settings in WingetUI -> just getting an error "The system cannot find the path specified. '.\winget.exe' is not recognized as an internal or external command"
  4. When I copy the path from the packet manager settings I see winget.exe there.

What else can I try to solve the issue?

addition: When I start WingetUI as admin it does find the packages.

marticliment commented 9 months ago

on step 2, have you deleted the file for every user on your machine?

Korben85 commented 9 months ago

Yes, I deleted it for every user. I now had a look here and tried this as well. I also uninstalled wingetui and deleted every winget folder I could find in every user profile. Restarted the machine, installed wingetui and it is now working again.