Fedora Account System
Red Hat Associate
Red Hat Customer
mat2 fails to build with Python 3.13.0a2. + /usr/bin/python3 -m unittest discover ...WARNING: The format of "./tests/data/parallel/dirty.mp4" (video/mp4) has some mandatory metadata fields; mat2 filled them with standard data. Warning: ICC_Profile deleted. Image colors may be affected - ./tests/data/parallel/dirty.heic WARNING: The format of "./tests/data/parallel/dirty.wmv" (video/x-ms-wmv) has some mandatory metadata fields; mat2 filled them with standard data. ....................../builddir/build/BUILD/mat2-0.13.4/libmat2/office.py:450: DeprecationWarning: 'count' is passed as positional argument out = re.sub(b'mc:Ignorable="[^"]*"', b'', text, 1) ................/usr/lib64/python3.13/tarfile.py:2222: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. warnings.warn( ................................/builddir/build/BUILD/mat2-0.13.4/libmat2/pdf.py:136: DeprecationWarning: 'count' is passed as positional argument out = re.sub(rb'<<[\s\n]*/Producer.*?>>', b' << >>', f.read(), 0, Warning: [minor] Can't delete IFD0 from TIFF - ./tests/data/clean.tiff /builddir/build/BUILD/mat2-0.13.4/libmat2/web.py:23: DeprecationWarning: 'count' is passed as positional argument cleaned = re.sub(r'/\*.*?\*/', '', content, 0, self.flags) FWarning: ICC_Profile deleted. Image colors may be affected - ./tests/data/clean.heic Warning: ICC_Profile deleted. Image colors may be affected - ./tests/data/clean.cleaned.heic ..........................................Warning: [minor] Can't delete IFD0 from TIFF - ./tests/data/clean.tiff ..... ====================================================================== FAIL: test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) (case={'name': 'mp4', 'ffmpeg': 1, 'parser': <class 'libmat2.video.MP4Parser'>, 'meta': {'Encoder': 'HandBrake 0.9.4 2009112300'}, 'expected_meta': {'AverageBitrate': 465641, 'BufferSize': 0, 'ColorPrimaries': 'BT.709', 'ColorProfiles': 'nclx', 'ColorRepresentation': 'nclx 1 1 1', 'CompatibleBrands': ['isom', 'iso2', 'avc1', 'mp41'], 'CompressorID': 'avc1', 'CompressorName': 'JVT/AVC Coding', 'GraphicsMode': 'srcCopy', 'HandlerDescription': 'SoundHandler', 'HandlerType': 'Metadata', 'HandlerVendorID': 'Apple', 'MajorBrand': 'Base Media v1 [IS0 14496-12:2003]', 'MatrixCoefficients': 'BT.709', 'MaxBitrate': 465641, 'MediaDataOffset': 48, 'MediaDataSize': 379872, 'MediaHeaderVersion': 0, 'MediaLanguageCode': 'eng', 'MinorVersion': '0.2.0', 'MovieDataOffset': 48, 'MovieHeaderVersion': 0, 'NextTrackID': 3, 'PreferredRate': 1, 'Rotation': 0, 'TimeScale': 1000, 'TrackHeaderVersion': 0, 'TrackID': 1, 'TrackLayer': 0, 'TransferCharacteristics': 'BT.709'}}) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/mat2-0.13.4/tests/test_libmat2.py", line 559, in test_all_parametred self.assertIn(k, case['expected_meta'], '"%s" is not in "%s" (%s)' % (k, case['expected_meta'], case['name'])) AssertionError: 'VideoFullRangeFlag' not found in {'AverageBitrate': 465641, 'BufferSize': 0, 'ColorPrimaries': 'BT.709', 'ColorProfiles': 'nclx', 'ColorRepresentation': 'nclx 1 1 1', 'CompatibleBrands': ['isom', 'iso2', 'avc1', 'mp41'], 'CompressorID': 'avc1', 'CompressorName': 'JVT/AVC Coding', 'GraphicsMode': 'srcCopy', 'HandlerDescription': 'SoundHandler', 'HandlerType': 'Metadata', 'HandlerVendorID': 'Apple', 'MajorBrand': 'Base Media v1 [IS0 14496-12:2003]', 'MatrixCoefficients': 'BT.709', 'MaxBitrate': 465641, 'MediaDataOffset': 48, 'MediaDataSize': 379872, 'MediaHeaderVersion': 0, 'MediaLanguageCode': 'eng', 'MinorVersion': '0.2.0', 'MovieDataOffset': 48, 'MovieHeaderVersion': 0, 'NextTrackID': 3, 'PreferredRate': 1, 'Rotation': 0, 'TimeScale': 1000, 'TrackHeaderVersion': 0, 'TrackID': 1, 'TrackLayer': 0, 'TransferCharacteristics': 'BT.709'} : "VideoFullRangeFlag" is not in "{'AverageBitrate': 465641, 'BufferSize': 0, 'ColorPrimaries': 'BT.709', 'ColorProfiles': 'nclx', 'ColorRepresentation': 'nclx 1 1 1', 'CompatibleBrands': ['isom', 'iso2', 'avc1', 'mp41'], 'CompressorID': 'avc1', 'CompressorName': 'JVT/AVC Coding', 'GraphicsMode': 'srcCopy', 'HandlerDescription': 'SoundHandler', 'HandlerType': 'Metadata', 'HandlerVendorID': 'Apple', 'MajorBrand': 'Base Media v1 [IS0 14496-12:2003]', 'MatrixCoefficients': 'BT.709', 'MaxBitrate': 465641, 'MediaDataOffset': 48, 'MediaDataSize': 379872, 'MediaHeaderVersion': 0, 'MediaLanguageCode': 'eng', 'MinorVersion': '0.2.0', 'MovieDataOffset': 48, 'MovieHeaderVersion': 0, 'NextTrackID': 3, 'PreferredRate': 1, 'Rotation': 0, 'TimeScale': 1000, 'TrackHeaderVersion': 0, 'TrackID': 1, 'TrackLayer': 0, 'TransferCharacteristics': 'BT.709'}" (mp4) ---------------------------------------------------------------------- Ran 121 tests in 70.775s FAILED (failures=1) https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692128-mat2/ For all our attempts to build mat2 with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/mat2/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.