• 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 35
WIP Google Music Addon
(2013-11-06, 16:49)foreverguest Wrote: If you have communication problems this will affect the addon too. But in your previously posted log, I didn't saw any errors, so I'm lost about your problem.

(2013-11-06, 14:14)amwebby Wrote: I'm now getting a "Remote Communication Server failed to start" error every time I open XBMC. Is this related?

Googling evinces that this error occurs when two plugins try and use the same port. Where is this set in the Google music plugin?
AFAIK we use standard https, port 443.
(2013-11-07, 03:59)foreverguest Wrote: AFAIK we use standard https, port 443.

Any idea where the setting is for this?
OK. I tried the YouTube plugin, which is working fine, after attempting to access Google Music and it failed. Reasoning that port 443 was now in use by the Google Music plugin I quit XBMC, cleared the cache and restarted. I opened the YouTube plugin and it worked fine. Then I tried the Google Music plugin and it failed but this time I actually got a "script failed" error message and the attempt to connect ceased instead of the endless "Working..." loop.

In the hope that the last log file showed nothing because the Google Music Plugin was still in a loop and this log file will at least show the failure of the script, here it is:

https://drive.google.com/file/d/0Bz4yPlo...sp=sharing
Yeah, it seems to be hanging when trying to login in Google Music account.

Here we can see it runs until fetching the device_id from account, which is one of the first thing it does when starting:
Code:
11:45:47 T:9902808  NOTICE: [GoogleMusic-0.8exp14] Trying to fetch the device_id

Four minutes later, it is stopped by xbmc, probably for inactivity:
Code:
11:49:50 T:9902808    INFO: Python script stopped

I'm don't know why it is hanging, do you use two factor authentication? does the addon ask for your credentials when starting?

Could you try to remove the folder 'script.module.gmusicapi' inside xbmc/addons folder, as it is not needed for the addon latest version, and we can be sure it is not interfering.
I don't use two-factor identification and I entered my Google email and password in the settings and never get prompted to enter either. Mind you I omitted to enter them on first ever run and didn't get prompted then either.

Removed script.module.gmusicapi from /data/data/org.xbmc but it has made no difference. Sad
I tried it on the latest Gotham nightly last night and 13 is working fine.
I'm wondering if I have fallen foul of Google's dictum that you may only deauthorise 4 devices a year.

Funnily enough my YouTube plugin failed last night. Something I rectified by copying the old settings.xml file into userdata/add_on_settings

I'm now wondering if copying any values from that into the Google Music plugin's setting file would help?
(2013-11-08, 12:50)amwebby Wrote: I'm wondering if I have fallen foul of Google's dictum that you may only deauthorise 4 devices a year.

Funnily enough my YouTube plugin failed last night. Something I rectified by copying the old settings.xml file into userdata/add_on_settings

I'm now wondering if copying any values from that into the Google Music plugin's setting file would help?
I have a similar feeling as 2 factor used to work on my raspbmc and it stopped working all of a sudden.
Since then I tried reinstalling, clearing cache, cookies, and enev removing googleapi doesn't help.

I now have exp14 installed and it is giving out 'invalid credential' message when it was trying to login prior to loading the library. Didn't prompt for the app specific pin.

