hechtus / squeezebox-googlemusic

Squeezebox (Logitech Media Server) Plugin for Google Play Music
103 stars 24 forks source link

Can';t load plugin #61

Open smika opened 9 years ago

smika commented 9 years ago

After following the 6 steps instructions for the Linux envoiremnet, I've got the follwoing error message in the server.log:

[14-12-15 01:10:59.4612] main::init (368) Starting Logitech Media Server (v7.8.0, 1395409907, Thu Mar 27 13:31:59 PDT 2014) perl 5.020001 [14-12-15 01:11:02.7805] Slim::bootstrap::tryModuleLoad (285) Warning: Module [Plugins::GoogleMusic::Plugin] failed to load: Error -- py_eval raised an exception at /usr/lib/perl5/site_perl/Inline/Python.pm line 177. BEGIN failed--compilation aborted at /opt/logitechmediaserver/cache/InstalledPlugins/Plugins/GoogleMusic/GoogleAPI.pm line 74. Compilation failed in require at /opt/logitechmediaserver/cache/InstalledPlugins/Plugins/GoogleMusic/Settings.pm line 20. BEGIN failed--compilation aborted at /opt/logitechmediaserver/cache/InstalledPlugins/Plugins/GoogleMusic/Settings.pm line 20. Compilation failed in require at /opt/logitechmediaserver/cache/InstalledPlugins/Plugins/GoogleMusic/Plugin.pm line 24. BEGIN failed--compilation aborted at /opt/logitechmediaserver/cache/InstalledPlugins/Plugins/GoogleMusic/Plugin.pm line 24. Compilation failed in require at (eval 829) line 1. BEGIN failed--compilation aborted at (eval 829) line 1.

[14-12-15 01:11:02.7993] Slim::Utils::PluginManager::load (321) Error: Couldn't load Plugins::GoogleMusic::Plugin

Hopefully there is an sollution for this error. I am using archlinux arm v7.

hechtus commented 9 years ago

Could you please check that this script: https://raw.githubusercontent.com/hechtus/squeezebox-googlemusic/master/mobile_devices.py is working correctly?

smika commented 9 years ago

I got the follwing return:

[root@cubox ~]# ./mobile_devices.py username password Google Play Music for Chrome on Linux | None | DESKTOP_APP | f19e36f8f1078112ee4edc2bd758525e6ed1f891875b10d9490a2d445258c644

hechtus commented 9 years ago

So, it seems that you don't have an Android or iOS device registered for Google Play Music. You will definitely need to register a mobile device to get the plugin working.

shred commented 9 years ago

I found this issue because I had a similar error when starting up squeezebox server. I had the googlemusic plugin running before, but it failed after a computer restart. I could resolve it by updating the gmusicapi library:

pip install --upgrade git+https://github.com/simon-weber/Unofficial-Google-Music-API.git@develop

Maybe this is helpful for other people.