Bug#903447: diffoscope: AttributeError with node-module-deps/6.1.0-1

Mattia Rizzolo mattia at debian.org
Tue Jul 10 14:44:23 BST 2018


On Tue, Jul 10, 2018 at 10:12:45AM +0200, Mattia Rizzolo wrote:
> AttributeError: 'list' object has no attribute 'items'
> 
> 
> I can totally reproduce this locally; artifacts will be available till
> tomorrow

This is caused by the two attached very small .json:

mattia at warren ..cible/diffoscope/test/node-module-deps % diffoscope 1.json 2.json
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 460, in main
    sys.exit(run_diffoscope(parsed_args))
  File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 432, in run_diffoscope
    difference = compare_root_paths(path1, path2)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/compare.py", line 68, in compare_root_paths
    difference = compare_files(file1, file2)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/compare.py", line 118, in compare_files
    return file1.compare(file2, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 366, in compare
    difference = self._compare_using_details(other, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 304, in _compare_using_details
    details.extend(self.compare_details(other, source))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/json.py", line 73, in compare_details
    diff = {repr(x): y for x, y in jsondiff.diff(a, b).items()}
AttributeError: 'list' object has no attribute 'items'

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.json
Type: application/json
Size: 819 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20180710/895a914e/attachment.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.json
Type: application/json
Size: 819 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20180710/895a914e/attachment-0001.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20180710/895a914e/attachment.sig>


More information about the Reproducible-builds mailing list