StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Missing ICU package in AppImage

Open kelvinhammond opened this issue 10 months ago • 0 comments

On nixos when I run appimage-run ./StabilityMatrix.AppImage I get the following error. I've tried installing the icu packages (all of them) and none of them seem to provide what is needed. Which package ICU package is required for the app image on Linux?

Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode+Settings..cctor()
   at System.MemoryExtensions.ToLowerInvariant(System.ReadOnlySpan`1<Char>, System.Span`1<Char>)
   at System.UriHelper+<>c.<SpanToLowerInvariantString>b__0_0(System.Span`1<Char>, IntPtr)
   at System.String.Create[[System.IntPtr, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Int32, IntPtr, System.Buffers.SpanAction`2<Char,IntPtr>)
   at System.UriHelper.SpanToLowerInvariantString(System.ReadOnlySpan`1<Char>)
   at System.Uri.CheckSchemeSyntax(System.ReadOnlySpan`1<Char>, System.ParsingError ByRef)
   at System.Uri.ParseSchemeCheckImplicitFile(System.String, System.ParsingError ByRef, Flags ByRef, System.UriParser ByRef)
   at System.Uri.ParseScheme(System.String, Flags ByRef, System.UriParser ByRef)
   at System.Uri.CreateThis(System.String, Boolean, System.UriKind, System.UriCreationOptions ByRef)
   at System.Uri..ctor(System.String)
   at StabilityMatrix.Avalonia.Program..cctor()
   at StabilityMatrix.Avalonia.Program.Main(System.String[])

I can get it to run via DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false appimage-run ./StabilityMatrix.AppImage with the latest version (v2.9.2) though.

However I get this error after closing the model selection on first run, I selected to install Stable Diffusion Web UI and it failed.

Unpacking resources
Unpacking resources
Download complete!
Error: System.TypeInitializationException: The type initializer for 'Delegates' threw an exception.
 ---> System.DllNotFoundException: Could not load /tmp/stability-matrix/Assets/Python310/lib/libpython3.10.so with flags RTLD_NOW | RTLD_GLOBAL: libcrypt.so.1: cannot open shared object file: No such file or directory
   at Python.Runtime.Platform.PosixLoader.Load(String dllToLoad)
   at Python.Runtime.Runtime.Delegates..cctor()
   --- End of inner exception stack trace ---
   at Python.Runtime.PythonEngine.<>c.<set_PythonHome>b__27_0()
   at Python.Runtime.Runtime.<>c__DisplayClass106_0.<TryUsingDll>b__0()
   at Python.Runtime.Runtime.TryUsingDll[T](Func`1 op)
   at Python.Runtime.Runtime.TryUsingDll(Action op)
   at Python.Runtime.PythonEngine.set_PythonHome(String value)
   at StabilityMatrix.Core.Python.PyRunner.Initialize()
   at StabilityMatrix.Avalonia.Helpers.UnixPrerequisiteHelper.InstallPythonIfNecessary(IProgress`1 progress)
   at StabilityMatrix.Avalonia.Helpers.UnixPrerequisiteHelper.InstallPackageRequirements(List`1 prerequisites, IProgress`1 progress)
   at StabilityMatrix.Core.Models.PackageModification.SetupPrerequisitesStep.ExecuteAsync(IProgress`1 progress)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps)

kelvinhammond avatar Apr 02 '24 04:04 kelvinhammond