Skip to content

Build Failure on Windows: Missing dependency 'dskernels' #395

@radiantone

Description

@radiantone

(venv) PS I:\AI\Tools\index-tts> uv sync --all-extras
warning: VIRTUAL_ENV=venv does not match the project environment path .venv and will be ignored; use --active to target the active environment instead
Resolved 190 packages in 0.99ms
× Failed to build deepspeed==0.17.1
├─▶ The build backend returned an error
╰─▶ Call to setuptools.build_meta:__legacy__.build_wheel failed (exit code: 1)

  [stdout]
  [2025-09-18 10:30:45,585] [INFO] [real_accelerator.py:254:get_accelerator] Setting
  ds_accelerator to cuda (auto detect)
  [2025-09-18 10:30:45,791] [INFO] [real_accelerator.py:254:get_accelerator] Setting
  ds_accelerator to cuda (auto detect)
  [2025-09-18 10:30:49,581] [INFO] [logging.py:107:log_dist] [Rank -1]
  [TorchCheckpointEngine] Initialized with serialization = False
  DS_BUILD_OPS=1
   [WARNING]  Skip pre-compile of incompatible async_io; One can disable async_io
  with DS_BUILD_AIO=0
   [WARNING]  Skip pre-compile of incompatible evoformer_attn; One can disable
  evoformer_attn with DS_BUILD_EVOFORMER_ATTN=0
   [WARNING]  Skip pre-compile of incompatible fp_quantizer; One can disable
  fp_quantizer with DS_BUILD_FP_QUANTIZER=0
   [WARNING]  Skip pre-compile of incompatible gds; One can disable gds with
  DS_BUILD_GDS=0
   [WARNING]  Filtered compute capabilities [['6', '0'], ['6', '1'], ['7', '0']]

  [stderr]
  W0918 10:30:47.589000 27548
  Lib\site-packages\torch\distributed\elastic\multiprocessing\redirects.py:29] NOTE:
  Redirects are currently not supported in Windows or MacOs.
  Traceback (most recent call last):
    File "<string>", line 11, in <module>
    File "I:\AI\Tools\index-tts\.venv\lib\site-packages\setuptools\build_meta.py",
  line 432, in build_wheel
      return _build(['bdist_wheel'])
    File "I:\AI\Tools\index-tts\.venv\lib\site-packages\setuptools\build_meta.py",
  line 423, in _build
      return self._build_with_temp_dir(
    File "I:\AI\Tools\index-tts\.venv\lib\site-packages\setuptools\build_meta.py",
  line 404, in _build_with_temp_dir
      self.run_setup()
    File "I:\AI\Tools\index-tts\.venv\lib\site-packages\setuptools\build_meta.py",
  line 512, in run_setup
      super().run_setup(setup_script=setup_script)
    File "I:\AI\Tools\index-tts\.venv\lib\site-packages\setuptools\build_meta.py",
  line 317, in run_setup
      exec(code, locals())
    File "<string>", line 201, in <module>
    File
  "C:\Users\VYRAL\AppData\Local\uv\cache\sdists-v9\pypi\deepspeed\0.17.1\tDkOAe7XfEvmQuoy7uXE2\src\op_builder\builder.py",
  line 730, in builder
      extra_link_args=self.strip_empty_entries(self.extra_ldflags()))
    File
  "C:\Users\VYRAL\AppData\Local\uv\cache\sdists-v9\pypi\deepspeed\0.17.1\tDkOAe7XfEvmQuoy7uXE2\src\op_builder\inference_cutlass_builder.py",
  line 74, in extra_ldflags
      import dskernels
  ModuleNotFoundError: No module named 'dskernels'

  hint: This error likely indicates that `deepspeed@0.17.1` depends on `dskernels`,
  but doesn't declare it as a build dependency. If `deepspeed` is a first-party
  package, consider adding `dskernels` to its `build-system.requires`. Otherwise,
  either add it to your `pyproject.toml` under:

  [tool.uv.extra-build-dependencies]
  deepspeed = ["dskernels"]

  or `uv pip install dskernels` into the environment and re-run with
  `--no-build-isolation`.

help: deepspeed (v0.17.1) was included because indextts[deepspeed] (v2.0.0) depends
on deepspeed

...

(venv) PS I:\AI\Tools\index-tts> uv pip install dskernels
Using Python 3.13.7 environment at: venv
× No solution found when resolving dependencies:
╰─▶ Because dskernels was not found in the package registry and you require dskernels,
we can conclude that your requirements are unsatisfiable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions