Closed p15i closed 4 years ago
My guess is that the version 10.1 of gmusicapi that mopidy-gmusic uses is simply too outdated. There have been several authentication-related updates in gmusicapi since then.
Oof, I didn't realize they had deprecated password login. That's a bigger change than I'd like, but I'll see what I can do... I'm going to have quite a few unhappy people here when that finally gets pushed.
I've updated this to use the oauth flow and a newer version of gmusicapi. Can you try with the current master branch and let me know if it works for you?
Thanks @belak! Even if I'm not the OP I'm willing to give it a try. As I'm not a Python person, could you maybe add instructions to the README's "Installation" section on how to install this package form source instead of from PyPI?
Hi @belak, have you considered implementing the initial auth process using Mopidy's Command
API (https://docs.mopidy.com/en/latest/extensiondev/#example-command)?
@kingosticks I honestly didn't know that was a thing. I'll have to take a look when I have more time.
The fix is working well here! At first I missed the need to add the 2nd key to my config file, but I figured it out when it kept failing to start (maybe that could be highlighted somehow?).
The fix works for me too. I've also added a PR which uses Mopidy's command API for the initial auth process: #221
I think this can be closed now that #221 has been merged.
I've just installed Mopidy on my Raspeberry Pi (v2 Model B), running Raspbian Stretch Lite (v. Nov 2018).
I installed and configured the Mopidy-GMusic plugin and tried to run Mopidy as a service, but I see the following errors in the log file:
The line with the error is:
My config file is:
Mopidy was installed via apt-get after adding the repository, and the Mopidy-GMusic plugin was installed using pip.
I received an email that there was a new sign-in to my account from a new Android device, so clearly the authentication is at least partially working.
I've also enabled less secure logins for my google account to see if that was the problem, but it's not making a difference. There's no 2FA enabled for this account either.
Any ideas as to what could be happening? Is there any other info or file that I can provide which would help?