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
11.94k stars 396 forks source link

[BUG] I can`t use the bundled winget.exe #1543

Closed Waboath closed 6 months ago

Waboath commented 10 months ago

Please confirm these before moving forward

Describe your issue

Hello,

if i start wingetui i see nothing under installed packages.

image

so i used the bundled winget.exe with powershell and i get also nothing.

image

I think something in a fresh installed windows 11 is blocking.

win ver: 22H2 Build. 22621.2428 normal user (non admin)

Steps to reproduce the issue

No response

WingetUI Log

šŸŸ¢ Using cached lang file
šŸŸ” Using bundled lang file (forced=True)
šŸ”µ It took 0.0 to load all language files
šŸŸ¢ checkQueue Thread started!
šŸŸ” Chocolatey was not found on the default location, perhaps a portable WingetUI installation?
šŸ”µ Language file up-to-date
šŸ”µ Starting main application...
šŸ”µ Looking for alive instances...
šŸŸ” Found lock file(s), reactivating...
šŸ”µ Reloading Winget sources...
šŸ”µ Loading WingetUI AUMID...
šŸ”µ Starting update check
 * Serving Flask app 'WingetUI backend'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://localhost:7058
Press CTRL+C to quit
šŸŸ¢ 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
šŸŸ¢ Found valid aumid {6D809377-6AF0-444B-8957-A3773F02200E}\WingetUI\wingetui.exe
šŸ”µ Version URL: https://www.marticliment.com/versions/wingetui.ver
šŸŸ¢ Updates not found
šŸ”µ Reactivation signal ignored: RaiseWindow_[1698846904.2268746]
{'sudoFound': True, 'sudoVersion': 'gsudo v2.0.4 (Branch.tags-v2.0.4.Sha.506efa024af0cef6e4b0cfec42e0c8c5d0b1472c)\r', 'ScoopFound': False, 'ScoopVersion': 'Scoop ist deaktiviert', 'ChocolateyFound': False, 'ChocolateyVersion': 'Chocolatey ist deaktiviert', 'PipFound': False, 'PipVersion': 'Pip ist deaktiviert', 'NpmFound': False, 'NpmVersion': 'Npm ist deaktiviert', '.NET ToolFound': False, '.NET ToolVersion': '.NET Tool ist deaktiviert', 'WingetFound': True, 'WingetVersion': ''}
šŸ”µ Reached main ui load milestone
šŸŸ¢ Discover tab loaded successfully
šŸŸ¢ Total packages: 0
šŸŸ¢ Update tab loaded successfully
šŸŸ¢ Searching for string ""
šŸ”µ Reloading sources...
šŸ”µ Reloading Winget sources...
šŸ”µ Reloading Scoop sources...
šŸŸ¢ Uninstall tab loaded successfully
šŸ”µ Starting Winget 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)
šŸŸ¢ Starting winget source search...
šŸŸ¢ Starting winget source search...
šŸŸ¢ Settings tab loaded!
šŸŸ¢ winget source search finished
šŸŸ¢ winget source search finished
šŸŸ¢ About tab loaded!
šŸ”µ Starting Winget search for updates
šŸŸ¢ Winget search for updates finished with 0 result(s)
šŸŸ¢ Main application loaded...
šŸ”µ Starting Winget 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
šŸŸ¢ Searching for string ""
šŸŸ¢ Searching for string ""
šŸŸ¢ Searching for string ""
šŸŸ” Can't get custom interval time! (got value was '')
šŸŸ¢ Total packages: 0
šŸŸ¢ Winget search for installed packages finished with 0 result(s)
šŸŸ¢ Searching for string ""
šŸŸ¢ Searching for string ""
šŸŸ¢ Total packages: 0
šŸ”µ Starting Winget 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 ""
šŸŸ¢ Searching for string ""
šŸŸ¢ Total packages: 0
šŸ”µ Loading WingetUI log...
šŸ”µ Starting update check
šŸ”µ Version URL: https://www.marticliment.com/versions/wingetui.ver
šŸŸ¢ Updates not found
šŸ”µ Loading WingetUI log...
šŸ”µ Copying log to the clipboard...
šŸ”µ Loading WingetUI log...

Package Managers Logs

Outputs from package managers on the current session:
 ---------Winget---------Winget

---------Winget

---------Winget---------Winget---------Winget
---------Winget

Relevant information

No response

Screenshots and videos

No response

marticliment commented 10 months ago

Hello,

Have you tried reinstalling WingetUI?

How did you install wingetui in first place?

Waboath commented 10 months ago

Hello,

yes i reinstalled wingetui three times. I installed it for all users. The funny thing is, after i installed it for the first it works after a reboot i won't work again.

marticliment commented 10 months ago

Do you have any antivirus that could be interfiering?

Waboath commented 10 months ago

I use only windows defender.

DrStrange commented 10 months ago

I have the same issue in Windows 10. Winget and Pip are set as the package managers. WingetUI shows installed packages for Pip but shows no packages for winget. WingetUI's winget shows no packages in PowerShell. Reset/reinstall/reset MS App Installer does not fix it. Packages showed ok for several days/reboots after installing, now there are no packages listed. The same thing happened on my other PC. Installed packages show ok when using system winget in experimental settings or when using WingetUI as an administrator. I only use Windows Defender.

There are no sources listed for winget in its settings. Where they should be shown, it says Loading... but when I try to add them they fail to add as WingetUI says they already exist:

installation failed

Stibax commented 9 months ago

I have the exact same issue, only difference i have from DrStrange, if i select from experimental option to use system winget, the problem still exist. Only if i run wingetUI with admin privileges it seems to work. I have windows 11.

Stibax commented 9 months ago

Hi, i have found the solution, it's not a problem of wingetui, i have uninstall dev-home from the app store and that cause the downgrade of winget, so the system messed-up. Now with use system winget it works. The same problem of ather still exist if don't use the sytem one.

redactedscribe commented 7 months ago

Just curious, is it possible to use the winget-cli executable already installed on the system rather than the bundled WingetUI one? It bothers me to have two possibly differing winget versions installed at the same time.

Edit: Found the answer (although experimental):

wingetui_2024-01-17_15-16-12

DrStrange commented 6 months ago

Just to report, I used the fix in #1721 and also deleted these folders:

C:\Users\<ADMIN-USER>\AppData\Local\Temp\WinGet\defaultState\ C:\Users\<NON-ADMIN-USER>\AppData\Local\Temp\WinGet\defaultState\

I now am able to view the list of installed packages using WingetUI's bundled winget instead of using the system winget. I also uninstalled WingetUI and rebooted then reinstalled it. I am using WingetUI 2.2.0 installed only in my standard user account in Windows 10 22H2. Hope this also works for you, @Waboath @Stibax