StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Unable to compare versions for pyyaml error

Open Karlanta opened this issue 3 months ago • 2 comments

Package

ComfyUI

When did the issue occur?

Running the Package

What GPU / hardware type are you using?

Nvidia rtx 4060 ti 16 gb

What happened?

Hi! After the last comfy update, there was a bug with pyyaml when launching the package (see log). "Consider reinstalling pyyaml" it says. ОК, I reinstalled using the -m pip install PyYAML command inside the Matrix shell (in the "embedded python" menu) and received a message that version 6 of PyYAML is installed. I tried to run the comfy package again but the error repeats again. what to do?

Console output

File "C:\StabilityMatrixSD\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\versions.py", line 117, in require_version_core return require_version(requirement, hint) File "C:\StabilityMatrixSD\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\versions.py", line 111, in require_version _compare_versions(op, got_ver, want_ver, requirement, pkg, hint) File "C:\StabilityMatrixSD\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\utils\versions.py", line 39, in _compare_versions raise ValueError( ValueError: Unable to compare versions for pyyaml>=5.1: need=5.1 found=None. This is unusual. Consider reinstalling pyyaml.

Version

2.15.0

What Operating System are you using?

Windows

Karlanta avatar Sep 26 '25 21:09 Karlanta

Im getting this too

Anothergazz avatar Sep 29 '25 18:09 Anothergazz

Have the exact same error since last update : "ValueError: Unable to compare versions for pyyaml>=5.1: need=5.1 found=None. This is unusual. Consider reinstalling pyyaml"

My Pyyaml is version 6, don't know what i can do, comfyui is not working . If i go to Python package and type "Pyyaml", Stability Matrix crash"

Exception

ArgumentException: An item with the same key has already been added. Key: Name

Sentry ID

e29216c3

Stack Trace

at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) at StabilityMatrix.Core.Python.PipShowResult.Parse(String output) at StabilityMatrix.Core.Python.UvVenvRunner.PipShow(String packageName) at StabilityMatrix.Avalonia.ViewModels.Dialogs.PythonPackagesItemViewModel.LoadExtraInfo(DirectoryPath venvPath, PyBaseInstall pyBaseInstall) at StabilityMatrix.Avalonia.ViewModels.Dialogs.PythonPackagesItemViewModel.LoadExtraInfo(DirectoryPath venvPath, PyBaseInstall pyBaseInstall) 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)

SheennScarlett avatar Sep 30 '25 18:09 SheennScarlett

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 Nov 30 '25 02:11 github-actions[bot]

This issue was closed because it has been stale for 7 days with no activity.

github-actions[bot] avatar Dec 08 '25 02:12 github-actions[bot]