Skip to content

Error when installing the requirements.txt #20

@rev47

Description

@rev47

Everything was going pretty smooth, following the guide, but the step to run "pip install -r requirements.txt" seems to be running into a 'slight' issue. I have a feeling it's a simple thing, but I am not a smart person...

(venv) C:\LLM\TTS\nari labs dia\dia-tts-server>pip install -r requirements.txt
Collecting fastapi (from -r requirements.txt (line 4))
  Using cached fastapi-0.115.12-py3-none-any.whl.metadata (27 kB)
Requirement already satisfied: torch in c:\llm\tts\nari labs dia\dia-tts-server\venv\lib\site-packages (from -r requirements.txt (line 8)) (2.7.0+cu126)
Requirement already satisfied: torchaudio in c:\llm\tts\nari labs dia\dia-tts-server\venv\lib\site-packages (from -r requirements.txt (line 9)) (2.7.0+cu126)
Requirement already satisfied: numpy in c:\llm\tts\nari labs dia\dia-tts-server\venv\lib\site-packages (from -r requirements.txt (line 10)) (2.1.2)
Collecting soundfile (from -r requirements.txt (line 11))
  Using cached soundfile-0.13.1-py2.py3-none-win_amd64.whl.metadata (16 kB)
Collecting huggingface_hub (from -r requirements.txt (line 12))
  Using cached huggingface_hub-0.32.0-py3-none-any.whl.metadata (14 kB)
Collecting descript-audio-codec (from -r requirements.txt (line 13))
  Using cached descript_audio_codec-1.0.0-py3-none-any.whl.metadata (7.8 kB)
Collecting safetensors (from -r requirements.txt (line 14))
  Using cached safetensors-0.5.3-cp38-abi3-win_amd64.whl.metadata (3.9 kB)
Collecting openai-whisper (from -r requirements.txt (line 15))
  Using cached openai-whisper-20240930.tar.gz (800 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      <string>:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      Traceback (most recent call last):
        File "C:\LLM\TTS\nari labs dia\dia-tts-server\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "C:\LLM\TTS\nari labs dia\dia-tts-server\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\LLM\TTS\nari labs dia\dia-tts-server\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\Human\AppData\Local\Temp\pip-build-env-9e4nxbun\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Human\AppData\Local\Temp\pip-build-env-9e4nxbun\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\Human\AppData\Local\Temp\pip-build-env-9e4nxbun\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Human\AppData\Local\Temp\pip-build-env-9e4nxbun\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 21, in <module>
        File "<string>", line 11, in read_version
      KeyError: '__version__'
      [end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

(venv) C:\LLM\TTS\nari labs dia\dia-tts-server>

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