02strich / python-pandora

Python library for talking to pandora.com
24 stars 15 forks source link

ValueError: 9: An unexpected error occurred #14

Closed s4w3d0ff closed 9 years ago

s4w3d0ff commented 9 years ago
>>> box = pandora.pandora.Pandora()
>>> box.user = 'myemail@email.com'
>>> box.update_station_list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pandora/pandora.py", line 10, in check_authentication
    return f(self, *args)
  File "pandora/pandora.py", line 35, in update_station_list
    self.stations = self.connection.get_stations(self.user)
  File "pandora/connection.py", line 63, in get_stations
    return self.do_request('user.getStationList', False, True, user)['stations']
  File "pandora/connection.py", line 130, in do_request
    raise ValueError("%d: %s" % (code, msg))
ValueError: 9: An unexpected error occurred
>>> box.user = None
>>> box.update_station_list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pandora/pandora.py", line 9, in check_authentication
    raise ValueError("User not yet authenticated")
ValueError: User not yet authenticated
>>> 

I don't quite understand how this module works. And I can't seem to find the documentation so I have been attempting to read the model source but obviously failing.

Do I need to specify a "box.password"?

02strich commented 9 years ago

Hey,

thanks for looking into this. Please have a look at https://github.com/02strich/python-pandora/blob/master/pandora/__main__.py for details on how to use it.

s4w3d0ff commented 9 years ago

That helps thank you