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
13k stars 446 forks source link

[BUG] No package manager is found #2728

Closed rmueller83 closed 1 month ago

rmueller83 commented 1 month ago

Please confirm these before moving forward

UniGetUI Version

3.1.2-beta1

Windows version, edition, and architecture

Windows 11 Pro 23H2 (Build 22631.4169) x64

Describe your issue

I cannot see any updated packages since the last auto update of UniGetUI. In the log I can see errors for winget and pip which previously worked:

[11.09.2024 17:12:53] Begin "which" search for command winget.exe
[11.09.2024 17:12:53] Could not initialize Package Manager Winget
[11.09.2024 17:12:53] System.ComponentModel.Win32Exception (87): An error occurred trying to start process 'C:\WINDOWS\system32\where.exe' with working directory 'C:\Program Files\WingetUI'. Falscher Parameter.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.Core.Tools.CoreTools.Which(String command) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Tools\Tools.cs:line 97
                         at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 194
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.InitializeAsync() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 88

[11.09.2024 17:12:53] Begin "which" search for command python.exe
[11.09.2024 17:12:53] Could not initialize Package Manager Pip
[11.09.2024 17:12:53] System.ComponentModel.Win32Exception (87): An error occurred trying to start process 'C:\WINDOWS\system32\where.exe' with working directory 'C:\Program Files\WingetUI'. Falscher Parameter.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.Core.Tools.CoreTools.Which(String command) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Tools\Tools.cs:line 97
                         at UniGetUI.PackageEngine.Managers.PipManager.Pip.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.Pip\Pip.cs:line 265
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.InitializeAsync() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 88

It is the German version of Win11. In a command prompt, the which command works:

C:\Users\myuser>cd C:\Program Files\WingetUI

C:\Program Files\WingetUI>C:\WINDOWS\system32\where.exe winget.exe
C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\winget.exe

Steps to reproduce the issue

No response

UniGetUI Log

[11.09.2024 17:12:52]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.2-beta1
[11.09.2024 17:12:52]
[11.09.2024 17:12:52] Version Code:  3,1191
[11.09.2024 17:12:52] Encoding Code Page set to 850
[11.09.2024 17:12:52] Using bundled GSudo at C:\Program Files\WingetUI\Assets\Utilities\gsudo.exe
[11.09.2024 17:12:53] Loaded language locale: de
[11.09.2024 17:12:53] Starting update check
[11.09.2024 17:12:53] Randomly-generated background API auth token for the current session: xyz
[11.09.2024 17:12:53] Api running on http://localhost:7058
[11.09.2024 17:12:53] Begin "which" search for command winget.exe
[11.09.2024 17:12:53] Could not initialize Package Manager Winget
[11.09.2024 17:12:53] System.ComponentModel.Win32Exception (87): An error occurred trying to start process 'C:\WINDOWS\system32\where.exe' with working directory 'C:\Program Files\WingetUI'. Falscher Parameter.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.Core.Tools.CoreTools.Which(String command) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Tools\Tools.cs:line 97
                         at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 194
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.InitializeAsync() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 88
[11.09.2024 17:12:53] Begin "which" search for command python.exe
[11.09.2024 17:12:53] Could not initialize Package Manager Pip
[11.09.2024 17:12:53] System.ComponentModel.Win32Exception (87): An error occurred trying to start process 'C:\WINDOWS\system32\where.exe' with working directory 'C:\Program Files\WingetUI'. Falscher Parameter.
                         at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
                         at UniGetUI.Core.Tools.CoreTools.Which(String command) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Tools\Tools.cs:line 97
                         at UniGetUI.PackageEngine.Managers.PipManager.Pip.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.Pip\Pip.cs:line 265
                         at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.InitializeAsync() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 88

Package Managers Logs

n/a

Relevant information

No response

Screenshots and videos

No response

marticliment commented 1 month ago

what happens if you run where.exe winget.exe on a command-prompt window?

rmueller83 commented 1 month ago

I posted this already above, but here again from the default home path:

C:\Users\myuser>where.exe winget.exe
C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\winget.exe
marticliment commented 1 month ago

Oh sorry, I didn't see it. I will investigate