-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_release_group_image_list raises "TypeError: the JSON object must be str, not 'bytes'" on Python 3.5 #208
Comments
mineo
added a commit
to mineo/python-musicbrainz-ngs
that referenced
this issue
Sep 15, 2016
HTTPResponse.read() always returns bytes, but json.loads expects a str (or unicode) object. On Python 2, this conversion happened automatically, on Python 3, it didn't, so do it explicitly. This also fixes the tests to return bytes rather than str. Fixes alastair#208. Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
mineo
added a commit
to mineo/python-musicbrainz-ngs
that referenced
this issue
Sep 15, 2016
HTTPResponse.read() always returns bytes, but json.loads expects a str (or unicode) object. On Python 2, this conversion happened automatically, on Python 3, it didn't, so do it explicitly. Fixes alastair#208. Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
mineo
added a commit
to mineo/python-musicbrainz-ngs
that referenced
this issue
Sep 15, 2016
HTTPResponse.read() always returns bytes, but json.loads expects a str (or unicode) object. On Python 2, this conversion happened automatically, on Python 3, it didn't, so do it explicitly. Fixes alastair#208. Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
Oh boy, that's emberassing, I wonder if that code ever worked on Python 3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting an exception when I try to execute
musicbrainzngs.get_release_group_image_list('77ea502e-5e73-469f-8a09-4994ab55a93c')
(release 0.6) on Python 3.5:The text was updated successfully, but these errors were encountered: