[SOLVED] Unable to get Google music (gmusicapi) working. - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] Unable to get Google music (gmusicapi) working. (/showthread.php?tid=2214) |
Unable to get Google music (gmusicapi) working. - JeffD - 02-25-2020 Hey all, new user here and I'm sure like a lot of you it only took a few minutes of using moOde to decide this is the music app for me. Big thanks to all involved!! I hope to get Google music streaming directly from moOde (not via bluetooth) and believe that installing/configuring gmusicapi is the way to get there. I have gmusicapi installed however am not seeing any difference on any of the moOde config screens. As root, I installed gmusicapi with the following command (pip3 install gmusicapi), I used pip3 as gmusicapi no longer supports python2: Code: root@moode:~# pip3 show gmusicapi I have a populated gmusicapi directory: Code: root@moode:~# ls -ld /usr/local/lib/python3.7/dist-packages/gmusicapi I have rebooted the OS several times since the gmusicapi installation and still no difference in the moOde config screens. I am not seeing the reference to Google music as shown in the first screenshot in this thread: http://moodeaudio.org/forum/showthread.php?tid=729 What am I missing or needing to do? Below is some additional info on my install, also I have not patched the OS this was a fresh install of the most recent moOde image. I do see "Google Play music service" listed in the output of moodeutil -a but only checked it after installing so I do not know if it was there before. Code: pi@moode:~ $ moodeutl -a RE: Unable to get Google music (gmusicapi) working. - TheOldPresbyope - 02-26-2020 @JeffD Thanks for catching the Python2 vs Python3 thing. I just checked the gmusicapi site: Quote:Status and Updates: Building it now so I can dig into your issue. Regards, Kent RE: Unable to get Google music (gmusicapi) working. - TheOldPresbyope - 02-26-2020 @JeffD Temp fix: In /var/www/upp-config.php, lines 73-75 currently read Code: // GOOGLE MUSIC Edit that third line to read ".../python3.7/..." instead of ".../python2.7/..." and reboot (probably not absolutely necessary but it's good to start with a clean slate). Now you'll see the Google Play section in UPnP Config you expect. True confession: I played with Google Music in the past but haven't been using it in some time. I'll have to dig up my credentials before I can make sure this API still works with moOde 6.4.2. Regards, Kent RE: Unable to get Google music (gmusicapi) working. - JeffD - 02-26-2020 Thanks for the tip. After making the modification I did see the login/passwd etc under UPnP. I was able to get things working, I think. It appears that the native Google Music app (on Android and macOS) is unable to control the render. I installed BubbleUPnP on Android and am somewhat able to get Google music working, I can play playlists and stuff in my library through BubbleUPnP but cant seem to do anything for getting new music using it, it appears that it would have to be done through the Google Music app saved and then refreshed on BubbleUPnp... not very seamless. My understanding was that BubbleUPnP would add the "Moode UPNP" renderer in the Google Music app and I could select it as a device to "cast to", apparently Google no longer allows this. As a solution I signed up for a Spotify trial account and have that working. I'll likely end up switching from Google Music and seeing if I can get moode-spotify-connect-web working. Please let me know if I am totaling missing something with how Google Music is/does work with MoOde. Thanks alot, JeffD RE: Unable to get Google music (gmusicapi) working. - jonners - 02-26-2020 I remember having that issue with Google Music/Bubble when I used it a while ago. Bubble had to keep loading the library afresh and it got a bit tedious. RE: Unable to get Google music (gmusicapi) working. - TheOldPresbyope - 02-26-2020 @JeffD Thanks for confirming that the GPM login process works with this fix. Looking back through my notes, I finally remembered I cancelled my Google Play Music subscription last summer because I wasn't using it enough to justify the monthly fee. For some years now, we've been told again and again that GPM is going to be retired in favor of YouTube Music. Last year, Google was saying "by the end of 2019". Obviously that still hasn't happened but the uncertainty leaves me not wanting to start up my subscription again. Perhaps some other user who is using moOde's gmusicapi feature can comment on your findings about its current functionality. [added as I type: I see @jonners already has.] AFAIK, there's no published API for YourTube Music [1], despite repeated pleas on its forum and elsewhere, nor yet any reverse-engineered implementation of it. Unless and until that happens, moOde and other opensource players will be left out in the cold when the switch-over actually occurs. Regards, Kent [1] - note that YouTube and YouTube Music are two different animals. RE: Unable to get Google music (gmusicapi) working. - LaserGecko - 04-25-2020 I had to use this to get it to install, even after upgrading (so I thought) python. It was a fresh install from the current image. sudo pip3 install gmusicapi Not much hassle in the daylight, but last night, well.... Thanks to JeffD for posting it! moOde release = 6.5.0 2020-04-24 Raspbian OS = 10.3 Linux kernel = 4.19.115-v7+ #1305 Platform = Pi-3B 1GB v1.2 It would be great if the Info text was updated to reflect the above command or the python version in the image was changed. RE: Unable to get Google music (gmusicapi) working. - TheOldPresbyope - 04-25-2020 (04-25-2020, 07:17 PM)LaserGecko Wrote: I had to use this to get it to install, even after upgrading (so I thought) python. It was a fresh install from the current image. Yup. This is an artifact of Raspbian being shipped with both Python 2 and Python 3 binaries and libraries, with /usr/bin/python linked to the latest Python 2.7.16 binary. I guess they do this because so many users' scripts would break if they changed it to link to the Python 3.7.3 binary. The same holds for pip and pip3. I agree that the Info text should be updated. You can always change the link yourself, or learn how to use the "update-alternatives" command. Regards, Kent RE: Unable to get Google music (gmusicapi) working. - LaserGecko - 04-26-2020 Thanks, Kent. I still have to "hunt and peck and ask" in Linux to find what I need to do. Odd thing. I made the change you mentioned above, but it still gave the same error when I tried to install it. |