bjarneo/Pytify

Some errors occured. Try restart or start Spotify.

baif666 opened this issue · 7 comments

When I run pytify in CLI:


$ pytify

Some errors occured. Try restart or start Spotify. 

I install following the tutorial and I did it in Mint, python3.4.3
I don't know what happened, and I will try to fix it myself if there are more information.

Do you have spotify running in the background?

Try to print the exception at line 18 in this file: pytify/dbus/interface.py

The only reason you get this error message is if Spotify is not running on your computer. It checks if spotify exists at MediaPlayer2 in the dbus object, if not it throws an exception, and we quite the application with that message.

I saw it, so this message means I don't have Spotify running in the background. But how do I set up it?

That's correct. Then you just need to start Spotify. Pytify is just a cli application which controls Spotify.

https://www.spotify.com/no/download/linux/

@baif666 Did you manage to get it work?

@bjarneo Yeah, Pytify works well after I installed and started Spotify. Thanks. But I think you can improve your error message. For example, "Some errors occured. Try restart or start Spotify. Pytify is just a cli application which controls Spotify. So you can't use Pytify without Spotify." If I find a new issue, I'll report it.
Thanks for your contribution.