Skip to content

ComfyUI won't update or launch #1619

@Postbenji

Description

@Postbenji

Package

ComfyUI

When did the issue occur?

Updating the Package

What GPU / hardware type are you using?

Nvidia GeForce GTX 1660ti

What happened?

Update to ComfyUI failed (package modification failed). When attempting to inspect python packages through the menu drop-down for ComfyUI a ProcessException occurs, before StabilityMatrix crashes.

app.2026-04-25 15_26_02.log

Console output

Your branch is up to date with 'origin/master'.
Already on 'master'
Could not update ComfyUI (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 2: 'error: Failed to inspect Python interpreter from provided path at venv\Scripts\python.exe\n Caused by: Querying Python at N:\Documents\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\Scripts\python.exe failed with exit status exit code: 1\n\n[stdout]\n[sitecustomize error]: module 'main' has no attribute 'file'\r\n[sitecustomize error]: module 'main' has no attribute 'file'\r\n[sitecustomize error]: module 'main' has no attribute 'file'\n\n[stderr]\nAttributeError: module 'main' has no attribute 'file'. Did you mean: 'name'?\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.Packages.BaseGitPackage.SetupVenvPure(String installedPackagePath, String venvName, Boolean forceRecreate, Action1 onConsoleOutput, Nullable1 pythonVersion) at StabilityMatrix.Core.Models.Packages.ComfyUI.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.Packages.BaseGitPackage.Update(String installLocation, InstalledPackage installedPackage, UpdatePackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.PackageModification.UpdatePackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))

Exception

```ProcessException: pip list failed with code 2: , error: Failed to inspect Python interpreter from provided path at venv\Scripts\python.exe
Caused by: Querying Python at `N:\Documents\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\Scripts\python.exe` failed with exit status exit code: 1

[stdout]
[sitecustomize error]: module 'main' has no attribute 'file'
[sitecustomize error]: module 'main' has no attribute 'file'
[sitecustomize error]: module 'main' has no attribute 'file'

[stderr]
AttributeError: module 'main' has no attribute 'file'. Did you mean: 'name'?

### Sentry ID
[`b2714c24`](https://stability-matrix.sentry.io/issues/?query=id%3Ab2714c248d3b45f29d1df15693927e7f&referrer=sm-app-ex&statsPeriod=90d)
### Stack Trace
```   at StabilityMatrix.Core.Python.UvVenvRunner.PipList()
   at StabilityMatrix.Avalonia.ViewModels.Dialogs.PythonPackagesViewModel.Refresh()
   at StabilityMatrix.Avalonia.ViewModels.Dialogs.PythonPackagesViewModel.Refresh()
   at StabilityMatrix.Avalonia.ViewModels.Dialogs.PythonPackagesViewModel.OnLoadedAsync()
   at AsyncAwaitBestPractices.SafeFireAndForgetExtensions.HandleSafeFireAndForget[TException](Task task, Boolean continueOnCapturedContext, Action`1 onException)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore()
   at Avalonia.Threading.DispatcherOperation.Execute()
   at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job)
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback)
   at Avalonia.Threading.Dispatcher.Signaled()
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[] args)
   at StabilityMatrix.Avalonia.Program.Main(String[] args)```


### Version

2.15.7

### What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions