bjarneo / Pytify

A CLI application for controlling Spotify
MIT License
743 stars 40 forks source link

Some errors occured. Try restart or start Spotify. #40

Closed baif666 closed 7 years ago

baif666 commented 7 years ago

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.

bjarneo commented 7 years ago

Do you have spotify running in the background?

bjarneo commented 7 years ago

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

bjarneo commented 7 years ago

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.

baif666 commented 7 years ago

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

bjarneo commented 7 years ago

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/

bjarneo commented 7 years ago

@baif666 Did you manage to get it work?

baif666 commented 7 years ago

@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.