| 16 Dec 2024 |
@hexa:lossy.network | ]; # missing pywidevine
]; # missing deezer-python-async
]; # missing sxm
]; # missing aiosonos
]; # missing soundcloudpy
]; # missing yt-dlp-youtube-accesstoken
| 22:47:19 |
@hexa:lossy.network | these are the missing ones | 22:47:26 |
ibizaman | Ah I actually saw that but the Sonos and hass failed for me on this uv library that's missing. From looking at the music assistant I thought this was some build time library so I was confused. | 22:48:24 |
@hexa:lossy.network | uv is like pip | 22:48:42 |
@hexa:lossy.network | 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:lossy.network | ^^^^^ | 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:lossy.network | It should work for the ones specified except for sonos for which we are lacking a dependency | 23:16:09 |
@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 | 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 | In reply to @hexa:lossy.network hm, does it complain for providers you've added declaratively? ? | 23:17:53 |
@hexa:lossy.network | 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:lossy.network | ok, so they call uv unconditionally or we're shipping the wrong version | 23:25:07 |
@hexa:lossy.network | 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 |