StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Cannot install kohya_ss via StabilityMatrix: No module named 'pkg_resources'

Open vldevel opened this issue 7 months ago • 2 comments

Package

kohya_ss

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

RTX 5070Ti , CUDA 12.8 (NVIDIA driver v475.64.05), but this is irrelevant to this installation issue

What happened?

I'm trying to install kohya_ss via StabilityMatrix under Linux. Whatever the Python version I choose (*), I'm getting an error reporting: No module named 'pkg_resources'

(*) I tried v3.10.11 which is what StabilityMatrix is using itself, v3.10.19 and v3.11.14; v3.12 and newer do not seem supported by kohya_ss anyway, see https://github.com/bmaltais/kohya_ss/commit/b48c86cbff06b9b38eba9ba4830c0ae94186e35e

Console output

Unpacking resources Unpacking resources Download Complete Using Python 3.10.19 environment at: venv Resolved 7 packages in 131ms Downloading uv (23.8MiB) Downloading pygments (1.2MiB) Downloaded pygments Downloaded uv Prepared 7 packages in 338ms Installed 7 packages in 5ms

  • markdown-it-py==4.0.0
  • mdurl==0.1.2
  • packaging==26.1
  • pygments==2.20.0
  • rich==15.0.0
  • setuptools==82.0.1
  • uv==0.11.7 Traceback (most recent call last): File "/opt/StabilityMatrix/Data/Packages/kohya_ss/setup/setup_linux.py", line 3, in import setup_common File "/opt/StabilityMatrix/Data/Packages/kohya_ss/setup/setup_common.py", line 8, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources' Could not install kohya_ss (StabilityMatrix.Core.Exceptions.ProcessException: install script failed with code 1: 'Traceback (most recent call last):\n File "/opt/StabilityMatrix/Data/Packages/kohya_ss/setup/setup_linux.py", line 3, in \n import setup_common\n File "/opt/StabilityMatrix/Data/Packages/kohya_ss/setup/setup_common.py", line 8, in \n import pkg_resources\nModuleNotFoundError: No module named 'pkg_resources'\n' at StabilityMatrix.Core.Python.UvVenvRunner.CustomInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.Packages.KohyaSs.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.Packages.KohyaSs.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))

Version

v2.15.7

What Operating System are you using?

Linux

vldevel avatar Apr 16 '26 07:04 vldevel

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 16 '26 02:06 github-actions[bot]

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

github-actions[bot] avatar Jun 24 '26 02:06 github-actions[bot]