Skip to content

mat2 fails to build with newer exif

This bug was reported in Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101130

quote:

mat2 has test failures during build and autopkgtest, probably caused by the newer version of libimage-exiftool-perl:

test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) ... Warning: [minor] Can't delete IFD0 from TIFF - ./tests/data/clean.tiff
WARNING:root:The format of "./tests/data/clean.mp4" (video/mp4) has some mandatory metadata fields; mat2 filled them with standard data.
WARNING:root:The format of "./tests/data/clean.cleaned.mp4" (video/mp4) has some mandatory metadata fields; mat2 filled them with standard data.
WARNING:root:The format of "./tests/data/clean.wmv" (video/x-ms-wmv) has some mandatory metadata fields; mat2 filled them with standard data.
WARNING:root:The format of "./tests/data/clean.cleaned.wmv" (video/x-ms-wmv) has some mandatory metadata fields; mat2 filled them with standard data.
Warning: Not deleting permanent ICC_Profile directory - ./tests/data/clean.heic

  test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) (case={'name': 'heic', 'parser': <class 'libmat2.images.HEICParser'>, 'meta': {}, 'expected_meta': {'ExifByteOrder': 'Big-endian (Motorola, MM)', 'Warning': 'Bad IFD0 directory'}}) ... FAIL



======================================================================
FAIL: test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) (case={'name': 'heic', 'parser': <class 'libmat2.images.HEICParser'>, 'meta': {}, 'expected_meta': {'ExifByteOrder': 'Big-endian (Motorola, MM)', 'Warning': 'Bad IFD0 directory'}})
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/mat2-0.13.5/tests/test_libmat2.py", line 566, in test_all_parametred
    self.assertIn(k, case['expected_meta'], '"%s" is not in "%s" (%s)' % (k, case['expected_meta'], case['name']))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'ProfileCMMType' not found in {'ExifByteOrder': 'Big-endian (Motorola, MM)', 'Warning': 'Bad IFD0 directory'} : "ProfileCMMType" is not in "{'ExifByteOrder': 'Big-endian (Motorola, MM)', 'Warning': 'Bad IFD0 directory'}" (heic)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information