[Python-modules-team] Bug#842205: Bug#842205: musicbrainzngs: FTBFS: UsageError: authorization required; use auth(user, pass) first
Sebastian Ramacher
sramacher at debian.org
Sat Nov 19 11:23:36 UTC 2016
Control: tags -1 + moreinfo
On 2016-10-26 22:28:54, Chris Lamb wrote:
> Source: musicbrainzngs
> Version: 0.6-1
> Severity: serious
> Justification: fails to build from source
> User: reproducible-builds at lists.alioth.debian.org
> Usertags: ftbfs
> X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
>
> Dear Maintainer,
>
> musicbrainzngs fails to build from source in unstable/amd64:
>
> […]
>
> ======================================================================
> ERROR: test_submit_single_tag (test.test_submit.SubmitTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test/test_submit.py", line 30, in test_submit_single_tag
> musicbrainz.submit_tags(artist_tags={"mbid": "single"})
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 1310, in submit_tags
> return _do_mb_post("tag", query)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 785, in _do_mb_post
> return _mb_request(path, 'POST', AUTH_YES, True, body=body)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 400, in __call__
> return self.fun(*args, **kwargs)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 647, in _mb_request
> raise UsageError("authorization required; "
> UsageError: authorization required; use auth(user, pass) first
>
> ======================================================================
> ERROR: test_submit_tags (test.test_submit.SubmitTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test/test_submit.py", line 19, in test_submit_tags
> musicbrainz.submit_tags(artist_tags={"mbid": ["one", "two"]})
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 1310, in submit_tags
> return _do_mb_post("tag", query)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 785, in _do_mb_post
> return _mb_request(path, 'POST', AUTH_YES, True, body=body)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 400, in __call__
> return self.fun(*args, **kwargs)
> File "/home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build/musicbrainzngs/musicbrainz.py", line 647, in _mb_request
> raise UsageError("authorization required; "
> UsageError: authorization required; use auth(user, pass) first
>
> ======================================================================
> FAIL: test_make_tag_request (test.test_mbxml.MbXML)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test/test_mbxml.py", line 25, in test_make_tag_request
> self.assertEqual(expected, xml)
> AssertionError: '<ns0:metadata xmlns:ns0="http://musicbrainz.org/ns/mmd-2.0#"><ns0:artist-list><ns0:artist ns0:id="mbid"><ns0:user-tag-list><ns0:user-tag><ns0:name>one</ns0:name></ns0:user-tag><ns0:user-tag><ns0:name>two</ns0:name></ns0:user-tag></ns0:user-tag-list></ns0:artist></ns0:artist-list></ns0:metadata>' != None
>
> ----------------------------------------------------------------------
> Ran 121 tests in 0.355s
>
> FAILED (failures=1, errors=2)
> E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd /home/lamby/temp/cdt.20161026221923.SWyGOiHnAI.db.musicbrainzngs/musicbrainzngs-0.6/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v
> dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
> debian/rules:12: recipe for target 'build' failed
> make: *** [build] Error 25
>
> […]
>
> The full build log is attached.
Hi Chris,
I'm unable to reproduce the issue. Are you still able to do so?
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20161119/029bfb15/attachment.sig>
More information about the Python-modules-team
mailing list