Skip to content

Updating ComfyUI fails after moving Stability Matrix portable folder #1205

Description

@howkj1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleStale issue or inactive for long period of time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions