Page 1 of 2

Spotcast

Posted: Sat Sep 26, 2020 8:24 am
by novitibo
Anybody else with Home assistant custom integration Spotcast problem?
https://github.com/fondberg/spotcast

I'm getting error: Requirements for spotcast not found: ['spotify_token==1.0.0'].

Since a lot of users confirms it works, but I don't know on what kind of Home assistant systems are, can someone try and report on Dietpi system?

Tnx!

Re: Spotcast

Posted: Sat Sep 26, 2020 1:12 pm
by Joulinar
Hi,

many thanks for your message. Maybe it's better to raise your question on HA community. I found an extrem long post for Spotcast. There is a user having same error message. But I did not see a solution posted.

https://community.home-assistant.io/t/s ... 114232/419

Re: Spotcast

Posted: Sat Sep 26, 2020 1:22 pm
by novitibo
ok

Re: Spotcast

Posted: Sat Sep 26, 2020 1:30 pm
by Joulinar
Probably you would need to install spotify-token into your HA installation.

I did not tested it myself and I don't know if this is working at all but you could give it a try. To be on save side, just do a dietpi-backup before. This ways you are able to restore in case needed.

Code: Select all

systemctl stop home-assistant
sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install spotify-token
exit
systemctl start home-assistant

Re: Spotcast

Posted: Sat Sep 26, 2020 1:48 pm
by novitibo
Can't wait dietpi-backup to complete to try your solution :P

Re: Spotcast

Posted: Sat Sep 26, 2020 1:50 pm
by Joulinar
well it's just a guess, not sure if this is working at all.

Re: Spotcast

Posted: Sat Sep 26, 2020 1:51 pm
by novitibo
I'll let you and HA community know after success 8)

Re: Spotcast

Posted: Sat Sep 26, 2020 5:21 pm
by novitibo
Report:
After the libxml2 and libxslt development packages also installed (sudo apt-get install libxml2-dev libxslt-dev python-dev), it's working!
:D :) ;) 8)
Tnx for a "spotify-token" tip!

Re: Spotcast

Posted: Sat Sep 26, 2020 7:14 pm
by Joulinar
so basically you installed the spotify-token package via pip3 install as I described above. Plus Debian packages libxml2-dev libxslt-dev python-dev? Hmm strange because HA should have it's own python environment. :?

Re: Spotcast

Posted: Sat Sep 26, 2020 7:34 pm
by novitibo
sorry
python-dev was already installed

only
libxml2-dev libxslt-dev

the spotify-token package installed via pip3 install