I would be grateful if foreverguest can take a look at log below:
Quote:22:36:01 T:3041579552 DEBUG: ExecuteXBMCAction : Translating RunAddon($INFO[Skin.String(HomeMusicButton1)])
22:36:01 T:3041579552 DEBUG: ExecuteXBMCAction : To RunAddon(plugin.audio.googlemusic)
22:36:01 T:3041579552 DEBUG: Activating window ID: 10501
22:36:01 T:3041579552 DEBUG: ------ Window Deinit (Home.xml) ------
22:36:01 T:3041579552 DEBUG: ------ Window Init (MyMusicSongs.xml) ------
22:36:01 T:3041579552 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.audio.googlemusic)
22:36:01 T:3041579552 DEBUG: ParentPath = [plugin://plugin.audio.googlemusic]
22:36:01 T:3041579552 DEBUG: StartScript - calling plugin Google Music Dev('plugin://plugin.audio.googlemusic/','2','')
22:36:01 T:3041579552 INFO: initializing python engine.
22:36:01 T:3041579552 DEBUG: new python thread created. id=8
22:36:01 T:3041579552 DEBUG: WaitOnScriptResult - waiting on the Google Music Dev (id=8) plugin...
22:36:01 T:2732586048 NOTICE: Thread XBPyThread start, auto delete: false
22:36:01 T:2732586048 DEBUG: Python thread: start processing
22:36:02 T:3041579552 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x9facb998
22:36:02 T:3041579552 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(125120), nBufferAlignmen(16)
22:36:02 T:3041579552 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61 m_handle 0x9faa4860
22:36:02 T:3041579552 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x9df8fd58
22:36:02 T:3041579552 DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:36:02 T:3041579552 DEBUG: COMXCoreComponent:Big Grineinitialize : OMX.broadcom.image_decode handle 0x9facb998
22:36:02 T:3041579552 DEBUG: COMXCoreComponent:Big Grineinitialize : OMX.broadcom.resize handle 0x9faa4860
22:36:02 T:3041579552 DEBUG: COMXCoreComponent:Big Grineinitialize : OMX.broadcom.egl_render handle 0x9df8fd58
22:36:02 T:2732586048 NOTICE: -->Python Interpreter Initialized<--
22:36:02 T:2732586048 DEBUG: Process - The source file to load is /home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py
22:36:02 T:2732586048 DEBUG: Process - Setting the Python path to /home/pi/.xbmc/addons/plugin.audio.googlemusic:/home/pi/.xbmc/addons/script.module.socksipy/lib:/home/pi/.xbmc/addons/script.module.protobuf/lib:/home/pi/.xbmc/addons/script.module.simplejson/lib:/home/pi/.xbmc/addons/script.module.beautifulsoup/lib:/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.pil/lib:/home/pi/.xbmc/addons/script.common.plugin.cache/lib:/home/pi/.xbmc/addons/script.module.simple.downloader/lib:/home/pi/.xbmc/addons/script.module.requests/lib:/home/pi/.xbmc/addons/script.module.decorator/lib:/home/pi/.xbmc/addons/script.module.mutagen/lib:/home/pi/.xbmc/addons/script.module.parsedom/lib:/home/pi/.xbmc/addons/script.web.viewer/lib:/home/pi/.xbmc/addons/script.module.validictory/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/pymodules/python2.7:
22:36:02 T:2732586048 DEBUG: Process - Entering source directory /home/pi/.xbmc/addons/plugin.audio.googlemusic
22:36:02 T:2732586048 DEBUG: Instantiating addon using automatically obtained id of "plugin.audio.googlemusic" dependent on version 2.1.0 of the xbmc.python api
22:36:02 T:2732586048 NOTICE: GoogleMusic-0.8exp14 ARGV: ['plugin://plugin.audio.googlemusic/', '2', '']
22:36:06 T:2732586048 NOTICE: warning: could not import appdirs; will use current directory
22:36:11 T:2732586048 NOTICE: CommonFunctions-2.5.1
22:36:12 T:2732586048 NOTICE: [GoogleMusic-0.8exp14] Trying to fetch the device_id
22:36:14 T:2732586048 DEBUG: LocalizeStrings: no strings.po file exist at /home/pi/.xbmc/addons/plugin.audio.googlemusic/resources/language/English, fallback to strings.xml
22:36:14 T:2732586048 NOTICE: [GoogleMusic-0.8exp14] Loading library
22:36:14 T:2732586048 NOTICE: [GoogleMusic-0.8exp14] Logging in
22:36:14 T:3041579552 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:36:15 T:2732586048 NOTICE: [GoogleMusic-0.8exp14] Login failed
22:36:15 T:3041579552 DEBUG: ------ Window Init (DialogOK.xml) ------
22:36:20 T:3041579552 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
22:36:26 T:2841637952 DEBUG: Thread Jobworker 2841637952 terminating (autodelete)
22:36:45 T:3041579552 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
22:36:45 T:3041579552 DEBUG: Unloading: ImageLib-arm.so
22:40:56 T:3041579552 DEBUG: Keyboard: scancode: 1c, sym: 000d, unicode: 0000, modifier: 0
22:40:56 T:3041579552 DEBUG: OnKey: return (f00d) pressed, action is Select
22:40:56 T:3041579552 DEBUG: ------ Window Deinit (DialogOK.xml) ------
22:40:56 T:2732586048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'gmusicapi.exceptions.NotLoggedIn'>
Error Contents:
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py", line 70, in <module>
navigation.api.updatePlaylistSongs('all_songs')
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicApi.py", line 58, in updatePlaylistSongs
api_songs = self.gmusicapi.get_all_songs()
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/gmusicapi/clients/webclient.py", line 129, in get_all_songs
to_return = [song for chunk in to_return for song in chunk]
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/gmusicapi/clients/webclient.py", line 141, in _get_all_songs
lib_chunk['continuationToken'])
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/gmusicapi/clients/shared.py", line 67, in _make_call
return protocol.perform(self.session, self.validate, *args, **kwargs)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/gmusicapi/protocol/shared.py", line 209, in perform
response = session.send(req_kwargs, cls.required_auth)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/gmusicapi/session.py", line 64, in send
raise NotLoggedIn
NotLoggedIn
-->End of Python script error report<--
22:40:56 T:3041579552 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:40:57 T:2732586048 INFO: Python script stopped
22:40:57 T:2732586048 DEBUG: Thread XBPyThread 2732586048 terminating
22:40:57 T:3041579552 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
22:40:57 T:3041579552 ERROR: GetDirectory - Error getting plugin://plugin.audio.googlemusic
22:40:57 T:3041579552 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic) failed
22:40:57 T:3041579552 DEBUG: waiting for python thread 8 (/home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py) to stop
22:40:57 T:3041579552 DEBUG: python thread 8 (/home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py) destructed
22:41:02 T:3041579552 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
One weird thing I've noticed and it may be Android specific but, after each unsuccessful attempt to run this plugin my volume is set to 0!
crocodilezzz, the addon is failing to authenticate, have you generated an application-specific password?
(2013-11-11, 04:25)foreverguest Wrote: crocodilezzz, the addon is failing to authenticate, have you generated an application-specific password?

By application-specific I assume you mean Google Music. I haven't done that either and don't know how to do it.
(2013-11-11, 04:25)foreverguest Wrote: crocodilezzz, the addon is failing to authenticate, have you generated an application-specific password?

upon reinstallation (I mean a fresh install of both raspbmc and the music addon)
the add on did not promt me for the app-specific pw upon first start which was very strange.
Application-specific password is only needed when you use two-factor authentication.

crocodilezzz, and then it failed with 'invalid credentials' again? and if you open the addon settings, the credentials are empty? and after you enter them? on the next boot they still there?

The addon settings should be stored in /home/pi/.xbmc/userdata/addon_data/plugin.audio.googlemusic/settings.xml, please check if it is being created and has your settings.
Ah. Thanks foreverguest. My usernane and password are stored in Settings.xml but no authorisation key or device ID, which is what I expected to see after looking at the YouTube plugin's setting file.
  • 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 35

Logout Mark Read Team Forum Stats Members Help
Google Music Addon5