StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Updating ComfyUI fails after moving Stability Matrix portable folder

Open howkj1 opened this issue 9 months ago • 6 comments

Package

Stability Matrix 2.13.4 (in portable mode) ComfyUI master@721253c --> ComfyUI master@3bfe4e5

When did the issue occur?

Updating the Package

What GPU / hardware type are you using?

Nvidia 2080 Super

What happened?

Issue: After moving the Stability Matrix folder (with Stability Matrix set to portable mode) : Clicking the Update package button for ComfyUI in the "Packages" section errors out with "python not found".

Proposed Solution: Update the symlink(s) for "python" in ../SM/Data/Packages/ComfyUI/venv/bin/ to use a relative path.

Example: ln -sfn ../../../../Assets/Python310/bin/python3 python ln -sfn ./python ./python3 ln -sfn ./python ./python3.10

note: ./python3 and ./python3.10 are already relative links to ./python , so those shouldn't require updating.

Result: Open Stability Matrix and click "update" button for ComfyUI in Packages section successfully updates ComfyUI.

Console output

Could not update ComfyUI (System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/apps/SM/Data/Packages/ComfyUI/venv/bin/python3' with working directory '/apps/SM/Data/Packages/ComfyUI'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at StabilityMatrix.Core.Processes.ProcessRunner.StartTrackedProcess(Process process) at StabilityMatrix.Core.Processes.ProcessRunner.StartAnsiProcess(String fileName, String arguments, String workingDirectory, Action1 outputDataReceived, IReadOnlyDictionary2 environmentVariables) at StabilityMatrix.Core.Python.PyVenvRunner.RunDetached(ProcessArgs args, Action1 outputDataReceived, Action1 onExit, Boolean unbuffered) at StabilityMatrix.Core.Python.PyVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.Packages.ComfyUI.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) 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))

Version

v2.13.4

What Operating System are you using?

Linux

howkj1 avatar Apr 05 '25 18:04 howkj1

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

github-actions[bot] avatar Jun 05 '25 02:06 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

commenting to remove stale label.

howkj1 avatar Jun 05 '25 04:06 howkj1

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

github-actions[bot] avatar Aug 05 '25 02:08 github-actions[bot]

proposed solution is in the initial comment. commenting to remove stale label.

howkj1 avatar Aug 08 '25 21:08 howkj1

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

github-actions[bot] avatar Oct 08 '25 02:10 github-actions[bot]

proposed solution is in the initial comment.

howkj1 avatar Oct 08 '25 21:10 howkj1