Mopidy Gmusic edit

Hello,

I managed to install everything I wanted on my raspberry Pi so it’s now a great music server. But … I noticed that gmusic extension doesn’t list all the albums I have on the g account, and this is a known bug ( https://github.com/mopidy/mopidy-gmusic/issues/63 ). I tried to edit the library.py in the /usr/local/lib/python2.7/dist-packages/mopidy_gmusic but it didn’t change anything. What’s the right way to edit an already installed extension ? Have I to recompileit ? How ? ( I’m a novice of python )

Thank you

EDIT

It was an indentation error, but now I get this:

ERROR Unhandled exception in GMusicBackend (urn:uuid:23a36d20-551d-45c3-b0a7-982f5c87911c): Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 192, in _actor_loop self.on_start() File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/actor.py", line 51, in on_start self.config['gmusic']['deviceid']) File "/usr/local/lib/python2.7/dist-packages/mopidy_gmusic/session.py", line 60, in login authenticated = self.api.login(username, password, device_id) File "/usr/local/lib/python2.7/dist-packages/gmusicapi/clients/mobileclient.py", line 64, in login if not self.session.login(email, password, android_id): File "/usr/local/lib/python2.7/dist-packages/gmusicapi/session.py", line 170, in login res = gpsoauth.perform_master_login(email, password, android_id) File "/usr/local/lib/python2.7/dist-packages/gpsoauth/__init__.py", line 66, in perform_master_login return _perform_auth_request(data) File "/usr/local/lib/python2.7/dist-packages/gpsoauth/__init__.py", line 22, in _perform_auth_request headers={'User-Agent': useragent}) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 107, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 53, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 447, in send raise SSLError(e, request=request) SSLError: bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],) INFO Loaded 675 local tracks using json ERROR Actor died: GMusicBackend (urn:uuid:23a36d20-551d-45c3-b0a7-982f5c87911c) not found

After editing that file, you’ll have to restart Mopidy for the change to
take effect. No compilation needed.

I reply to myself

it’s a known issue of gmusic extensione, to fix it you have to define a env var for requests

export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

bye