Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error 500 #1

Open
facetheheat opened this issue May 30, 2023 · 23 comments
Open

Installation error 500 #1

facetheheat opened this issue May 30, 2023 · 23 comments
Labels
bug Something isn't working

Comments

@facetheheat
Copy link

facetheheat commented May 30, 2023

Setup:

  • latest HA in docker docker pull homeassistant/home-assistant:latest,
  • trying to setup FasterWhisper: Settings > Integrations > Add Integration > Faster Whisper
  • Error pop up message:
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
Copy link

Same issue here...

@eyal1izhaki
Copy link

Here too

@smolowik
Copy link

same error :(

@Shiroe93
Copy link

Same here

@lraty
Copy link

lraty commented Sep 16, 2023

Same here. Any solution?

@Shiroe93
Copy link

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

@zephirus
Copy link

Same error. @Shiroe93 what do you mean?

@AlexxIT AlexxIT added the bug Something isn't working label Oct 24, 2023
@grrrva
Copy link

grrrva commented Jan 5, 2024

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
Copy link

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

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 26, 2024

Should be fixed in latest update

@AlexxIT AlexxIT closed this as completed Jan 26, 2024
@facetheheat
Copy link
Author

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 AlexxIT reopened this Jan 26, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 26, 2024

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
Copy link

grrrva commented Jan 26, 2024

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
Copy link
Owner

AlexxIT commented Jan 26, 2024

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

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

@grrrva
Copy link

grrrva commented Jan 26, 2024

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
Copy link
Owner

AlexxIT commented Jan 26, 2024

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
Copy link

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
Copy link

grrrva commented Feb 27, 2024 via email

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 27, 2024

This component doesn't support:

  • Hass docker (linux x86)

This component can be used with (64 bit):

  • HassWP (windows)
  • Hass venv (linux x86, linux arm)
  • Hass docker (linux arm)

@Stephan-4711
Copy link

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

@Xornop
Copy link

Xornop commented Mar 5, 2024

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
Copy link

Same problem here, also NUC x86 with HAOS.

@mikhakhaldea
Copy link

Same problem HA on docker x86 with HAOS. ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests