Closed EnigmaCurry closed 11 years ago
Ah, I think this is fixed in develop. Try installing gmusicapi from the develop branch: clone, then cd Unofficial-Google-Music-API; git checkout develop; pip install -e .
There's been so many protocol changes that I'm a bit behind with pushing the fixes! Sorry about that.
Using the develop branch didn't seem to change the error.
I can appreciate the challenge of keeping this thing working against a rolling and undocumented API!
I'll continue to try and debug this and let you know what I find. thanks.
Ah, ok. I've got a debug build all set up from a similar issue recently. Can you run this for me please?
mkdir temp; cd temp
git clone https://github.com/simon-weber/Unofficial-Google-Music-API.git
cd Unofficial-Google-Music-API/
git checkout debug
virtualenv --no-site-packages debugenv
source debugenv/bin/activate
pip install git+git://github.com/sunlightlabs/validictory.git@master
pip install -e .
python -m gmusicapi.test.integration_test_api
deactivate
The validictory part is important; I need to bug him to get a recent version on the cheeseshop =)
(debugenv)[ryan@sarang Unofficial-Google-Music-API]$ python -m gmusicapi.test.integration_test_api Warning: this test suite might modify the library it is run on. Email:
Password: 2012-12-26 20:12:50,520 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:12:50,534 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'pending' not defined by 'properties' are not allowed in list item 2012-12-26 20:12:59,246 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:12:59,260 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:02,512 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:02,523 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:04,412 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:04,422 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:07,382 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:07,393 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:14,000 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:14,011 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item .2012-12-26 20:13:18,881 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:13:18,895 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'pending' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:26,076 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:13:26,091 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:37,410 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:13:37,424 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'pending' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:45,235 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:13:45,250 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item ..2012-12-26 20:13:48,583 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:48,594 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:52,463 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:52,474 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 2012-12-26 20:13:54,374 - gmusicapi.UnitTestedApi - WARNING - Received an unexpected response from call loadplaylist. 2012-12-26 20:13:54,385 - gmusicapi.UnitTestedApi - WARNING - error was: Failed to validate field 'playlists' list schema: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item ...
Ran 6 tests in 136.165s
OK
Perfect; thanks.
One more thing: can I get an example of these new fields? I made a little script to enumerate their values. Can you post the results of:
cd Unofficial-Google-Music-API/
git pull
git checkout debug
source debugenv/bin/activate
python examine_keys.py
deactivate
I should probably make some standard way for people to report this - recently, my CI hasn't been the one finding the new keys.
(debugenv)[ryan@sarang Unofficial-Google-Music-API]$ python examine_keys.py 2012-12-26 20:42:34,643 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:42:34,657 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'pending' not defined by 'properties' are not allowed in list item 2012-12-26 20:42:43,017 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks. 2012-12-26 20:42:43,031 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'albumMatchedId' not defined by 'properties' are not allowed in list item 5478 total songs
albumMatchedId 1 matches 1: u'B2dvyvjodqbcvwax33bthvxrbrq'
pending 2 matches 2: True
Great, thanks. I included those new keys: fab96472bc633a0c8e50f0246b6214aa3bbffcbe (and e27de496997bef678e0e007466e8a7f9070be508 - whoops).
Give the develop branch another try; the warnings should be fixed now.
That gets me past the bulk of the problems. See my pull request which fixes a minor typo.
Merged. Thanks for your help!
Hi, I am having the same problem described here and I am using the latest develop branch.... Is this still a known issue? Thanks!
This pops up every time new metadata is added; eg I saw 5dade9f7fcb992b2d8891ea47941c58985d1a0d3 when I pushed yesterday's release.
Can you post the validation error that you see?
Here's what I'm seeing when I run the integration test:
2013-02-28 09:57:16,637 - gmusicapi.api (944) [ERROR]: please report the following unknown response format for GetLibrarySongs: {
... repeated over and over ....
By the way, I removed the dict contents in GetLibrarySongs in my post above... it was enormous.
Are you using develop as of yesterday (which has that commit I posted)? It should fix the artistMatchedId
error.
Oh, looks like it IS fixed. I thought I was on develop, but I guess I inadvertently was on the debug branch you set up earlier in this thread. My bad. Thanks for your help and sorry to pull you into my issues. By the way, I've been following this repository since you first started it last year and I'd like to take this opportunity to thank you for this great work.
Oh hey, no problem. And thanks! =)
ps, definitely thanks for making an account and pinging me - it's great to seeing people get involved =)
I've hit another wall using thunner. Now I'm getting hung up on the matchedId property: 2013-02-28 12:00:36,131 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks. 2013-02-28 12:00:36,188 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'matchedId' not defined by 'properties' are not allowed in list item 2013-02-28 12:00:38,044 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks. 2013-02-28 12:00:38,097 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'matchedId' not defined by 'properties' are not allowed in list item 2013-02-28 12:00:40,575 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks. 2013-02-28 12:00:40,629 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional property 'matchedId' not defined by 'properties' are not allowed in list item ...
nevermind... I'll try not to be so hasty before posting next time.
Hm, that should be recognized: https://github.com/simon-weber/Unofficial-Google-Music-API/blob/develop/gmusicapi/protocol/metadata.py#L137.
Try doing python -c 'import gmusicapi; print gmusicapi.__version__'
; that'll let you know what version is actually running.
It might help to blow away your current venv and then install develop fresh from github with pip install git+git://github.com/simon-weber/Unofficial-Google-Music-API.git@develop
.
Ah, ok; no problem!
Hi, I ran across thunner the other day and wanted to try it out. I'm getting the following error in the gmusicapi.log file:
'gigantic response object' has all of my tracks in it, which I don't really want to post here, but it's a dict containing the following (top-level) keys:
This same error occurs when I run the gmusicapi.test.integration_test_api.
This same error occurs for the 'loadplaylist' call as well.
I'm in the US if that matters.
I'm currently trying to debug it myself, but I'm not very familiar with this code yet.
Thanks!