app-misc/homeassistant tts component depends on media-libs/mutagen-1.46.0 #1245

Open
opened 2023-03-07 19:53:26 +01:00 by zentoo · 7 comments

app-misc/homeassistant-2023.3.1 depends on:
media-libs/mutagen-1.46.0 for tts component.

/usr/lib/python3.10/site-packages/homeassistant/components/tts/__init__.py:17:import mutagen
app-misc/homeassistant-2023.3.1 depends on: media-libs/mutagen-1.46.0 for tts component. ``` /usr/lib/python3.10/site-packages/homeassistant/components/tts/__init__.py:17:import mutagen ```

homeassistant-full/homeassistant-full-2023.3.3.ebuild: tts? ( ~media-libs/mutagen-1.46.0 )

do you want the tts component added to the homeassistant Ebuild?

homeassistant-full/homeassistant-full-2023.3.3.ebuild: tts? ( ~media-libs/mutagen-1.46.0 ) do you want the tts component added to the homeassistant Ebuild?
onkelbeh added the
Enhancement
label 2023-03-10 00:27:06 +01:00
onkelbeh self-assigned this 2023-03-10 00:27:11 +01:00

I suppose that you mean to add tts USE flag to homeassistant ebuild ?

Actually homeassistant require mutagen for tts component at runtime so homeassistant ebuild need this dependency.

I don't have preference between both solutions:

  • add tts USE flag and mutagen dependency
  • add mutagen dependency globally to homeassistant ebuild
I suppose that you mean to add tts USE flag to homeassistant ebuild ? Actually homeassistant require mutagen for tts component at runtime so homeassistant ebuild need this dependency. I don't have preference between both solutions: - add tts USE flag and mutagen dependency - add mutagen dependency globally to homeassistant ebuild

I'll add the tts Useflag to the medium Ebuild. This causes lower impact.

I'll add the tts Useflag to the medium Ebuild. This causes lower impact.

commit 0fb1463a04

commit 0fb1463a04bf946835c98f235da77b6e8ffe4277

I've tried last homeassistant version with USE=-tts and that doesn't work as expected because TTS is needed by the Google Cast integration too.

2023-03-11 11:33:21.372 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment

× This environment is externally managed
╰─>
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).

    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:

    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage

    To exit the virtual environment, run:

    deactivate

    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
2023-03-11 11:33:22.393 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment

× This environment is externally managed
╰─>
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).

    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:

    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage

    To exit the virtual environment, run:

    deactivate

    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
2023-03-11 11:33:23.348 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment

× This environment is externally managed
╰─>
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).

    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:

    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage

    To exit the virtual environment, run:

    deactivate

    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
2023-03-11 11:33:23.449 ERROR (MainThread) [homeassistant.setup] Setup failed for cast: Requirements for tts not found: ['mutagen==1.46.0'].
2023-03-11 11:33:53.983 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/homeassistant/helpers/discovery_flow.py", line 95, in _async_start
    await gather_with_concurrency(
  File "/usr/lib/python3.10/site-packages/homeassistant/util/async_.py", line 178, in gather_with_concurrency
    return await gather(
  File "/usr/lib/python3.10/site-packages/homeassistant/util/async_.py", line 176, in sem_task
    return await task
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 831, in async_init
    flow, result = await task
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 849, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 955, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/lib/python3.10/site-packages/homeassistant/setup.py", line 385, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
    return await manager.async_get_integration_with_requirements(domain)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 221, in _async_process_integration
    raise result
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration
    await self.async_process_requirements(
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 246, in async_process_requirements
    self._raise_for_failed_requirements(name, missing)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
    raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for tts not found: ['mutagen==1.46.0'].
I've tried last homeassistant version with `USE=-tts` and that doesn't work as expected because TTS is needed by the Google Cast integration too. ``` 2023-03-11 11:33:21.372 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment × This environment is externally managed ╰─> The system-wide Python installation in Gentoo should be maintained using the system package manager (e.g. emerge). If the package in question is not packaged for Gentoo, please consider installing it inside a virtual environment, e.g.: python -m venv /path/to/venv . /path/to/venv/bin/activate pip install mypackage To exit the virtual environment, run: deactivate The virtual environment is not deleted, and can be re-entered by re-sourcing the activate file. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. 2023-03-11 11:33:22.393 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment × This environment is externally managed ╰─> The system-wide Python installation in Gentoo should be maintained using the system package manager (e.g. emerge). If the package in question is not packaged for Gentoo, please consider installing it inside a virtual environment, e.g.: python -m venv /path/to/venv . /path/to/venv/bin/activate pip install mypackage To exit the virtual environment, run: deactivate The virtual environment is not deleted, and can be re-entered by re-sourcing the activate file. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. 2023-03-11 11:33:23.348 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package mutagen==1.46.0: error: externally-managed-environment × This environment is externally managed ╰─> The system-wide Python installation in Gentoo should be maintained using the system package manager (e.g. emerge). If the package in question is not packaged for Gentoo, please consider installing it inside a virtual environment, e.g.: python -m venv /path/to/venv . /path/to/venv/bin/activate pip install mypackage To exit the virtual environment, run: deactivate The virtual environment is not deleted, and can be re-entered by re-sourcing the activate file. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. 2023-03-11 11:33:23.449 ERROR (MainThread) [homeassistant.setup] Setup failed for cast: Requirements for tts not found: ['mutagen==1.46.0']. 2023-03-11 11:33:53.983 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/homeassistant/helpers/discovery_flow.py", line 95, in _async_start await gather_with_concurrency( File "/usr/lib/python3.10/site-packages/homeassistant/util/async_.py", line 178, in gather_with_concurrency return await gather( File "/usr/lib/python3.10/site-packages/homeassistant/util/async_.py", line 176, in sem_task return await task File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 831, in async_init flow, result = await task File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 849, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 955, in async_create_flow await async_process_deps_reqs(self.hass, self._hass_config, integration) File "/usr/lib/python3.10/site-packages/homeassistant/setup.py", line 385, in async_process_deps_reqs await requirements.async_get_integration_with_requirements( File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements return await manager.async_get_integration_with_requirements(domain) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 221, in _async_process_integration raise result File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration await self.async_process_requirements( File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 246, in async_process_requirements self._raise_for_failed_requirements(name, missing) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements raise RequirementsNotFound(integration, [req]) homeassistant.requirements.RequirementsNotFound: Requirements for tts not found: ['mutagen==1.46.0']. ```

Why don't you add tts useflag and let it install mutagen?

Why don't you add tts useflag and let it install mutagen?
onkelbeh reopened this issue 2023-03-12 08:10:09 +01:00

Because I do not use TTS.
It's Google Cast integration that need it apparently.
So I suppose that Cast USE flag require tts USE flag.

Because I do not use TTS. It's Google Cast integration that need it apparently. So I suppose that `Cast` USE flag require `tts` USE flag.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#1245
There is no content yet.