alexmohr / media_player.sony

Custom component for Home Assistant to control Sony devices
Apache License 2.0
16 stars 8 forks source link

Platform error media_player.sony - No module named 'sonyapilib' #25

Closed rosch100 closed 3 years ago

rosch100 commented 3 years ago

After installing the extension as described, the extension does not start and reports the error: Platform error media_player.sony - No module named 'sonyapilib' The missing library must obviously installed - but how?

alexmohr commented 3 years ago

Please post the used home assistant version the library should be installed automatically

alexmohr commented 3 years ago

Also please let me know if the supervised version of home assistant is used

rosch100 commented 3 years ago

Hi @alexmohr, I'm using Home Assistant 2020.12.1; running on Home Assistant OS 5.9. (I'm not sure, what a supervised version is?)

alexmohr commented 3 years ago

Home assistant os provides the supervised version. Did you install it according to the readme and copied the whole repository?

put the contents of this repo into /usr/share/hassio/homeassistant/

rosch100 commented 3 years ago

I copied the whole repo into custom_components. However, in my home assistant installation, there is currently no directory /usr/share/hassio. Is it necessary to create the directory /usr/share/hassio? This seems not to be right...

alexmohr commented 3 years ago

It's been a while since I wrote the documentation probably things have changed by now. I'll take a look into it.

rosch100 commented 3 years ago

After the installation, a simple "Home assistant restart" did not work. It showed the error message above. However, a complete reboot of the raspi did the trick. Now it's working.

By the way - changed the installation to HACS, which works as expected.