AlexxIT / FasterWhisper

Faster Whisper for Home Assistant - custom integration with a local Speech-to-Text engine
MIT License
53 stars 7 forks source link

Installation error 500 #1

Open facetheheat opened 1 year ago

facetheheat commented 1 year ago

Setup:

Screenshot 2023-05-30 at 14 58 37

System Logs:

Logger: aiohttp.server
Source: requirements.py:290 
First occurred: 2:57:55 PM (1 occurrences) 
Last logged: 2:57:55 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 148, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
    await _load_integration(self.hass, handler_key, self._hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
    return await manager.async_get_integration_with_requirements(domain)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
    await self.async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 252, in async_process_requirements
    await self._async_process_requirements(name, missing)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 290, in _async_process_requirements
    raise RequirementsNotFound(name, list(failures))
homeassistant.requirements.RequirementsNotFound: Requirements for faster_whisper not found: ['wyoming-faster-whisper==0.0.3'].

Trying to force setup in HA docker container:

- $ docker exec -it the_homeassistant /bin/bash
- # uname -a
Linux the_homeassistant 6.0.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1~bpo11+1 (2022-12-19) x86_64 Linux
- the_homeassistant:/config# python3 -m pip install wyoming-faster-whisper==0.0.3
Collecting wyoming-faster-whisper==0.0.3
  Using cached wyoming_faster_whisper-0.0.3.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: wyoming==0.0.1 in /usr/local/lib/python3.10/site-packages (from wyoming-faster-whisper==0.0.3) (0.0.1)
INFO: pip is looking at multiple versions of wyoming-faster-whisper to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement ctranslate2<4,>=3.5 (from wyoming-faster-whisper) (from versions: none)
ERROR: No matching distribution found for ctranslate2<4,>=3.5
subivoodoo commented 1 year ago

Same issue here...

eyal1izhaki commented 1 year ago

Here too

smolowik commented 1 year ago

same error :(

Shiroe93 commented 11 months ago

Same here

lraty commented 11 months ago

Same here. Any solution?

Shiroe93 commented 11 months ago

The official add on has been updated to faster whisper so I think there's no need for this one

zephirus commented 10 months ago

Same error. @Shiroe93 what do you mean?

grrrva commented 8 months ago

Hello, same here with

ERRATA CORRIGE:

Linux myhost 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

Thanks!

ICULikeMac commented 7 months ago

Same issue here too. Ubuntu 22.04 -> Docker -> HA -> Custom component.

AlexxIT commented 7 months ago

Should be fixed in latest update

facetheheat commented 7 months ago

Maybe requirements should be 1.1.0 instead of 1.0.1?

https://github.com/rhasspy/wyoming-faster-whisper/tags

Logger: homeassistant.util.package
Source: util/package.py:102
First occurred: 13:10:16 (3 occurrences)
Last logged: 13:10:32

Unable to install package wyoming-faster-whisper==1.0.1: ERROR: Could not find a version that satisfies the requirement ctranslate2<4,>=3.17 (from wyoming-faster-whisper) (from versions: none) ERROR: No matching distribution found for ctranslate2<4,>=3.17
Unable to install package wyoming-faster-whisper==1.0.1: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f23a55ecad0>: Failed to establish a new connection: [Errno -3] Try again')': /simple/wyoming-faster-whisper/ ERROR: Could not find a version that satisfies the requirement ctranslate2<4,>=3.17 (from wyoming-faster-whisper) (from versions: none) ERROR: No matching distribution found for ctranslate2<4,>=3.17
AlexxIT commented 7 months ago

No. Current version 1.0.1 https://github.com/home-assistant/addons/blob/2a8452b5c9ffd08dc8cedf052249c861d1e6d35d/whisper/build.yaml#L9

I don't have any problems on Windows. Will check Linux.

grrrva commented 7 months ago

Hello, my issue is related for sure with ctranslate2 library and the arm cpu architecture of the raspberry. I have issues to install ctranslate2 even outside HA, I compiled the cpp library but failing to compile the python wrapper.

link of error here: https://forum.opennmt.net/t/ctranslate2-errors-in-compiling-python-wrapper-on-raspberry-pi-4-implicit-narrowing-is-not-permitted/5636

Thanks

AlexxIT commented 7 months ago

ctranslate2 should have wheels for x86_64 and for aarch64. Are you install 32bit ARM OS?

https://pypi.org/simple/ctranslate2/

grrrva commented 7 months ago

ctranslate2 should have wheels for x86_64 and for aarch64. Are you install 32bit ARM OS?

https://pypi.org/simple/ctranslate2/

I'll give a look at that.

my uname -a output is:

Linux myhost 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

so I guess I am on 64 bit OS.

thank you

AlexxIT commented 7 months ago

Looks like common linux wheels (manylinux) not compatible with Hass wheels (musllinux), because Hass docker images based on Alpine linux. This is BIG problem. I thinks it can't be solved with easy way.

pjuhl2313 commented 6 months ago

Logger: homeassistant.util.package Source: util/package.py:122 First occurred: 11:34:07 PM (3 occurrences) Last logged: 11:34:13 PM

Unable to install package wyoming-faster-whisper==1.0.1: ERROR: Could not find a version that satisfies the requirement ctranslate2<4,>=3.17 (from wyoming-faster-whisper) (from versions: none) ERROR: No matching distribution found for ctranslate2<4,>=3.17

This is the error I get when trying to install on HA. My HA is in a VM on an unRaid server.

grrrva commented 6 months ago

Hello, I solved, it was because my Raspberry OS was 32 bit. I reinstalled with 64 bit version and everything worked fine.

Check if your system (the O.S., not the CPU) is 32 bit.

Il giorno mar 27 feb 2024 alle ore 05:36 pjuhl2313 @.***> ha scritto:

Logger: homeassistant.util.package Source: util/package.py:122 First occurred: 11:34:07 PM (3 occurrences) Last logged: 11:34:13 PM

Unable to install package wyoming-faster-whisper==1.0.1: ERROR: Could not find a version that satisfies the requirement ctranslate2<4,>=3.17 (from wyoming-faster-whisper) (from versions: none) ERROR: No matching distribution found for ctranslate2<4,>=3.17

This is the error I get when trying to install on HA. My HA is in a VM on an unRaid server.

— Reply to this email directly, view it on GitHub https://github.com/AlexxIT/FasterWhisper/issues/1#issuecomment-1965771230, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFEOLMN7BDUZJ6UR6KVRL4TYVVPEXAVCNFSM6AAAAAAYT5YGHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVG43TCMRTGA . You are receiving this because you commented.Message ID: @.***>

AlexxIT commented 6 months ago

This component doesn't support:

This component can be used with (64 bit):

Stephan-4711 commented 6 months ago

I'm using HAOS in a VM x64 and I also get the error 500

Xornop commented 6 months ago

I am also getting the error, on a 64 bit NUC with HAOS Great to see that this bug report exists since May last year and hasn't been fixed - must be a hard one.

matze19999 commented 2 months ago

Same problem here, also NUC x86 with HAOS.

mikhakhaldea commented 1 month ago

Same problem HA on docker x86 with HAOS. ubuntu 22.04