Skip to content

Can't install Kohya_ss #1281

@yukuz0

Description

@yukuz0

Package

Kohya_ss

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

RTX 2060 Super 8GB

What happened?

Can't install Kohya_ss

Console output

line 74, in extra_ldflags
import dskernels
ModuleNotFoundError: No module named 'dskernels'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Could not install kohya_ss (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Obtaining file:///F:/StabilityMatrix/Packages/kohya_ss/sd-scripts (from -r requirements.txt (line 39))\r\n Preparing metadata (setup.py): started\r\n Preparing metadata (setup.py): finished with status 'done'\r\nCollecting tensorboard\r\n Using cached tensorboard-2.19.0-py3-none-any.whl.metadata (1.8 kB)\r\nCollecting tensorflow>=2.16.1\r\n Using cached tensorflow-2.19.0-cp310-cp310-win_amd64.whl.metadata (4.1 kB)\r\nCollecting onnxruntime-gpu==1.19.2\r\n Using cached onnxruntime_gpu-1.19.2-cp310-cp310-win_amd64.whl.metadata (4.7 kB)\r\nCollecting bitsandbytes\r\n Using cached bitsandbytes-0.45.5-py3-none-win_amd64.whl.metadata (5.1 kB)\r\nCollecting accelerate==0.33.0 (from -r requirements.txt (line 1))\r\n Using cached accelerate-0.33.0-py3-none-any.whl.metadata (18 kB)\r\nCollecting aiofiles==23.2.1 (from -r requirements.txt (line 2))\r\n Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)\r\nCollecting altair==4.2.2 (from -r requirements.txt (line 3))\r\n Using cached altair-4.2.2-py3-none-any.whl.metadata (13 kB)\r\nCollecting dadaptation==3.2 (from -r requirements.txt (line 4))\r\n Using cached dadaptation-3.2-py3-none-any.whl\r\nCollecting deepspeed==0.16.7 (from -r requirements.txt (line 5))\r\n Using cached deepspeed-0.16.7.tar.gz (1.5 MB)\r\n Preparing metadata (setup.py): started\r\n Preparing metadata (setup.py): finished with status 'error'\r\n error: subprocess-exited-with-error\r\n \r\n \u00d7 python setup.py egg_info did not run successfully.\r\n \u2502 exit code: 1\r\n \u2570\u2500> [60 lines of output]\r\n F:\StabilityMatrix\Packages\kohya_ss\venv\lib\site-packages_distutils_hack_init_.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml\r\n warnings.warn(\r\n DS_BUILD_OPS=1\r\n test.c\r\n LINK : fatal error LNK1181: cannot open input file 'aio.lib'\r\n [WARNING] Skip pre-compile of incompatible async_io; One can disable async_io with DS_BUILD_AIO=0\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n <3>WSL (12 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_adam requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_adam attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n <3>WSL (15 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_adam requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_adam attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n <3>WSL (18 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_adagrad requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_adagrad attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n <3>WSL (21 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_adagrad requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_adagrad attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n <3>WSL (24 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_lion requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_lion attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n <3>WSL (27 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] cpu_lion requires the 'lscpu' command, but it does not exist!\r\n [WARNING] cpu_lion attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n <3>WSL (30 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] dc requires the 'lscpu' command, but it does not exist!\r\n [WARNING] dc attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n <3>WSL (33 - Relay) ERROR: CreateProcessCommon:640: execvpe(/bin/bash) failed: No such file or directory\r\n [WARNING] dc requires the 'lscpu' command, but it does not exist!\r\n [WARNING] dc attempted to query 'lscpu' after failing to use py-cpuinfo to detect the CPU architecture. 'lscpu' does not appear to exist on your system, will fall back to use -march=native and non-vectorized execution.\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n [WARNING] Skip pre-compile of incompatible evoformer_attn; One can disable evoformer_attn with DS_BUILD_EVOFORMER_ATTN=0\r\n [WARNING] Skip pre-compile of incompatible fp_quantizer; One can disable fp_quantizer with DS_BUILD_FP_QUANTIZER=0\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n test.c\r\n LINK : fatal error LNK1181: cannot open input file 'cufile.lib'\r\n [WARNING] Skip pre-compile of incompatible gds; One can disable gds with DS_BUILD_GDS=0\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n Installed CUDA version 12.4 does not match the version torch was compiled with 12.8 but since the APIs are compatible, accepting this combination\r\n [WARNING] Filtered compute capabilities [['6', '0'], ['6', '1'], ['7', '0']]\r\n Traceback (most recent call last):\r\n File "", line 2, in \r\n File "", line 35, in \r\n File "C:\Users_\AppData\Local\Temp\pip-install-ovwvwa1m\deepspeed_5e3fccf70dc948af9cd23f390a898bc0\setup.py", line 201, in \r\n ext_modules.append(builder.builder())\r\n File "C:\Users_\AppData\Local\Temp\pip-install-ovwvwa1m\deepspeed_5e3fccf70dc948af9cd23f390a898bc0\op_builder\builder.py", line 730, in builder\r\n extra_link_args=self.strip_empty_entries(self.extra_ldflags()))\r\n File "C:\Users__\AppData\Local\Temp\pip-install-ovwvwa1m\deepspeed_5e3fccf70dc948af9cd23f390a898bc0\op_builder\inference_cutlass_builder.py", line 74, in extra_ldflags\r\n import dskernels\r\n ModuleNotFoundError: No module named 'dskernels'\r\n [end of output]\r\n \r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\nerror: metadata-generation-failed\r\n\r\n\u00d7 Encountered error while generating package metadata.\r\n\u2570\u2500> See above for output.\r\n\r\nnote: This is an issue with the package mentioned above, not pip.\r\nhint: See above for details.\r\n'
at StabilityMatrix.Core.Python.PyVenvRunner.PipInstall(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

2.1.4.2

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions