Kodi Community Forum

Full Version: Google Play Music - From scratch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
Listing songs works, even covers are loading.

trying to play a song:
Code:
19:01:57 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:01:57 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:01:57 T:139752074622720   ERROR: /storage/.kodi/addons/script.module.requests-gotham/lib/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
19:01:57 T:139752074622720   ERROR: /storage/.kodi/addons/script.module.requests-gotham/lib/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              InsecurePlatformWarning
19:02:03 T:139752074622720  NOTICE: Thread BackgroundLoader start, auto delete: false
19:02:07 T:139752074622720  NOTICE: Thread FileCache start, auto delete: false
19:02:26 T:139752074622720  NOTICE: Previous line repeats 2 times.
19:02:26 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:26 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:02:26 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:02:27 T:139753400870784   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.linuxwhatelse.gmusic/play/track?track_id=Tddxxt5mvsjtraadkp7ojzoubg4]
19:02:27 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:27 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:02:28 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:02:28 T:139753400870784   ERROR: Playlist Player: skipping unplayable item: 1, path [plugin://plugin.audio.linuxwhatelse.gmusic/play/track?track_id=Tqwh6dhepstnryy76zzv4ybntrq]
19:02:28 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:29 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
last lines repeat till 'item 17'.

The error when trying to go into "listen now" persists.

I have cleared the cache and restarted the system multiple times.

clearing cache writes these lines to the log:
Code:
19:08:36 T:139751936411392  NOTICE: -->Python Interpreter Initialized<--
19:08:36 T:139751936411392  NOTICE: warning: could not import appdirs; will use current directory
Cache folder is deleted anyway
(2016-02-09, 20:10)Win a 2 Wrote: [ -> ]Listing songs works, even covers are loading.

trying to play a song:
Code:
19:01:57 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:01:57 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:01:57 T:139752074622720   ERROR: /storage/.kodi/addons/script.module.requests-gotham/lib/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
19:01:57 T:139752074622720   ERROR: /storage/.kodi/addons/script.module.requests-gotham/lib/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              InsecurePlatformWarning
19:02:03 T:139752074622720  NOTICE: Thread BackgroundLoader start, auto delete: false
19:02:07 T:139752074622720  NOTICE: Thread FileCache start, auto delete: false
19:02:26 T:139752074622720  NOTICE: Previous line repeats 2 times.
19:02:26 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:26 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:02:26 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:02:27 T:139753400870784   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.linuxwhatelse.gmusic/play/track?track_id=Tddxxt5mvsjtraadkp7ojzoubg4]
19:02:27 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:27 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
19:02:28 T:139752074622720  NOTICE: warning: could not import appdirs; will use current directory
19:02:28 T:139753400870784   ERROR: Playlist Player: skipping unplayable item: 1, path [plugin://plugin.audio.linuxwhatelse.gmusic/play/track?track_id=Tqwh6dhepstnryy76zzv4ybntrq]
19:02:28 T:139752074622720  NOTICE: Thread LanguageInvoker start, auto delete: false
19:02:29 T:139752074622720  NOTICE: -->Python Interpreter Initialized<--
last lines repeat till 'item 17'.

The error when trying to go into "listen now" persists.

I have cleared the cache and restarted the system multiple times.

clearing cache writes these lines to the log:
Code:
19:08:36 T:139751936411392  NOTICE: -->Python Interpreter Initialized<--
19:08:36 T:139751936411392  NOTICE: warning: could not import appdirs; will use current directory
Cache folder is deleted anyway

All right.. Looks like there is some more stuff missing in Openelec :/
Gotta make a VM and test it myself.
I'll let you know when I've got something new Wink
Just installed this, everything is working great but my uploaded songs are not showing up in my auto "Thumbs Up" playlist?

They show up in the "Last Added" auto playlist however.

Tried updating playlists. Confirmed with my phone. About 100 uploaded tracks missing.

Any ideas?

Eg: https://goo.gl/photos/ZVc62eeKfJ6ydRPCA
(2016-02-13, 05:24)speeko Wrote: [ -> ]Just installed this, everything is working great but my uploaded songs are not showing up in my auto "Thumbs Up" playlist?

They show up in the "Last Added" auto playlist however.

Tried updating playlists. Confirmed with my phone. About 100 uploaded tracks missing.

Any ideas?

Eg: https://goo.gl/photos/ZVc62eeKfJ6ydRPCA

eyup.. Glad the basics work at least.

To your uploaded tracks now.
Yes, I know whats up with that. It's sort of not supported yet because the API is little strange on that side.
So basically everything you uploaded and couldn't be matched by google will be filtered out by the add-on (as otherwise you'd get an error later down the line)

Here's the issue for that if you'r interested
https://github.com/linuxwhatelse/plugin....c/issues/2
Awesome. I'll keep an eye on that ticket thanks Smile
This is pretty awesome Smile Works neat!

The one thing that prevents this from fully seamless integration to me is the 'Opening stream' dialog box. Now, I'm afraid that's part of Kodi itself, and can't be easily changed right? As I can't find anything about that in the source and quite a few other addons do the same thing.. It keeps killing my screensaver, and I tend to use that screensaver to eventually have my HTPC shutting off my TV.
(2016-02-15, 02:17)MartijnGP Wrote: [ -> ]This is pretty awesome Smile Works neat!

The one thing that prevents this from fully seamless integration to me is the 'Opening stream' dialog box. Now, I'm afraid that's part of Kodi itself, and can't be easily changed right? As I can't find anything about that in the source and quite a few other addons do the same thing.. It keeps killing my screensaver, and I tend to use that screensaver to eventually have my HTPC shutting off my TV.

Yeah that's a kodi thing and usually happens when the communication to the google-server is "to slow" (might be your connection, might be google responding to slow etc.).
Can't really do a whole lot about that, sorry :/
Hey Tadly...

i try to keymap a button to my remote to get related artists to the current played artist...i use a simple python script to achieve that...
Short and sweet: It doesn't work. I use the "[MusicPlayer.Artist]" label, it works with other addons, but not with this one...
I understand gmusic uses artists IDs instead of artist names to search for content....

I get this error message:

Code:
15:54:04 T:3564   ERROR: C:\Users\XXX\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
15:54:04 T:3564   ERROR: C:\Users\XXX\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              InsecurePlatformWarning
15:54:04 T:3564   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'gmusicapi.exceptions.CallFailure'>
                                            Error Contents: GetArtist: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v1.11/fetchartist?nid=50+Cent&alt=json&num-top-tracks=0&num-related-artists=100&include-albums=False
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v1.11/fetchartist', 'headers': {'Authorization': '<omitted>'}, 'params': {'nid': '50 Cent', 'alt': 'json', 'num-top-tracks': 0, 'num-related-artists': 100, 'include-albums': False}, 'method': 'GET'})
                                            (response was: '{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\n')
                                            Traceback (most recent call last):
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\default.py", line 42, in <module>
                                                mapper.call(url)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\script.module.linuxwhatelse.mapper\lib\mapper.py", line 160, in call
                                                return function(**args)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\browse.py", line 578, in artist_related_artists
                                                artist = gmusic.get_artist_info(artist_id=artist_id, include_albums=False, max_top_tracks=0, max_rel_artist=100)
                                              File "<string>", line 2, in get_artist_info
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\utils\utils.py", line 288, in wrapper
                                                return function(*args, **kw)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\clients\mobileclient.py", line 1025, in get_artist_info
                                                artist_id, include_albums, max_top_tracks, max_rel_artist)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\clients\shared.py", line 80, in _make_call
                                                return protocol.perform(self.session, self.validate, *args, **kwargs)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\protocol\shared.py", line 225, in perform
                                                raise CallFailure(err_msg, call_name)
                                            CallFailure: GetArtist: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v1.11/fetchartist?nid=50+Cent&alt=json&num-top-tracks=0&num-related-artists=100&include-albums=False
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v1.11/fetchartist', 'headers': {'Authorization': '<omitted>'}, 'params': {'nid': '50 Cent', 'alt': 'json', 'num-top-tracks': 0, 'num-related-artists': 100, 'include-albums': False}, 'method': 'GET'})
                                            (response was: '{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\n')
                                            -->End of Python script error report<--
15:54:04 T:964   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/browse/artist/related-artists?artist_id=50 Cent
15:54:04 T:964   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/browse/artist/related-artists?artist_id=50 Cent) failed

Is there any workaround to get it working (to translate my artist name into a ID)?

Thank you!
(2016-03-04, 17:00)Shogun Wrote: [ -> ]Hey Tadly...

i try to keymap a button to my remote to get related artists to the current played artist...i use a simple python script to achieve that...
Short and sweet: It doesn't work. I use the "[MusicPlayer.Artist]" label, it works with other addons, but not with this one...
I understand gmusic uses artists IDs instead of artist names to search for content....

I get this error message:

Code:
15:54:04 T:3564   ERROR: C:\Users\XXX\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
15:54:04 T:3564   ERROR: C:\Users\XXX\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              InsecurePlatformWarning
15:54:04 T:3564   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'gmusicapi.exceptions.CallFailure'>
                                            Error Contents: GetArtist: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v1.11/fetchartist?nid=50+Cent&alt=json&num-top-tracks=0&num-related-artists=100&include-albums=False
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v1.11/fetchartist', 'headers': {'Authorization': '<omitted>'}, 'params': {'nid': '50 Cent', 'alt': 'json', 'num-top-tracks': 0, 'num-related-artists': 100, 'include-albums': False}, 'method': 'GET'})
                                            (response was: '{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\n')
                                            Traceback (most recent call last):
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\default.py", line 42, in <module>
                                                mapper.call(url)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\script.module.linuxwhatelse.mapper\lib\mapper.py", line 160, in call
                                                return function(**args)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\browse.py", line 578, in artist_related_artists
                                                artist = gmusic.get_artist_info(artist_id=artist_id, include_albums=False, max_top_tracks=0, max_rel_artist=100)
                                              File "<string>", line 2, in get_artist_info
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\utils\utils.py", line 288, in wrapper
                                                return function(*args, **kw)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\clients\mobileclient.py", line 1025, in get_artist_info
                                                artist_id, include_albums, max_top_tracks, max_rel_artist)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\clients\shared.py", line 80, in _make_call
                                                return protocol.perform(self.session, self.validate, *args, **kwargs)
                                              File "C:\Users\PCI\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\lib\gmusicapi\protocol\shared.py", line 225, in perform
                                                raise CallFailure(err_msg, call_name)
                                            CallFailure: GetArtist: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v1.11/fetchartist?nid=50+Cent&alt=json&num-top-tracks=0&num-related-artists=100&include-albums=False
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v1.11/fetchartist', 'headers': {'Authorization': '<omitted>'}, 'params': {'nid': '50 Cent', 'alt': 'json', 'num-top-tracks': 0, 'num-related-artists': 100, 'include-albums': False}, 'method': 'GET'})
                                            (response was: '{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\n')
                                            -->End of Python script error report<--
15:54:04 T:964   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/browse/artist/related-artists?artist_id=50 Cent
15:54:04 T:964   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/browse/artist/related-artists?artist_id=50 Cent) failed

Is there any workaround to get it working (to translate my artist name into a ID)?

Thank you!

uff, tough one.. If I remember my source correctly, there isn't right now. As you said, it requires ids rather than strings (otherwise accuracy would fall short).

Well, actually... hm.
I guess your script uses the json-rpc to get those infos and open the appropriate view right?
In that case, no there really isn't.

If you can import parts of my add-on you might have a chance though.

Following source is NOT tested and only serves as example:
Code:
import urlparse

# Adds all librarys to our path (see lib/__init__.py)
import resources.libs  # resources directory of plugin.audio.linuxwhatelse.gmusic

from gmusic import GMusic  # gmusic.py from plugin.audio.linuxwhatelse.gmusic directory

