16 Dec 2024 |
hexa | they use it to install dependencies | 22:48:46 |
ibizaman | okay so I wasn't too wrong | 22:49:12 |
ibizaman | Download image.png | 22:50:09 |
ibizaman | ^ This is what I see btw | 22:50:14 |
ibizaman | * okay so I wasn't too far from the through | 22:50:40 |
ibizaman | What confuses me is that how can the nix package build at all if uv is not installed. | 22:51:17 |
ibizaman | * okay so I wasn't too far from the truth | 22:53:22 |
ibizaman | Or does it mean uv is used at runtime? | 22:58:59 |
ibizaman | 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 | ^^^^^ | 23:05:06 |
ibizaman | Ah sorry to make you feel like a broken record but then I'm lost as to how to add those. | 23:06:58 |
ibizaman | I mean, I have the config above and then, what's the next step to integrate with home assistant? | 23:07:32 |
ibizaman | * I mean, I have the config above but then, what's the next step to integrate with home assistant? | 23:07:42 |
ibizaman | * 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 | Like how do I add a player if not through the UI? | 23:12:13 |
hexa | It should work for the ones specified except for sonos for which we are lacking a dependency | 23:16:09 |
hexa | 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 | 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 | In reply to @hexa:lossy.network hm, does it complain for providers you've added declaratively? ? | 23:17:53 |
hexa | If it complains for all providers we might need to patch that out | 23:18:21 |
ibizaman | 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 provider
right? | 23:19:38 |
ibizaman | * 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 | With 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 | ok, so they call uv unconditionally or we're shipping the wrong version | 23:25:07 |
hexa | do you have a call trace in your journal? | 23:25:21 |
ibizaman | 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 | The only providers that succeeded are the filesystem local and remote and the jellyfin music providers. | 23:26:31 |
ibizaman | And the spotify one. | 23:26:44 |
ibizaman | I suppose this hints to a wrong version. | 23:27:07 |
hexa | https://github.com/music-assistant/server/blob/c33e766ec4062ac9b812d31968fe3393bada4df6/music_assistant/helpers/util.py#L349-L371 | 23:27:11 |