!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
16 Dec 2024
@hexa:lossy.network@hexa:lossy.network
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.network@hexa:lossy.network
In reply to @hexa:lossy.network
hm, does it complain for providers you've added declaratively?
?
23:17:53
@hexa:lossy.network@hexa:lossy.networkIf 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.network@hexa:lossy.networkok, so they call uv unconditionally or we're shipping the wrong version23:25:07
@hexa:lossy.network@hexa:lossy.networkdo 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.network@hexa:lossy.networkhttps://github.com/music-assistant/server/blob/c33e766ec4062ac9b812d31968fe3393bada4df6/music_assistant/helpers/util.py#L349-L37123:27:11
@hexa:lossy.network@hexa:lossy.network my dude 23:27:34
@hexa:lossy.network@hexa:lossy.networkwe don't have that dependency23:27:38
@hexa:lossy.network@hexa:lossy.networkyour answers are super inconsistent 😕 23:27:44
@ibizaman:matrix.orgibizamanhttps://github.com/music-assistant/server/blob/c33e766ec4062ac9b812d31968fe3393bada4df6/music_assistant/helpers/util.py#L437-L43823:27:44
@hexa:lossy.network@hexa:lossy.networkgive me the error for an installed provider please23:28:13
@ibizaman:matrix.orgibizaman
In reply to @hexa:lossy.network
your answers are super inconsistent 😕
Sry that's because I'm confused 🙏
23:28:26
@hexa:lossy.network@hexa:lossy.networkand yes, that version check is probably problematic23:28:33
@ibizaman:matrix.orgibizaman
In reply to @hexa:lossy.network
give me the error for an installed provider please

This is what I get from trying to add hass:

Dec 16 23:28:58 baryum mass[1779974]: 2024-12-16 23:28:58.937 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/get_entries: [Errno 2] No such file or directory: 'uv'

But IMO that doesn't help because it doesn't show why it's trzying to call uv

23:30:08
@hexa:lossy.network@hexa:lossy.networkok, but for what dep?23:31:05
@ibizaman:matrix.orgibizaman
In reply to @hexa:lossy.network
ok, but for what dep?

To know that, I hacked by adding uv to the optional-dependencies of music-assistant/package.nix, then it goes one step further and shows this error:

Dec 16 23:33:59 baryum mass[1784227]: 2024-12-16 23:33:59.346 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/get_entries: Failed to install package hass-client==1.2.0
Dec 16 23:33:59 baryum mass[1784227]: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
23:34:19
@hexa:lossy.network@hexa:lossy.networkwe have that exact version on master23:36:33
@hexa:lossy.network@hexa:lossy.networksince 2024-09-0623:36:57
@hexa:lossy.network@hexa:lossy.networkso also on nixos-24.1123:37:03
@ibizaman:matrix.orgibizamanGosh, annoying you for that is embarrassing, to say the least... let me try an update. Btw I am/was on a 1 month old commit.23:39:04
@hexa:lossy.network@hexa:lossy.networkok, version mismatch23:54:28
@hexa:lossy.network@hexa:lossy.networkso now I wonder why23:54:49

Show newer messages


Back to Room ListRoom Version: 6