Spotcast Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Spotcast

Post 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!
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Spotcast

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Re: Spotcast

Post by novitibo »

ok
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Spotcast

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Re: Spotcast

Post by novitibo »

Can't wait dietpi-backup to complete to try your solution :P
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Spotcast

Post by Joulinar »

well it's just a guess, not sure if this is working at all.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Re: Spotcast

Post by novitibo »

I'll let you and HA community know after success 8)
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Re: Spotcast

Post 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!
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Spotcast

Post 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. :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 87
Joined: Mon Feb 29, 2016 5:11 pm

Re: Spotcast

Post by novitibo »

sorry
python-dev was already installed

only
libxml2-dev libxslt-dev

the spotify-token package installed via pip3 install
Post Reply