Mycroft-spotify not working, has no len


#1

Anything I try to play on Spotify doesn’t work (albums, playlists, songs, etc). Everytime I get this error in the console:

SpotifySkill - ERROR - object of type ‘NoneType’ has no len()

The only thing I can figure out is that Mycroft is not showing up as a device in Spotify. I have installed raspotify as well, but that didn’t change anything.


#2

Well, I’m not sure what the answer was, but I did get it working. I had to make sure raspotify had my login credentials in /etc/default/raspotify, and make sure raspotify was starting at boot. That let me see Mycroft from a Spotify client, but I would still get the same error when I told Mycroft to play.

But going to the skills settings and typing Mycroft as the Spotify device has seemed to work. It is not successfully finding anything to play when left as default.


#3

Hi there,

Thanks for letting us know how you got it working.

Can I check, you had already authenticated with Spotify through home.mycroft.ai but then manually added your credentials to raspotify as well?


#4

Yes, I first registered everything on home.mycroft.ai, then used the link from there to give mycroft permission on Spotify’s side. When that wasn’t working I installed raspotify and still no luck (although in retrospect it’s possible I didn’t have the service running?) and so I entered my credentials in raspotify’s config. Still nothing until I changed away from leaving default as the output on home.mycroft.ai. The console was spitting out a fair number of references to null this and that, so my guess was the last thing was the problem.