!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

421 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant117 Servers

Load older messages


SenderMessageTime
16 Dec 2024
@hexa:lossy.networkhexathey use it to install dependencies22:48:46
@ibizaman:matrix.orgibizamanokay so I wasn't too wrong22:49:12
@ibizaman:matrix.orgibizamanimage.png
Download image.png
22:50:09
@ibizaman:matrix.orgibizaman^ This is what I see btw22:50:14
@ibizaman:matrix.orgibizaman * okay so I wasn't too far from the through22:50:40
@ibizaman:matrix.orgibizamanWhat confuses me is that how can the nix package build at all if uv is not installed.22:51:17
@ibizaman:matrix.orgibizaman * okay so I wasn't too far from the truth22:53:22
@ibizaman:matrix.orgibizamanOr does it mean uv is used at runtime?22:58:59
@ibizaman:matrix.orgibizaman

Progress (?) I added uv to music-assistant's optional-dependencies and now trying to add a plugin or provider through the UI fails with:

Failed to install package hass-client==1.2.0
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
23:04:42
@hexa:lossy.networkhexa ^^^^^ 23:05:06
@ibizaman:matrix.orgibizamanAh sorry to make you feel like a broken record but then I'm lost as to how to add those.23:06:58
@ibizaman:matrix.orgibizamanI mean, I have the config above and then, what's the next step to integrate with home assistant?23:07:32
@ibizaman:matrix.orgibizaman * I mean, I have the config above but then, what's the next step to integrate with home assistant?23:07:42
@ibizaman:matrix.orgibizaman * Ah sorry to make you feel like a broken record but then I'm lost as to how to configure those.23:11:56
@ibizaman:matrix.orgibizamanLike how do I add a player if not through the UI?23:12:13
@hexa:lossy.networkhexaIt should work for the ones specified except for sonos for which we are lacking a dependency23:16:09
@hexa:lossy.networkhexa
In reply to @ibizaman:matrix.org

That difference didn't occur to me at all. I have this currently, let me try adding hass:

  services.music-assistant = {
    enable = true;
    providers = [
      "airplay"
      "jellyfin"
      "radiobrowser"
      "sonos"
      "spotify"
    ];
  };
No homeassistant provider specified
23:16:59
@ibizaman:matrix.orgibizaman
In reply to @hexa:lossy.network
No homeassistant provider specified

Have this now

  services.music-assistant = {
    enable = true;
    providers = [
      "airplay"
      "hass"
      "hass_players"
      "jellyfin"
      "radiobrowser"
      "sonos"
      "spotify"
    ];
  };

23:17:29
@hexa:lossy.networkhexa
In reply to @hexa:lossy.network
hm, does it complain for providers you've added declaratively?
?
23:17:53
@hexa:lossy.networkhexaIf it complains for all providers we might need to patch that out23:18:21
@ibizaman:matrix.orgibizamanOkay so just to be sure I get this right. The expected steps are: add the providers declaratively like I did in the UI, add the provider right?23:19:38
@ibizaman:matrix.orgibizaman * Okay so just to be sure I get this right. The expected steps are: add the providers declaratively like I did in the UI, add the player provider right?23:19:59
@ibizaman:matrix.orgibizamanWith the setup above, I try to add the home assistant player provider and then get a popup telling me I need to install the home assistant plugin first. And when I try that I get the uv issue.23:20:40
@hexa:lossy.networkhexaok, so they call uv unconditionally or we're shipping the wrong version23:25:07
@hexa:lossy.networkhexado you have a call trace in your journal?23:25:21
@ibizaman:matrix.orgibizaman

It's lines like this for everything I try:

Dec 16 23:22:47 baryum mass[1777768]: 2024-12-16 23:22:47.644 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/get_entries: Failed to install package deezer-python-async==0.3.0
Dec 16 23:22:47 baryum mass[1777768]: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
23:26:05
@ibizaman:matrix.orgibizamanThe only providers that succeeded are the filesystem local and remote and the jellyfin music providers.23:26:31
@ibizaman:matrix.orgibizamanAnd the spotify one.23:26:44
@ibizaman:matrix.orgibizamanI suppose this hints to a wrong version.23:27:07
@hexa:lossy.networkhexahttps://github.com/music-assistant/server/blob/c33e766ec4062ac9b812d31968fe3393bada4df6/music_assistant/helpers/util.py#L349-L37123:27:11

Show newer messages


Back to Room ListRoom Version: 6