No module named 'yaml' (Windows bat failure)
Hi there! I'm trying to use the one-click windows solution but it fails pretty much immediately.
============================================================
Chatterbox TTS Server - Launcher
============================================================
============================================================
Chatterbox TTS Server - Launcher
============================================================
[1/4] Checking Python installation...
✓ Python 3.13 detected
[2/4] Setting up virtual environment...
✓ Virtual environment found
[3/4] Checking dependencies...
✓ Dependencies already installed
[4/4] Launching Chatterbox TTS Server...
✓ Loaded config: 0.0.0.0:8004
→ Starting server on 0.0.0.0:8004...
→ Waiting for server to start (model loading may take 30-90 seconds)...
Traceback (most recent call last):
File "F:\Projects\Chatterbox\server.py", line 13, in <module>
import yaml # For loading presets
^^^^^^^^^^^
ModuleNotFoundError: No module named 'yaml'
..............................
..........
✗ Timeout after 120s
✗ Server failed to start
→ Check console output for errors
→ Common issues:
→ - Missing CUDA/GPU drivers
→ - Insufficient memory
→ - Port already in use
[ERROR] Failed to start. Please check the output above.
Press any key to continue . . .
I'm on Windows 11 with an RTX 5090, if that matters.
In the previous post I used the source code zip on the release page. This time I git cloned the repo and got further. However, options 2 and 3 (regular Nvidia and 5090-specific) both failed in different ways.
============================================================
Chatterbox TTS Server - Launcher
============================================================
Checking for Python installation...
[OK] Found Python 3.13.5 (python)
Verifying Python version...
[OK] Python 3.13 meets requirements (3.10+)
============================================================
Starting Chatterbox TTS Server...
============================================================
Using: python
============================================================
Chatterbox TTS Server - Launcher
============================================================
[1/6] Checking Python installation...
✓ Python 3.13.5 detected
[2/6] Setting up environment...
→ Project directory: F:\Projects\Chatterbox-TTS-Server
→ Virtual environment: F:\Projects\Chatterbox-TTS-Server\venv
[3/6] Checking existing installation...
→ No existing installation found
[4/6] Installing Chatterbox TTS Server...
→ Detecting available hardware...
============================================================
Hardware Detection
============================================================
NVIDIA GPU: Detected (NVIDIA GeForce RTX 5090)
AMD GPU: Not detected
============================================================
Select Installation Type
============================================================
[1] CPU Only
No GPU acceleration - works on any system
[2] NVIDIA GPU (CUDA 12.1) [DEFAULT]
Standard for RTX 20/30/40 series
[3] NVIDIA GPU (CUDA 12.8)
For RTX 5090 / Blackwell GPUs only
[4] AMD GPU (ROCm 6.4)
For AMD GPUs on Linux ⚠️ Not supported on Windows
Enter choice [2]: 2
✓ Selected: NVIDIA GPU (CUDA 12.1)
→ Upgrading pip...
Requirement already satisfied: pip in f:\projects\chatterbox-tts-server\venv\lib\site-packages (25.3)
✓ pip upgraded
→ Installing from requirements-nvidia.txt...
→ Running: "F:\Projects\Chatterbox-TTS-Server\venv\Scripts\pip.exe" install -r "F:\Projects\Chatterbox-TTS-Server\requirements-nvidia.txt"
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting chatterbox-tts@ git+https://github.com/devnen/chatterbox-v2.git@master (from -r F:\Projects\Chatterbox-TTS-Server\requirements-nvidia.txt (line 16))
Cloning https://github.com/devnen/chatterbox-v2.git (to revision master) to c:\users\qriist\appdata\local\temp\pip-install-4vtv744q\chatterbox-tts_e9da4d2930654510bfebf44f31c25975
Running command git clone --filter=blob:none --quiet https://github.com/devnen/chatterbox-v2.git 'C:\Users\Qriist\AppData\Local\Temp\pip-install-4vtv744q\chatterbox-tts_e9da4d2930654510bfebf44f31c25975'
Running command git checkout -b master --track origin/master
branch 'master' set up to track 'origin/master'.
Switched to a new branch 'master'
Resolved https://github.com/devnen/chatterbox-v2.git to commit edbde2d9425f858e00b7f291e6f135de458a5662
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Could not find a version that satisfies the requirement torch==2.5.1+cu121 (from versions: 2.6.0, 2.7.0, 2.7.1, 2.8.0, 2.9.0, 2.9.1)
ERROR: No matching distribution found for torch==2.5.1+cu121
✗ Dependency installation failed
============================================================
Installation failed!
============================================================
Troubleshooting tips:
1. Check your internet connection
2. Try running with --verbose for more details:
python start.py --reinstall --verbose
3. Check if you have enough disk space
4. Try installing manually:
pip install -r requirements-nvidia.txt
============================================================
Server exited with an error (code: 1)
============================================================
Press any key to close this window...
============================================================
Chatterbox TTS Server - Launcher
============================================================
Checking for Python installation...
[OK] Found Python 3.13.5 (python)
Verifying Python version...
[OK] Python 3.13 meets requirements (3.10+)
============================================================
Starting Chatterbox TTS Server...
============================================================
Using: python
============================================================
Chatterbox TTS Server - Launcher
============================================================
[1/6] Checking Python installation...
✓ Python 3.13.5 detected
[2/6] Setting up environment...
→ Project directory: F:\Projects\Chatterbox-TTS-Server
→ Virtual environment: F:\Projects\Chatterbox-TTS-Server\venv
[3/6] Checking existing installation...
→ No existing installation found
[4/6] Installing Chatterbox TTS Server...
→ Creating virtual environment...
✓ Virtual environment created
→ Detecting available hardware...
============================================================
Hardware Detection
============================================================
NVIDIA GPU: Detected (NVIDIA GeForce RTX 5090)
AMD GPU: Not detected
============================================================
Select Installation Type
============================================================
[1] CPU Only
No GPU acceleration - works on any system
[2] NVIDIA GPU (CUDA 12.1) [DEFAULT]
Standard for RTX 20/30/40 series
[3] NVIDIA GPU (CUDA 12.8)
For RTX 5090 / Blackwell GPUs only
[4] AMD GPU (ROCm 6.4)
For AMD GPUs on Linux ⚠️ Not supported on Windows
Enter choice [2]: 3
✓ Selected: NVIDIA GPU (CUDA 12.8 / Blackwell)
→ Upgrading pip...
Requirement already satisfied: pip in f:\projects\chatterbox-tts-server\venv\lib\site-packages (25.1.1)
Collecting pip
Using cached pip-25.3-py3-none-any.whl.metadata (4.7 kB)
Using cached pip-25.3-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 25.1.1
Uninstalling pip-25.1.1:
Successfully uninstalled pip-25.1.1
Successfully installed pip-25.3
✓ pip upgraded
→ Installing from requirements-nvidia-cu128.txt...
→ Running: "F:\Projects\Chatterbox-TTS-Server\venv\Scripts\pip.exe" install -r "F:\Projects\Chatterbox-TTS-Server\requirements-nvidia-cu128.txt"
Collecting chatterbox-tts@ git+https://github.com/resemble-ai/chatterbox.git@master (from -r F:\Projects\Chatterbox-TTS-Server\requirements-nvidia-cu128.txt (line 34))
Cloning https://github.com/resemble-ai/chatterbox.git (to revision master) to c:\users\qriist\appdata\local\temp\pip-install-19div_xn\chatterbox-tts_31d559c7c82f43cd88692c0e9ef6b3a7
Running command git clone --filter=blob:none --quiet https://github.com/resemble-ai/chatterbox.git 'C:\Users\Qriist\AppData\Local\Temp\pip-install-19div_xn\chatterbox-tts_31d559c7c82f43cd88692c0e9ef6b3a7'
Resolved https://github.com/resemble-ai/chatterbox.git to commit ed27b95ee46b95be201147bafe5ca85ac57ac4f2
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting fastapi (from -r F:\Projects\Chatterbox-TTS-Server\requirements-nvidia-cu128.txt (line 37))
Using cached fastapi-0.128.0-py3-none-any.whl.metadata (30 kB)
Collecting numpy<1.26.0,>=1.24.0 (from -r F:\Projects\Chatterbox-TTS-Server\requirements-nvidia-cu128.txt (line 41))
Downloading numpy-1.25.2.tar.gz (10.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.8/10.8 MB 10.7 MB/s 0:00:01
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 107, in _run_wrapper
status = _inner_run()
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\cli\base_command.py", line 98, in _inner_run
return self.run(options, args)
~~~~~~~~^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\cli\req_command.py", line 85, in wrapper
return func(self, options, args)
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\commands\install.py", line 388, in run
requirement_set = resolver.resolve(
reqs, check_supported_wheels=not options.target_dir
)
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 99, in resolve
result = self._result = resolver.resolve(
~~~~~~~~~~~~~~~~^
collected.requirements, max_rounds=limit_how_complex_resolution_can_be
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 601, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 434, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\resolvelib\resolvers\resolution.py", line 150, in _add_to_criteria
if not criterion.candidates:
^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 194, in __bool__
return bool(self._sequence)
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 165, in __bool__
self._bool = any(self)
~~~^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 149, in <genexpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 39, in _iter_built
candidate = func()
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 180, in _make_candidate_from_link
base: BaseCandidate | None = self._make_base_candidate_from_link(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
link, template, name, version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 226, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
~~~~~~~~~~~~~^
link,
^^^^^
...<3 lines>...
version=version,
^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 318, in __init__
super().__init__(
~~~~~~~~~~~~~~~~^
link=link,
^^^^^^^^^^
...<4 lines>...
version=version,
^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 161, in __init__
self.dist = self._prepare()
~~~~~~~~~~~~~^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 238, in _prepare
dist = self._prepare_distribution()
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 329, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 543, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 658, in _prepare_linked_requirement
dist = _get_prepared_distribution(
req,
...<3 lines>...
self.check_build_deps,
)
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\operations\prepare.py", line 77, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
build_env_installer, build_isolation, check_build_deps
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 55, in prepare_distribution_metadata
self._install_build_reqs(build_env_installer)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 132, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\distributions\sdist.py", line 107, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_internal\utils\misc.py", line 694, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 196, in get_requires_for_build_wheel
return self._call_hook(
~~~~~~~~~~~~~~~^
"get_requires_for_build_wheel", {"config_settings": config_settings}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "F:\Projects\Chatterbox-TTS-Server\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 402, in _call_hook
raise BackendUnavailable(
...<4 lines>...
)
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'
✗ Dependency installation failed
============================================================
Installation failed!
============================================================
Troubleshooting tips:
1. Check your internet connection
2. Try running with --verbose for more details:
python start.py --reinstall --verbose
3. Check if you have enough disk space
4. Try installing manually:
pip install -r requirements-nvidia-cu128.txt
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
============================================================
Server exited with an error (code: 1)
============================================================
Press any key to close this window...
import yaml # For loading presets
^^^^^^^^^^^
ModuleNotFoundError: No module named 'yaml'
Out of curiosity, but have you tried to install it? Did it change anything?
pip install pyyaml
On Linux, I also had to downgrade the virtual environment to Python 3.10 to make it compatible with ROCM, but it might be not the case on Windows.
I had this same issue. I installed yaml and now it's ModuleNotFoundError: No module named 'numpy'
I guess you need to install it too. It's a shame the script doesn't install dependencies automatically
Except it very specifically states "The automated launcher handles virtual environment creation, hardware detection, dependency installation, and server startup - all in one step."
This is fixed in commit a67348a. The underlying problem was that on Python 3.13, the dependency installation would partially fail (torch/ONNX wheel issues), leaving PyYAML and other packages uninstalled — even though the launcher reported "Dependencies already installed."
The fix ensures all dependencies install cleanly by:
- Using
--no-depsfor chatterbox to prevent resolver conflicts - Pinning
onnx==1.16.0for pre-built wheels - Recommending Python 3.10 (the launcher's Portable Mode handles this automatically on Windows)
To update: git pull && python start.py --reinstall
Closing, this was fixed in a67348a (devnen confirmed above). The launcher now installs all deps cleanly on Python 3.10. Please reopen if you hit it again after git pull && python start.py --reinstall.