if __name__ == '__main__':
    # Gets the id from the currently playing track
    query = urlparse.parse_qsl(urlparse.urlparse(xbmc.getInfoLabel('ListItem.FileNameAndPath')).query)
    track_id = dict(query)['track_id']

    gmusic = GMusic(debug_logging=True, validate=True, verify_ssl=True)
    gmusic.login()
    track = gmusic.get_track_info(track_id)

    if 'artistId' in track and len(track['artistId']) > 0:
        artist_id = track['artistId'][0]
        # your turn now ;)

That being said.
I'm planing on adding the ability to pass 'current' (or something similar) as id to a defined set of methods for a similar reason as yours.
In my case it's more to give the user a faster way of adding a track to a specific playlist, rate it, add it to the library, go to the album/artist (not related artists as that's a listitem-entry of artists anyway)
Basically the same functions as what my context menu for the music-playlist does:
https://github.com/linuxwhatelse/plugin....context.py

But this isn't even a WIP yet as I have to rework the whole ID stuff to make this add-on compatible with user uploaded songs. <- will take some time and a lot of testing again :/

Good luck though Smile
Very grateful for your time and efforts....Smile
I'm looking into it.
Really glad there is a new google music addon. I hope I can get it to work Smile

For now I get the following errors on raspberry pi 2 / OSMC / kodi 16:

Code:
12:46:52 480.312897 T:1498407920   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: /home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/_counter.so: wrong ELF class: ELFCLASS64
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/default.py", line 20, in <module>
                                                import browse
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/browse.py", line 14, in <module>
                                                from gmusic import GMusic
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/gmusic.py", line 9, in <module>
                                                from gmusicapi import Mobileclient, Webclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/__init__.py", line 4, in <module>
                                                from gmusicapi.clients import Webclient, Musicmanager, Mobileclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/clients/__init__.py", line 1, in <module>
                                                from gmusicapi.clients.webclient import Webclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/clients/webclient.py", line 9, in <module>
                                                import gmusicapi.session
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/session.py", line 8, in <module>
                                                import gpsoauth
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gpsoauth/__init__.py", line 4, in <module>
                                                from . import google
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gpsoauth/google.py", line 4, in <module>
                                                from Crypto.PublicKey import RSA
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/PublicKey/RSA.py", line 78, in <module>
                                                from Crypto import Random
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/__init__.py", line 29, in <module>
                                                from Crypto.Random import _UserFriendlyRNG
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module>
                                                from Crypto.Random.Fortuna import FortunaAccumulator
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/Fortuna/FortunaAccumulator.py", line 39, in <module>
                                                import FortunaGenerator
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/Fortuna/FortunaGenerator.py", line 35, in <module>
                                                from Crypto.Util import Counter
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/Counter.py", line 59, in <module>
                                                from Crypto.Util import _counter
                                            ImportError: /home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/_counter.so: wrong ELF class: ELFCLASS64
                                            -->End of Python script error report<--
12:46:52 480.364716 T:1957626416   ERROR: GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/
12:46:52 480.365387 T:1957626416   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/) failed
12:47:47 534.815369 T:1641018352  NOTICE: ES: Client  from 192.168.0.129 timed out
(2016-03-05, 14:31)Fyre Wrote: [ -> ]Really glad there is a new google music addon. I hope I can get it to work Smile

For now I get the following errors on raspberry pi 2 / OSMC / kodi 16:

Code:
12:46:52 480.312897 T:1498407920   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: /home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/_counter.so: wrong ELF class: ELFCLASS64
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/default.py", line 20, in <module>
                                                import browse
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/browse.py", line 14, in <module>
                                                from gmusic import GMusic
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/gmusic.py", line 9, in <module>
                                                from gmusicapi import Mobileclient, Webclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/__init__.py", line 4, in <module>
                                                from gmusicapi.clients import Webclient, Musicmanager, Mobileclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/clients/__init__.py", line 1, in <module>
                                                from gmusicapi.clients.webclient import Webclient
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/clients/webclient.py", line 9, in <module>
                                                import gmusicapi.session
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gmusicapi/session.py", line 8, in <module>
                                                import gpsoauth
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gpsoauth/__init__.py", line 4, in <module>
                                                from . import google
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib/gpsoauth/google.py", line 4, in <module>
                                                from Crypto.PublicKey import RSA
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/PublicKey/RSA.py", line 78, in <module>
                                                from Crypto import Random
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/__init__.py", line 29, in <module>
                                                from Crypto.Random import _UserFriendlyRNG
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module>
                                                from Crypto.Random.Fortuna import FortunaAccumulator
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/Fortuna/FortunaAccumulator.py", line 39, in <module>
                                                import FortunaGenerator
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Random/Fortuna/FortunaGenerator.py", line 35, in <module>
                                                from Crypto.Util import Counter
                                              File "/home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/Counter.py", line 59, in <module>
                                                from Crypto.Util import _counter
                                            ImportError: /home/osmc/.kodi/addons/plugin.audio.linuxwhatelse.gmusic/resources/libs/lib-unix/Crypto/Util/_counter.so: wrong ELF class: ELFCLASS64
                                            -->End of Python script error report<--
