Add support for running MA on FreeBSD/TrueNAS
See original GitHub issueWhat version of Music Assistant has the issue?
2022.6.4
The problem
When adding the Music Assistant integration into HA for the first time and adding my Spotify credentials, the following error is raised in the Integrations Screen of the WebUI:
“Retrying setup: Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD”
Is there a dependency on Libespot that requires installation which isn’t outlined in the documentation? 😃
How to reproduce
Install Music Assistant on HA Core on a FreeBSD system with the Spotify option included
Relevant log output
`2022-06-21 15:54:31 ERROR (MainThread) [custom_components.mass] Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD Traceback (most recent call last): File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/controllers/music/init.py”, line 372, in _register_provider if await provider.setup(): File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 71, in setup token = await self.get_token() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 485, in get_token tokeninfo = await asyncio.wait_for(self._get_token(), 5) File “/usr/local/lib/python3.9/asyncio/tasks.py”, line 479, in wait_for return fut.result() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 511, in _get_token await self.get_librespot_binary(), File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/music_providers/spotify.py”, line 717, in get_librespot_binary raise RuntimeError( RuntimeError: Unable to locate Libespot for platform FreeBSD
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “/home/homeassistant/homeassistant/custom_components/mass/init.py”, line 106, in async_setup_entry await mass.setup() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/mass.py”, line 84, in setup await self.music.setup() File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/controllers/music/init.py”, line 62, in setup await self._register_provider(prov_cls(self.mass, prov_conf), prov_conf) File “/usr/local/share/homeassistant/lib/python3.9/site-packages/music_assistant/controllers/music/init.py”, line 375, in _register_provider raise SetupFailedError( music_assistant.models.errors.SetupFailedError: Setup failed of provider spotify: Unable to locate Libespot for platform FreeBSD`
Additional information
No response
What version of Home Assistant Core are your running
2022.6.6
What type of installation are you running?
Home Assistant Core
Issue Analytics
- State:
- Created a year ago
- Comments:18 (10 by maintainers)
Top GitHub Comments
@marcelveldt if you navigate to the “Plugins” page on TrueNAS you’ll be able to get a HA jail up and running with only a couple of clicks 😊
Leave here for now, maybe there is an easy fix. I will check. if it’s not an easy fix, it should be a feature request.