mopidy/mopidy — Issue #138: SpotifyError: No credentials stored
Author: jodal
Created: 2011-11-01 18:25:42+00:00
State: open
Labels: backend-spotify, bugs

Using pyspotify 1.5 and libspotify 10.1.16 I get the following error maybe every third time I start Mopidy:

```
INFO 2011-11-01 19:21:12,147 [25394:MainThread] mopidy.utils.log
Starting Mopidy 0.6.0-17-gf8ac134 on Linux-2.6.38-11-generic-x86_64-with-Ubuntu-11.04-natty CPython 2.7.1+
DEBUG 2011-11-01 19:21:12,148 [25394:PykkaActorThread-1] mopidy.gstreamer
Setting up base GStreamer pipeline: uridecodebin name=uri ! audioconvert name=convert ! volume name=volume ! tee name=tee
DEBUG 2011-11-01 19:21:12,148 [25394:MainThread] mopidy.utils
Loading: mopidy.mixers.gstreamer_software.GStreamerSoftwareMixer
DEBUG 2011-11-01 19:21:12,150 [25394:MainThread] mopidy.utils
Loading: mopidy.backends.spotify.SpotifyBackend
INFO 2011-11-01 19:21:12,156 [25394:PykkaActorThread-3] mopidy.backends.spotify
Mopidy uses SPOTIFY(R) CORE
DEBUG 2011-11-01 19:21:12,156 [25394:MainThread] mopidy.utils
Loading: mopidy.frontends.mpd.MpdFrontend
DEBUG 2011-11-01 19:21:12,164 [25394:PykkaActorThread-1] mopidy.utils
Loading: mopidy.outputs.local.LocalOutput
DEBUG 2011-11-01 19:21:12,165 [25394:PykkaActorThread-3] mopidy.backends.spotify
Connecting to Spotify
DEBUG 2011-11-01 19:21:12,177 [25394:PykkaActorThread-1] mopidy.outputs
Creating new output: queue ! autoaudiosink
DEBUG 2011-11-01 19:21:12,183 [25394:SpotifyThread] mopidy.utils.process
SpotifyThread: Starting thread
INFO 2011-11-01 19:21:12,184 [25394:MainThread] mopidy.frontends.mpd
MPD server running at [::]:6600
ERROR 2011-11-01 19:21:12,184 [25394:SpotifyThread] mopidy.utils.process
No credentials stored
Traceback (most recent call last):
File "/home/jodal/dev/mopidy/mopidy/utils/process.py", line 53, in run
self.run_inside_try()
File "/home/jodal/dev/mopidy/mopidy/backends/spotify/session_manager.py", line 48, in run_inside_try
self.connect()
File "/usr/lib/pymodules/python2.7/spotify/manager/session.py", line 35, in connect
session = spotify.connect(self)
SpotifyError: No credentials stored
```