12:46:52 480.364716 T:1957626416   ERROR: GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/
12:46:52 480.365387 T:1957626416   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/) failed
12:47:47 534.815369 T:1641018352  NOTICE: ES: Client  from 192.168.0.129 timed out

Ah crap.. That's because the pycrypto module uses C stuff which is not built for ARM but x86.
So you won't be able to run it unless you replace the Crypto folder with a ARM version in resources/libs/lib-unix

I'd like to include a pre-built version in the add-on but have to figure out how to build for arm on a x86/x64 first as I don't have
a RPi or similar
Hi, I'm trying the gmusic addon on kodi, but getting error when loggin' in.thi is the error n the log file. WHere is the problem? Thank you for your help.

Quote:14:22:59 T:9064 ERROR: C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/lates...ingwarning.
SNIMissingWarning
14:22:59 T:9064 ERROR: C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/lates...ormwarning.
InsecurePlatformWarning
14:23:00 T:9064 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\default.py", line 39, in <module>
is_setup = mapper.call(mapper.build_url(url=url, paths=['setup'], overwrite_path=True, overwrite_query=True))
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.linuxwhatelse.mapper\lib\mapper.py", line 160, in call
return function(**args)
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\actions.py", line 72, in setup
if not web.login(username, password):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\resources\libs\lib\gmusicapi\clients\webclient.py", line 61, in login
if not self.session.login(email, password):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\resources\libs\lib\gmusicapi\session.py", line 115, in login
form.select("#Passwd")[0]['value'] = password
IndexError: list index out of range
-->End of Python script error report<--
14:23:00 T:1316 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/
14:23:00 T:1316 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/) failed
(2016-03-05, 15:26)palmi74 Wrote: [ -> ]Hi, I'm trying the gmusic addon on kodi, but getting error when loggin' in.thi is the error n the log file. WHere is the problem? Thank you for your help.

Quote:14:22:59 T:9064 ERROR: C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/lates...ingwarning.
SNIMissingWarning
14:22:59 T:9064 ERROR: C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/lates...ormwarning.
InsecurePlatformWarning
14:23:00 T:9064 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\default.py", line 39, in <module>
is_setup = mapper.call(mapper.build_url(url=url, paths=['setup'], overwrite_path=True, overwrite_query=True))
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\script.module.linuxwhatelse.mapper\lib\mapper.py", line 160, in call
return function(**args)
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\actions.py", line 72, in setup
if not web.login(username, password):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\resources\libs\lib\gmusicapi\clients\webclient.py", line 61, in login
if not self.session.login(email, password):
File "C:\Users\Francesco\AppData\Roaming\Kodi\addons\plugin.audio.linuxwhatelse.gmusic\resources\libs\lib\gmusicapi\session.py", line 115, in login
form.select("#Passwd")[0]['value'] = password
IndexError: list index out of range
-->End of Python script error report<--
14:23:00 T:1316 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.linuxwhatelse.gmusic/
14:23:00 T:1316 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.linuxwhatelse.gmusic/) failed

What System are you using? windows/linux? Is it a standard kodi installation or something else?
Also, try re-running the setup assistant from within the add-ons settings dialog
it's windows 10. Standard installation. tried re-running set-up but still not working :-(
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13