hechtus / squeezebox-googlemusic

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

Arch Linux ARM: Plugin Failed to Load #59

Closed Riddlr closed 10 years ago

Riddlr commented 10 years ago

Hi there,

Followed all the instructions, but I am seeing the following in the LMS log:

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. {... the same errors other show when plugin fails ...}

I should mention that I have Python 3.X on my system and needed to run 2.7 to run:

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

I did this by switching environments using virtualenv:

virtualenv -p /usr/bin/python2.7 --distribute temp-python source temp-python/bin/activate pip install git+https://github.com/simon-weber/Unofficial-Google-Music-API.git@develop deactivate

Also, I should mention I needed to specify the full path to cpanm in the following statement: ARCHFLAGS="-arch i386 -arch x86_64" cpanm --notest Inline

Any clue as to what might be the issue? One thing I was thinking is that arch creates a symlink to python3 for /usr/bin/python

Thanks,

L.

hechtus commented 10 years ago

I must admit, that I've absolutely no experience with Arch Linux. First of all, you should check whether your Python gmusicapi is working. You could try to run this script:

https://github.com/hechtus/squeezebox-googlemusic/blob/master/mobile_devices.py

Riddlr commented 10 years ago

Thanks for the tip - turns out I just updated my symlink to point to Python2 instead of 3, re-installed google music api and it now loads. New issue is that I am not getting any sound...

Riddlr commented 10 years ago

Issue #43 fixed it by adding the https to the protocol list