DanNixon / PlayMusicCL

A command line client for Google Play Music
Apache License 2.0
135 stars 21 forks source link

TypeError: login() takes exactly 3 arguments (4 given) #27

Closed lpar closed 9 years ago

lpar commented 9 years ago

Reinstalled from current HEAD via python setup.py install:

% playmusiccl
Logging in to Google Play Music...
Traceback (most recent call last):
  File "/usr/local/bin/playmusiccl", line 9, in <module>
    load_entry_point('playmusiccl==0.6.1', 'console_scripts', 'playmusiccl')()
  File "/usr/local/lib/python2.7/dist-packages/playmusiccl-0.6.1-py2.7.egg/playmusiccl/__init__.py", line 7, in run
    main()
  File "/usr/local/lib/python2.7/dist-packages/playmusiccl-0.6.1-py2.7.egg/playmusiccl/playmusiccl.py", line 858, in main
    config.get("google_deviceid"))
  File "/usr/local/lib/python2.7/dist-packages/playmusiccl-0.6.1-py2.7.egg/playmusiccl/playmusiccl.py", line 61, in __init__
    self.logged_in = self.__api.login(email, password, device_id)
TypeError: login() takes exactly 3 arguments (4 given)

Config is the same as when I previously installed via pip, which got past this point.

DanNixon commented 9 years ago

Can you try running pip install --update gmusicapi.

lpar commented 9 years ago

It didn't seem to understand any kind of update command or option. But I removed gmusicapi* from /usr/local/lib/python, ran setup.py install again, and now I get further. Thanks.

DanNixon commented 9 years ago

My mistake, the flag is actually --upgrade.

lpar commented 9 years ago

And unfortunately it's not mentioned in the setup.py help for the install command, which I did check, or in the top level help.