Hexxeh / spotify-websocket-api

Spotify Websocket API is a fully open source Spotify library based on the WebSocket API used in the Spotify Web beta
395 stars 67 forks source link

Problem with authenticating to run test.py, but blocker.py works? #55

Open niftylettuce opened 10 years ago

niftylettuce commented 10 years ago

I get the following error when I run:

USERNAME=myusername PASSWORD=mypassword python test.py

Output:

[ERROR] There was a problem authenticating, authentication failed
Login failed
E[ERROR] There was a problem authenticating, authentication failed
Login failed
E
======================================================================
ERROR: test_get_track_by_uri (__main__.SpotifyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 36, in test_get_track_by_uri
    self.assertEqual(reference["title"], track.getName())
AttributeError: 'bool' object has no attribute 'getName'

======================================================================
ERROR: test_playlist_add_delete (__main__.SpotifyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 42, in test_playlist_add_delete
    before = len(self.spotify.getPlaylists())
  File "/media/nexus/Data/Public/test-project/python/spotify-websocket-api/spotify_web/friendly.py", line 42, in __call__
    res = cache[key] = self.func(*args, **kw)
  File "/media/nexus/Data/Public/test-project/python/spotify-websocket-api/spotify_web/friendly.py", line 449, in getPlaylists
    playlist_uris += ["spotify:user:"+username+":starred"]
TypeError: cannot concatenate 'str' and 'NoneType' objects

----------------------------------------------------------------------
Ran 2 tests in 2.921s

FAILED (errors=2)

However I can run blocker just fine...

cd examples
python blocking.py myusername mypassword track

Output:

Cross the Line
niftylettuce commented 10 years ago

Is this somehow related to https://github.com/TooTallNate/node-spotify-web/pull/85? Any insight as to why that issue on the node project isn't working?

niftylettuce commented 10 years ago

/cc @Hexxeh