Package: src:python-dicompylercore Version: 0.5.6-2 Severity: serious Tags: ftbfs trixie sid
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:311: python3.13 setup.py clean /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running clean removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.13' does not exist -- can't clean it dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:311: python3.13 setup.py config /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running config dh_auto_build -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/dicomparser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/dvhcalc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/dose.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/config.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore copying dicompylercore/dvh.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore running egg_info creating dicompyler_core.egg-info writing dicompyler_core.egg-info/PKG-INFO writing dependency_links to dicompyler_core.egg-info/dependency_links.txt writing requirements to dicompyler_core.egg-info/requires.txt writing top-level names to dicompyler_core.egg-info/top_level.txt writing manifest file 'dicompyler_core.egg-info/SOURCES.txt' reading manifest file 'dicompyler_core.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '*.DS_Store' found under directory '*' adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'dicompyler_core.egg-info/SOURCES.txt' dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m unittest discover -v test_dataset_import (tests.test_dicomparser.TestCommon.test_dataset_import) Test if a pydicom dataset file can be parsed. ... ok test_demographics (tests.test_dicomparser.TestCommon.test_demographics) Test if the demographics info can be parsed. ... ok test_file_import (tests.test_dicomparser.TestCommon.test_file_import) Test if a standard DICOM file can be parsed. ... ok test_frame_of_reference (tests.test_dicomparser.TestCommon.test_frame_of_reference) Test if the frame of reference can be parsed. ... ok test_missing_file_meta (tests.test_dicomparser.TestCommon.test_missing_file_meta) Test if a standard DICOM file can be parsed. ... ok test_series_info (tests.test_dicomparser.TestCommon.test_series_info) Test if the series info can be parsed. ... ok test_study_info (tests.test_dicomparser.TestCommon.test_study_info) Test if the study info can be parsed. ... ok test_image_data (tests.test_dicomparser.TestImage.test_image_data) Test if the image data info can be parsed. ... ok test_image_generation (tests.test_dicomparser.TestImage.test_image_generation) Test if the image can be generated. ... ERROR test_image_location (tests.test_dicomparser.TestImage.test_image_location) Test if the image location can be parsed. ... ok test_image_orientation (tests.test_dicomparser.TestImage.test_image_orientation) Test if the image orientation can be parsed. ... ok test_patient_to_pixel_lut (tests.test_dicomparser.TestImage.test_patient_to_pixel_lut) Test if the image transformation matrix (LUT) can be generated. ... ok test_dose_data (tests.test_dicomparser.TestRTDose.test_dose_data) Test if the dose data can be parsed. ... ok test_dose_grid (tests.test_dicomparser.TestRTDose.test_dose_grid) Test if the dose grid can be parsed. ... ok test_dvh_data (tests.test_dicomparser.TestRTDose.test_dvh_data) Test if the DVH data can be parsed. ... ok test_has_dvhs (tests.test_dicomparser.TestRTDose.test_has_dvhs) Test if DVHs exist in the dataset. ... ok test_isodose_points (tests.test_dicomparser.TestRTDose.test_isodose_points) Test if isodose points can be generated from the dose grid. ... ok test_isodose_points_memmap (tests.test_dicomparser.TestRTDose.test_isodose_points_memmap) Test if isodose points can be generated via a memmapped dose grid. ... ok test_referenced_plan (tests.test_dicomparser.TestRTDose.test_referenced_plan) Test if the referenced plan can be parsed. ... ok test_plan_beams_in_fraction (tests.test_dicomparser.TestRTPlan.test_plan_beams_in_fraction) Test if beams for a given fraction data can be parsed. ... ok test_plan_data (tests.test_dicomparser.TestRTPlan.test_plan_data) Test if the plan data can be parsed. ... ok test_referenced_structureset (tests.test_dicomparser.TestRTPlan.test_referenced_structureset) Test if the referenced structure set can be parsed. ... ok test_referenced_frame_of_reference (tests.test_dicomparser.TestRTStructureSet.test_referenced_frame_of_reference) Test if the referenced frame of reference can be parsed. ... ok test_referenced_series (tests.test_dicomparser.TestRTStructureSet.test_referenced_series) Test if the referenced series can be parsed. ... ok test_structure_plane_thickness (tests.test_dicomparser.TestRTStructureSet.test_structure_plane_thickness) Test if a structure plane thickness can be parsed. ... ok test_structure_set_coordinates (tests.test_dicomparser.TestRTStructureSet.test_structure_set_coordinates) Test if the structure set coordinates can be parsed. ... ok test_structure_set_data (tests.test_dicomparser.TestRTStructureSet.test_structure_set_data) Test if the structure set data can be parsed. ... ok test_structure_set_info (tests.test_dicomparser.TestRTStructureSet.test_structure_set_info) Test if the structure set info can be parsed. ... ok test_structure_volume (tests.test_dicomparser.TestRTStructureSet.test_structure_volume) Test if a structure volume can be calculated. ... ok test_structure_volume_holes (tests.test_dicomparser.TestRTStructureSet.test_structure_volume_holes) Test if a structure volume with holes can be calculated. ... ok test_add_attr_mismatch (tests.test_dose.TestDose.test_add_attr_mismatch) Test add fails with mismatched DoseSummationType ... ok test_add_dicom_sequence (tests.test_dose.TestDose.test_add_dicom_sequence) Test add_dicom_sequence by appending or creating a new sequence ... /usr/lib/python3/dist-packages/pydicom/valuerep.py:443: UserWarning: Invalid value for VR UI: 'TestUID1'. Please see <https://dicom.nema.org/medical/dicom/current/output/html/part05.html#table_6.2-1> for allowed values for each VR. warnings.warn(msg) /usr/lib/python3/dist-packages/pydicom/valuerep.py:443: UserWarning: Invalid value for VR UI: 'TestUID2'. Please see <https://dicom.nema.org/medical/dicom/current/output/html/part05.html#table_6.2-1> for allowed values for each VR. warnings.warn(msg) ok test_add_overload (tests.test_dose.TestDose.test_add_overload) Test the overloaded __add__ operator ... ok test_boundary_dose (tests.test_dose.TestDose.test_boundary_dose) Check boundary dose calculations ... ok test_dose_direct_sum (tests.test_dose.TestDose.test_dose_direct_sum) Test the direct summation of two coincident dose grids ... ok test_dose_interp_sum (tests.test_dose.TestDose.test_dose_interp_sum) Test the interpolated summation of two coincident dose grids ... ok test_interp_entire_grid (tests.test_dose.TestDose.test_interp_entire_grid) Test interp_entire_grid of two non-coincident dose grids ... ok test_interp_param (tests.test_dose.TestDose.test_interp_param) Test interp summation of two non-coincident dose grids with ... ok test_is_coincident (tests.test_dose.TestDose.test_is_coincident) Test spatial coincidence of two dose grids ... ok test_max_boundary_value (tests.test_dose.TestDose.test_max_boundary_value) Test the max_boundary_value function ... ok test_modality_check (tests.test_dose.TestDose.test_modality_check) Test non-RTDOSE raises AttributeError ... ok test_multiply (tests.test_dose.TestDose.test_multiply) Directly test the multiply function ... ok test_multiply_overload (tests.test_dose.TestDose.test_multiply_overload) Test the overloaded __mul__ operator ... ok test_non_uniform_dose_grid_scale (tests.test_dose.TestDose.test_non_uniform_dose_grid_scale) Check that a non-uniform dose grid is detected ... ok test_offset (tests.test_dose.TestDose.test_offset) Test dose grid resolution extraction from the DICOM data. ... ok test_right_multiply_overload (tests.test_dose.TestDose.test_right_multiply_overload) Test the overloaded __rmul__ operator ... ok test_save_dcm (tests.test_dose.TestDose.test_save_dcm) Test save DoseGrid to DICOM ... ok test_scale (tests.test_dose.TestDose.test_scale) Test dose grid resolution extraction from the DICOM data. ... ok test_set_dicom_tag_value (tests.test_dose.TestDose.test_set_dicom_tag_value) Test set_dicom_tag_value by tag and keyword ... ok test_shape (tests.test_dose.TestDose.test_shape) Test dose grid shape extraction from the DICOM data. ... ok test_show (tests.test_dose.TestDose.test_show) Test if the dose grid can be shown. ... ok test_validate_attr_equality (tests.test_dose.TestDose.test_validate_attr_equality) Test validate_attr_equality ... ok test_absolute_relative_dose_dvh (tests.test_dvh.TestDVH.test_absolute_relative_dose_dvh) Test if an absolute and relative dose DVH can be generated. ... ok test_absolute_relative_full_conversion (tests.test_dvh.TestDVH.test_absolute_relative_full_conversion) Test if an abs / relative volume / dose DVH can be generated. ... ok test_absolute_relative_volume_dvh (tests.test_dvh.TestDVH.test_absolute_relative_volume_dvh) Test if an absolute and relative volume DVH can be generated. ... ok test_cumulative_dvh (tests.test_dvh.TestDVH.test_cumulative_dvh) Test if a differential DVH can be converted to a cumulative DVH. ... ok test_differential_dvh (tests.test_dvh.TestDVH.test_differential_dvh) Test if a cumulative DVH can be converted to a differential DVH. ... ok test_dose_constraint_with_no_counts (tests.test_dvh.TestDVH.test_dose_constraint_with_no_counts) ... ok test_dose_constraint_with_zero_volume (tests.test_dvh.TestDVH.test_dose_constraint_with_zero_volume) ... ok test_dvh_compare (tests.test_dvh.TestDVH.test_dvh_compare) Test if the DVH comparsion summary can be generated. ... ok test_dvh_describe (tests.test_dvh.TestDVH.test_dvh_describe) Test if the DVH statistics summary can be generated. ... ok test_dvh_dosescaling (tests.test_dvh.TestDVH.test_dvh_dosescaling) Test if the DVH Dose Scaling is applied properly. ... ok test_dvh_properties (tests.test_dvh.TestDVH.test_dvh_properties) Test if the DVH properties can be derived. ... ok test_dvh_statistics (tests.test_dvh.TestDVH.test_dvh_statistics) Test if the DVH statistics can be calculated. ... ok test_dvh_statistics_shorthand (tests.test_dvh.TestDVH.test_dvh_statistics_shorthand) Test if the DVH statistics can be accessed via shorthand. ... ok test_dvh_statistics_shorthand_fail (tests.test_dvh.TestDVH.test_dvh_statistics_shorthand_fail) Test if the DVH statistics shorthand fail on invalid syntaxes. ... ok test_dvh_statistics_with_no_counts (tests.test_dvh.TestDVH.test_dvh_statistics_with_no_counts) ... ok test_dvh_statistics_with_zero_volume (tests.test_dvh.TestDVH.test_dvh_statistics_with_zero_volume) ... ok test_dvh_value (tests.test_dvh.TestDVH.test_dvh_value) Test if the DVHValue class works as expected. ... ok test_plotting (tests.test_dvh.TestDVH.test_plotting) Test if the DVH can be plotted. ... ok test_raw_data_dvh (tests.test_dvh.TestDVH.test_raw_data_dvh) Test if a DVH can be created from raw data. ... FAIL test_raw_data_dvh_max_bins (tests.test_dvh.TestDVH.test_raw_data_dvh_max_bins) Test if a DVH can be created from raw data with [0, 5] bin. ... ok test_dvh_calculation (tests.test_dvhcalc.TestDVHCalc.test_dvh_calculation) Test if cumulative DVHs can be calculated from the DICOM data. ... ok test_dvh_calculation_empty_structure_no_dose (tests.test_dvhcalc.TestDVHCalc.test_dvh_calculation_empty_structure_no_dose) Test if a DVH returns an empty histogram for invalid data. ... ok test_dvh_calculation_memmap (tests.test_dvhcalc.TestDVHCalc.test_dvh_calculation_memmap) Test if DVHs can be calculated with memmapped RT Dose. ... ok test_dvh_calculation_with_dose_limit (tests.test_dvhcalc.TestDVHCalc.test_dvh_calculation_with_dose_limit) Test if a DVH can be calculated with a max dose limit. ... ok test_dvh_calculation_with_interpolation_between_planes (tests.test_dvhcalc.TestDVHCalc.test_dvh_calculation_with_interpolation_between_planes) Test if DVH can be calculated using interpolation between planes. ... ok test_dvh_contour_outside_dose_grid (tests.test_dvhcalc.TestDVHCalc.test_dvh_contour_outside_dose_grid) Test if a DVH can be calculated with contours outside a dosegrid. ... Dose plane not found for 180.00. Using -122.4407 to calculate contour volume. Dose plane not found for 180.00. Contours not used for volume calculation. ok test_dvh_with_in_plane_interpolation (tests.test_dvhcalc.TestDVHCalc.test_dvh_with_in_plane_interpolation) Test if DVH can be calculated using in plane interpolation. ... ok test_dvh_with_in_plane_interpolation_non_square_pixel_spacing (tests.test_dvhcalc.TestDVHCalc.test_dvh_with_in_plane_interpolation_non_square_pixel_spacing) Test non-square pixel spacing DVH calculation with interpolation. ... ok test_dvh_with_in_plane_interpolation_sampling_fail (tests.test_dvhcalc.TestDVHCalc.test_dvh_with_in_plane_interpolation_sampling_fail) Test if DVH calculation fails when the sampling rate is invalid. ... ok test_dvh_with_structure_extents (tests.test_dvhcalc.TestDVHCalc.test_dvh_with_structure_extents) Test if DVH calculation is same as normal with structure extents. ... ok test_dvh_with_structure_extents_larger_than_dose_grid (tests.test_dvhcalc.TestDVHCalc.test_dvh_with_structure_extents_larger_than_dose_grid) Test DVH calculation using large structure structure extents. ... ok test_FF_decubitus_left (tests.test_dvhcalc.TestDVHCalcDecubitus.test_FF_decubitus_left) Test DVH for feet-first decubitus left orientation. ... ok test_FF_decubitus_right (tests.test_dvhcalc.TestDVHCalcDecubitus.test_FF_decubitus_right) Test DVH for feet-first decubitus right orientation. ... ok test_FF_decubitus_right_structure_extents (tests.test_dvhcalc.TestDVHCalcDecubitus.test_FF_decubitus_right_structure_extents) Test DVH for FF decubitus Rt orientation using structure extents. ... ok test_HF_decubitus_left (tests.test_dvhcalc.TestDVHCalcDecubitus.test_HF_decubitus_left) Test DVH for head-first decubitus left orientation. ... ok test_HF_decubitus_left_structure_extents (tests.test_dvhcalc.TestDVHCalcDecubitus.test_HF_decubitus_left_structure_extents) Test DVH for HF decubitus Lt orientation structure_extents used. ... ok test_HF_decubitus_right (tests.test_dvhcalc.TestDVHCalcDecubitus.test_HF_decubitus_right) Test DVH for head-first decubitus right orientation. ... ok test_empty_dose_grid (tests.test_dvhcalc.TestDVHCalcDecubitus.test_empty_dose_grid) Test empty dose grid handled correctly. ... Dose plane not found for -10.00. Using -1020.0 to calculate contour volume. Dose plane not found for 0.00. Using -1020.0 to calculate contour volume. Dose plane not found for 10.00. Using -1020.0 to calculate contour volume. ok test_nondecub (tests.test_dvhcalc.TestDVHCalcDecubitus.test_nondecub) Test that DVH is calculated correctly for standard orientation. ... ok test_not_implemented_orientations (tests.test_dvhcalc.TestDVHCalcDecubitus.test_not_implemented_orientations) Test unhandled orientations raise NotImplementedError. ... ok ====================================================================== ERROR: test_image_generation (tests.test_dicomparser.TestImage.test_image_generation) Test if the image can be generated. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dicomparser.py", line 141, in test_image_generation self.assertEqual(self.dp.GetImage().getpixel((255, 254)), image) ~~~~~~~~~~~~~~~~^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 407, in GetImage image = self.GetLUTValue(rescaled_image, window, level) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 472, in GetLUTValue lutvalue = util.piecewise( data, ...<3 lines>... ((data - (level - 0.5)) / (window-1) + 0.5) * (255 - 0)]) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/util.py", line 135, in piecewise if not isinstance(item, collections.Callable): ^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'collections' has no attribute 'Callable' ====================================================================== FAIL: test_raw_data_dvh (tests.test_dvh.TestDVH.test_raw_data_dvh) Test if a DVH can be created from raw data. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dvh.py", line 41, in test_raw_data_dvh self.assertEqual( ~~~~~~~~~~~~~~~~^ repr(dvh.DVH.from_data(1, 1)), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "DVH(cumulative, 1 bins: [0:1] Gy, volume: 1 cm3, " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "name: None, rx_dose: 0 Gy)") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 'DVH([16 chars]ns: [np.int64(0):np.int64(1)] Gy, volume: np.i[35 chars] Gy)' != 'DVH([16 chars]ns: [0:1] Gy, volume: 1 cm3, name: None, rx_dose: 0 Gy)' - DVH(cumulative, 1 bins: [np.int64(0):np.int64(1)] Gy, volume: np.int64(1) cm3, name: None, rx_dose: 0 Gy) ? --------- - --------- - --------- - + DVH(cumulative, 1 bins: [0:1] Gy, volume: 1 cm3, name: None, rx_dose: 0 Gy) ---------------------------------------------------------------------- Ran 92 tests in 3.672s FAILED (failures=1, errors=1) Structure: test test Rel Diff Abs diff ----- DVH Type: cumulative, abs dose: Gy, abs volume: cm3 Volume: 12.81 cm3 12.81 cm3 +0.00 % +0.00 Max: 14.58 Gy 14.58 Gy +0.00 % +0.00 Min: 14.07 Gy 14.07 Gy +0.00 % +0.00 Mean: 14.29 Gy 14.29 Gy +0.00 % +0.00 D100: 14.06 Gy 14.06 Gy +0.00 % +0.00 D98: 14.12 Gy 14.12 Gy +0.00 % +0.00 D95: 14.14 Gy 14.14 Gy +0.00 % +0.00 D2cc: 14.39 Gy 14.39 Gy +0.00 % +0.00 Structure: test test Rel Diff Abs diff ----- DVH Type: cumulative, rel dose, abs volume: cm3 Volume: 12.81 cm3 12.81 cm3 +0.00 % +0.00 Max: 104.14 % 104.14 % +0.00 % +0.00 Min: 100.50 % 100.50 % +0.00 % +0.00 Mean: 102.04 % 102.04 % +0.00 % +0.00 D100: 100.43 % 100.43 % +0.00 % +0.00 D98: 100.86 % 100.86 % +0.00 % +0.00 D95: 101.00 % 101.00 % +0.00 % +0.00 V100: 12.81 % 12.81 % +0.00 % +0.00 V95: 12.81 % 12.81 % +0.00 % +0.00 V5: 12.81 % 12.81 % +0.00 % +0.00 D2cc: 102.79 % 102.79 % +0.00 % +0.00 Structure: test ----- DVH Type: cumulative, abs dose: Gy, abs volume: cm3 Volume: 12.81 cm3 Max Dose: 14.58 Gy Min Dose: 14.07 Gy Mean Dose: 14.29 Gy D100: 14.06 Gy D98: 14.12 Gy D95: 14.14 Gy D2cc: 14.39 Gy Structure: test ----- DVH Type: cumulative, rel dose, abs volume: cm3 Volume: 12.81 cm3 Max Dose: 104.14 % Min Dose: 100.50 % Mean Dose: 102.04 % D100: 100.43 % D98: 100.86 % D95: 101.00 % V100: 12.81 cm3 V95: 12.81 cm3 V5: 12.81 cm3 D2cc: 102.79 % [2.5, 2.5] E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m unittest discover -v dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13 make: *** [debian/rules:6: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- The above is just how the build ends and not necessarily the most relevant part. If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202502/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you could not reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:python-dicompylercore, so that this is still visible in the BTS web page for this package. Thanks.