| 16 Dec 2024 |
netpleb | Ok, that was my plan. Was mostly just not sure if this is a common thing people run into and whether there is a well known way to resolve it (other than "just trying it" on nixos-unstable and seeing if it works :-) ) | 22:31:14 |
netpleb | Anyway, yes, it looks like the commit in question is in the git history...so I will upgrade back to nixos-unstable. Thanks again for getting all this frigate/hass stuff working! I will surely have more questions :) | 22:33:23 |
ibizaman | Hi 👋 I installed music assistant and wanted to add the home assistant plugin at /settings/addprovider/hass but got [Errno 2] No such file or directory: 'uv'. I'm happy to put up a PR for fixing this but I'm not sure where to start. I tried to looks at the different music-assistant related packages in nixpkgs and sprinkle some uv python package here and there but without result. Same for adding the Sonos player provider. I'm on nixpkgs 22c3f2cf41a0e70184334a958e6b124fb0ce3e01 FWIW | 22:33:45 |
@hexa:lossy.network | hm, does it complain for providers you've added declaratively? | 22:34:48 |
@hexa:lossy.network | same as with home-assistant, you can | 22:35:14 |
@hexa:lossy.network | * same as with home-assistant, you can't install dependencies interactively | 22:35:25 |
ibizaman | 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"
];
};
| 22:40:41 |
@hexa:lossy.network | we might be lacking deps for some oft hose | 22:46:06 |
@hexa:lossy.network | * we might be lacking deps for some of those | 22:46:08 |
@hexa:lossy.network | sonos = ps: [
]; # missing aiosonos
| 22:46:55 |
@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 |