Skip to content

Error while trying to install interface while first use: InvalidOperationException: Sequence contains no matching element #545

@Maveyyl

Description

@Maveyyl

Hello,

I'm on Windows 11

I tried to install with the windows installer. It shows me a screen to install an interface. Any item I click ends up with the error:

InvalidOperationException: Sequence contains no matching element

at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at StabilityMatrix.Avalonia.ViewModels.Dialogs.RecommendedModelsViewModel.<>c.b__20_0(CivitModel model)
at System.Linq.Enumerable.SelectListIterator2.MoveNext() at DynamicData.Cache.Internal.CacheUpdater2.AddOrUpdate(IEnumerable`1 items) in /_/src/DynamicData/Cache/Internal/CacheUpdater.cs:line 58

It closes and I don't have time to copy more of the stack trace.

I've looked in the logs, and first there were an error that said \Assets\Python310\get-pip.pyc was missing. I retrieved it from the sources and put the file where it should be. Then I get a different error in the logs:

2024-03-27 02:07:32.7955|DEBUG|StabilityMatrix.Core.Processes.ProcessRunner|Starting process 'C:\Users\me\AppData\Roaming\StabilityMatrix\Assets\Python310\python.exe' with arguments '-m pip install virtualenv'
2024-03-27 02:07:32.7955|DEBUG|StabilityMatrix.Core.Helper.ProcessTracker|Adding process '"python"' [10356] to job object
2024-03-27 02:07:32.8412|ERROR|StabilityMatrix.Avalonia.Extensions.NotificationServiceExtensions|Error Installing Package|StabilityMatrix.Core.Exceptions.ProcessException: Process python exited with code 1. {StdOut = , StdErr = C:\Users\me\AppData\Roaming\StabilityMatrix\Assets\Python310\python.exe: No module named pip
}
at StabilityMatrix.Core.Processes.ProcessResult.EnsureSuccessExitCode()
at StabilityMatrix.Core.Python.PyRunner.InstallPackage(String package)
at StabilityMatrix.Avalonia.Helpers.WindowsPrerequisiteHelper.InstallVirtualenvIfNecessary(IProgress1 progress) at StabilityMatrix.Avalonia.Helpers.WindowsPrerequisiteHelper.InstallPackageRequirements(List1 prerequisites, IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.SetupPrerequisitesStep.ExecuteAsync(IProgress1 progress)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions