Open grimm26 opened 4 years ago
I finally got tuijam installed correctly and have run into this issue as well on ubuntu 20.04. Looks like an issue with gmusicapi.
@grimm26 @silentjay Could you install the player from source? I have a suspicion that we should bump gmusicapi
dependency.
So, if you could, please change the line gmusicapi>=12.0.0
to gmusicapi>=13.0.0
in requirements.txt
and install TUIJam in venv/pipenv (you may just run setup.py
, but I wouldn't recommend it as easy_install contaminates local site-packages
)
@t1meshift done, still getting the same error with gmusicapi 13.0.0 installed. Looks like an old issue which isn't going to be fixed https://github.com/simon-weber/gmusicapi/issues/655. I assume me and @grimm26 are using NICs which aren't playing ball with gmusicapi.
Any chance tuijam could have an option to manually pass the mac address or android_id to gmusicapi? https://unofficial-google-music-api.readthedocs.io/en/latest/reference/musicmanager.html#gmusicapi.clients.Musicmanager.login
It should be pretty straight forward to support an optional MAC from the config file. In earlier versions, tuijam
would query gmusicapi for an android id and use that, but it was simpler to just use the MAC address under the assumption that it would always work. Obviously, this is not the case. A more robust solution may look like:
If anyone wants a hacky way to get tuijam running around this issue:
change line 123 in /home/YOUR_USER/.local/lib/python3.8/site-packages/gmusicapi/clients/mobileclient.py
mac_int = getmac()
to
mac_int = <YOUR_MAC_AS_INTEGER>
yeah nasty, but I wasn't prepared to let a google play music browser tab to continue to steal 500mb of ram anymore.
I got my google play music auth code but then tuijam fails with this error:
I'm running python 3.7.5