Skip to content

Receive Error When Enabling Vocie #5431

@mattcrichards

Description

@mattcrichards

Describe the bug

When I attempt to enable the voice extension, I get the following error:

To Reproduce
Steps to reproduce the behavior:

  1. Launch Goose
  2. Open Extensions
  3. Attempt to enable Speech Interface
  4. Receive error

Error activating extension: Failed to add extension configuration, error: ProcessExit(ProcessExit { stderr: "Installed 128 packages in 3.66s\nC:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\ctranslate2\init.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\r\n import pkg_resources\r\n--- Logging error ---\r\nTraceback (most recent call last):\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1104, in emit\r\n self.flush()\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1084, in flush\r\n self.stream.flush()\r\nOSError: [Errno 22] Invalid argument\r\nCall stack:\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4, in \r\n from speech_mcp.main import main\r\n File "", line 1027, in _find_and_load\r\n File "", line 992, in _find_and_load_unlocked\r\n File "", line 241, in _call_with_frames_removed\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 7, in \r\n from .server import mcp, cleanup_ui_process\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\server.py", line 38, in \r\n from speech_mcp.speech_recognition import (\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\speech_recognition.py", line 607, in \r\n default_recognizer = SpeechRecognizer()\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\speech_recognition.py", line 57, in init\r\n self._initialize_speech_recognition()\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\speech_recognition.py", line 82, in _initialize_speech_recognition\r\n logger.info("faster-whisper model loaded successfully!")\r\nMessage: 'faster-whisper model loaded successfully!'\r\nArguments: ()\r\n--- Logging error ---\r\nTraceback (most recent call last):\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1104, in emit\r\n self.flush()\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1084, in flush\r\n self.stream.flush()\r\nOSError: [Errno 22] Invalid argument\r\nCall stack:\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4, in \r\n from speech_mcp.main import main\r\n File "", line 1027, in _find_and_load\r\n File "", line 992, in _find_and_load_unlocked\r\n File "", line 241, in _call_with_frames_removed\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 7, in \r\n from .server import mcp, cleanup_ui_process\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\server.py", line 102, in \r\n logger.info("Starting asynchronous Kokoro TTS initialization...")\r\nMessage: 'Starting asynchronous Kokoro TTS initialization...'\r\nArguments: ()\r\n--- Logging error ---\r\nTraceback (most recent call last):\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1104, in emit\r\n self.flush()\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1084, in flush\r\n self.stream.flush()\r\nOSError: [Errno 22] Invalid argument\r\nCall stack:\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4, in \r\n from speech_mcp.main import main\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\main.py", line 3, in \r\n main()\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 50, in main\r\n logger.info("Starting Speech MCP server...")\r\nMessage: 'Starting Speech MCP server...'\r\nArguments: ()\r\n--- Logging error ---\r\nTraceback (most recent call last):\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1104, in emit\r\n self.flush()\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1084, in flush\r\n self.stream.flush()\r\nOSError: [Errno 22] Invalid argument\r\nCall stack:\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4, in \r\n from speech_mcp.main import main\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\main.py", line 3, in \r\n main()\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 57, in main\r\n logger.info("Running MCP server...")\r\nMessage: 'Running MCP server...'\r\nArguments: ()\r\n--- Logging error ---\r\n + Exception Group Traceback (most recent call last):\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 58, in main\r\n | mcp.run()\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\mcp\server\fastmcp\server.py", line 282, in run\r\n | anyio.run(self.run_stdio_async)\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_core\_eventloop.py", line 74, in run\r\n | return async_backend.run(func, args, {}, backend_options)\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 2325, in run\r\n | return runner.run(wrapper())\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 218, in run\r\n | return self._loop.run_until_complete(task)\r\n | File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\asyncio\base_events.py", line 649, in run_until_complete\r\n | return future.result()\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 2313, in wrapper\r\n | return await func(*args)\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\mcp\server\fastmcp\server.py", line 731, in run_stdio_async\r\n | async with stdio_server() as (read_stream, write_stream):\r\n | File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\contextlib.py", line 206, in aexit\r\n | await anext(self.gen)\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\mcp\server\stdio.py", line 85, in stdio_server\r\n | async with anyio.create_task_group() as tg:\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 781, in aexit\r\n | raise BaseExceptionGroup(\r\n | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\r\n +-+---------------- 1 ----------------\r\n | Traceback (most recent call last):\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\mcp\server\stdio.py", line 81, in stdout_writer\r\n | await stdout.flush()\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_core\_fileio.py", line 140, in flush\r\n | return await to_thread.run_sync(self._fp.flush)\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\to_thread.py", line 56, in run_sync\r\n | return await get_async_backend().run_sync_in_worker_thread(\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 2485, in run_sync_in_worker_thread\r\n | return await future\r\n | File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\anyio\_backends\_asyncio.py", line 976, in run\r\n | result = context.run(func, *args)\r\n | OSError: [Errno 22] Invalid argument\r\n +------------------------------------\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1104, in emit\r\n self.flush()\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\logging\init.py", line 1084, in flush\r\n self.stream.flush()\r\nOSError: [Errno 22] Invalid argument\r\nCall stack:\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86, in _run_code\r\n exec(code, run_globals)\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4, in \r\n from speech_mcp.main import main\r\n File "", line 1027, in _find_and_load\r\n File "", line 1006, in _find_and_load_unlocked\r\n File "", line 688, in _load_unlocked\r\n File "", line 883, in exec_module\r\n File "", line 241, in _call_with_frames_removed\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\main.py", line 3, in \r\n main()\r\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 61, in main\r\n logger.exception(f"Error running MCP server: {e}")\r\nMessage: 'Error running MCP server: unhandled errors in a TaskGroup (1 sub-exception)'\r\nArguments: ()\r\nThread 0x00007378 (most recent call first):\n File "", line 196 in _write_atomic\n File "", line 1122 in set_data\n File "", line 1097 in _cache_bytecode\n File "", line 1029 in get_code\n File "", line 879 in exec_module\n File "", line 688 in _load_unlocked\n File "", line 1006 in _find_and_load_unlocked\n File "", line 1027 in _find_and_load\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\kokoro\init.py", line 3 in \n File "", line 241 in _call_with_frames_removed\n File "", line 883 in exec_module\n File "", line 688 in _load_unlocked\n File "", line 1006 in _find_and_load_unlocked\n File "", line 1027 in _find_and_load\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\tts_adapters\kokoro_adapter.py", line 94 in _initialize_kokoro\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\tts_adapters\kokoro_adapter.py", line 66 in init\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\server.py", line 81 in initialize_kokoro_tts\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\server.py", line 113 in async_kokoro_init\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 953 in run\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 1016 in _bootstrap_inner\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 973 in _bootstrap\n\nThread 0x000072d8 (most recent call first):\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 324 in wait\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 607 in wait\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\tqdm\_monitor.py", line 60 in run\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 1016 in _bootstrap_inner\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\threading.py", line 973 in _bootstrap\n\nCurrent thread 0x00000a94 (most recent call first):\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\init.py", line 64 in main\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\lib\site-packages\speech_mcp\main.py", line 3 in \n File "", line 241 in _call_with_frames_removed\n File "", line 883 in exec_module\n File "", line 688 in _load_unlocked\n File "", line 1006 in _find_and_load_unlocked\n File "", line 1027 in _find_and_load\n File "C:\Users\Matt\AppData\Local\uv\cache\archive-v0\hx-KZ1q7ZWj37VhqjNJCh\Scripts\speech-mcp.exe\main.py", line 4 in \n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 86 in _run_code\n File "C:\Users\Matt\AppData\Roaming\uv\python\cpython-3.10.14-windows-x86_64-none\lib\runpy.py", line 196 in _run_module_as_main\nException ignored in: <_io.TextIOWrapper name='' mode='w' encoding='cp1252'>\r\nOSError: [Errno 22] Invalid argument\r\n", source: ConnectionClosed("initialize response") })

Expected behavior
The extension to be installed.

Screenshots

Attached

Please provide following information:

  • OS & Arch: Windows Pro 11
  • Interface: UI
  • **Version:**1.12.1
  • **Extensions enabled:**Developer, Extension Manager, Memory, ToDo, VSCode.we
  • Provider & Model: Tetrate

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

clarificationprovide explanation for goose's behavior

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions