Im trying to get the Google Music Add-on running.
Im unable to play any song at all.
The problem lies within the script.module.requests add-on. Here is the important part of my kodi.log
Python
16:31:09 T:545953046752 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.LookupError'>
Error Contents: no codec search functions registered: can't find encoding
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/default.py", line 13, in <module>
GoogleMusicPlaySong.GoogleMusicPlaySong().play(params)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicPlaySong.py", line 13, in play
params = self.__getSongStreamUrl(song_id, params)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicPlaySong.py", line 65, in __getSongStreamUrl
params['url'] = self.api.getSongStreamUrl(song_id, session_token=params.pop('sessiontoken',None), wentry_id=params.pop('wentryid',None))
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicApi.py", line 85, in getSongStreamUrl
stream_url = self.getLogin().getStreamUrl(song_id, session_token=session_token, wentry_id=wentry_id)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicApi.py", line 28, in getLogin self.getApi()
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicApi.py", line 14, in getApi
import GoogleMusicLogin
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicLogin.py", line 3, in <module>
from gmusicapi import Mobileclient
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/__init__.py", line 4, in <module>
from gmusicapi.clients import Mobileclient
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/__init__.py", line 3, in <module>
from gmusicapi.clients.mobileclient import Mobileclient
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/mobileclient.py", line 7, in <module>
from gmusicapi import session
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/session.py", line 8, in <module>
import gpsoauth
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gpsoauth/__init__.py", line 1, in <module>
import requests
File "/storage/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/storage/.kodi/addons/script.module.requests/lib/requests/packages/__init__.py", line 27, in <module>
from . import urllib3
File "/storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py", line 41, in <module>
from .request import RequestMethods
File "/storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/request.py", line 7, in <module>
from .filepost import encode_multipart_formdata
File "/storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/filepost.py", line 11, in <module>
writer = codecs.lookup('utf-8')[3]
LookupError: no codec search functions registered: can't find encoding
-->End of Python script error report<--
Display More
After reinstalling Libreelec it worked for a short time, but I believe after a reboot it stopped working. If I open a python shell and repeat the steps I get no errors at all.
Code
[b]LibreELEC:[/b][b]~ [/b]# python2.7
Python 2.7.11 (default, Oct 13 2016, 17:08:44) [GCC 5.3.0] on linux2Type "help", "copyright", "credits" or "license" for more information.
>>> import codecs
>>> codecs.lookup('utf-8')[3]
<class encodings.utf_8.StreamWriter at 0x7fa0dcb390>
How can I fix this?