Bug#1073418: sasdata: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 14:10:05 BST 2024
Source: sasdata
Version: 0.8.1-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> 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.12 setup.py config
> __version__ = "0.8.1"
>
> running config
> I: pybuild base:311: python3.11 setup.py config
> __version__ = "0.8.1"
>
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:311: /usr/bin/python3.12 setup.py build
> __version__ = "0.8.1"
>
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata
> copying sasdata/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/data_info.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/filereader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/danse_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/csv_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/tiff_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/sesans_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/abs_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/xml_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/anton_paar_saxs_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_reader_HDF5.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/ascii_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/associations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/red2d_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/otoko_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/ascii2d_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/FileConverterUtilities.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/red2d_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/nxcansas_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/bsl_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/cansas_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/file_converter
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/uncertainty.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/manipulations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/nxsunit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/formatnum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/registry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/err1d.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/loader_exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> copying sasdata/data_util/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_v1_0.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_invalid_v1_0.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_v1_1.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_invalid_v1_1.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/schema
> I: pybuild base:311: /usr/bin/python3 setup.py build
> __version__ = "0.8.1"
>
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata
> copying sasdata/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/data_info.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/filereader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader
> copying sasdata/dataloader/loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/danse_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/csv_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/tiff_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/sesans_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/abs_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/xml_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/anton_paar_saxs_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_reader_HDF5.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/ascii_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/associations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/cansas_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> copying sasdata/dataloader/readers/red2d_reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/otoko_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/ascii2d_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/FileConverterUtilities.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/red2d_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/nxcansas_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/bsl_loader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> copying sasdata/file_converter/cansas_writer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/file_converter
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/uncertainty.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/manipulations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/nxsunit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/formatnum.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/registry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/err1d.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/loader_exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> copying sasdata/data_util/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_v1_0.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_invalid_v1_0.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_v1_1.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/schema
> copying sasdata/dataloader/readers/schema/cansas1d_invalid_v1_1.xsd -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/schema
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build; python3.12 -m pytest -v
> ============================= test session starts ==============================
> platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3.12
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build
> configfile: pytest.ini
> collecting ... collected 90 items
>
> test/fileconverter/utest_bsl_loader.py::bsl_test::test_load PASSED [ 1%]
> test/fileconverter/utest_nxcansas_writer.py::nxcansas_writer::test_write_1d PASSED [ 2%]
> test/fileconverter/utest_nxcansas_writer.py::nxcansas_writer::test_write_2d PASSED [ 3%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_abs_checkdata PASSED [ 4%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_checkdata2 PASSED [ 5%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_generic_loader PASSED [ 6%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_usans_negative_dxl PASSED [ 7%]
> test/sasdataloader/utest_abs_reader.py::DanseReaderTests::test_checkdata PASSED [ 8%]
> test/sasdataloader/utest_abs_reader.py::DanseReaderTests::test_generic_loader PASSED [ 10%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_checkdata PASSED [ 11%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_encoding PASSED [ 12%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_nan_values PASSED [ 13%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_save_ascii PASSED [ 14%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_1 PASSED [ 15%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_2 PASSED [ 16%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_3 PASSED [ 17%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_4 PASSED [ 18%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_5 PASSED [ 20%]
> test/sasdataloader/utest_averaging.py::Averaging::test_ring_flat_distribution PASSED [ 21%]
> test/sasdataloader/utest_averaging.py::Averaging::test_sectorphi_full PASSED [ 22%]
> test/sasdataloader/utest_averaging.py::Averaging::test_sectorphi_partial PASSED [ 23%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_box PASSED [ 24%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_circularavg PASSED [ 25%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_ring PASSED [ 26%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorphi_full PASSED [ 27%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorphi_quarter PASSED [ 28%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorq_full PASSED [ 30%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorq_log PASSED [ 31%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_slabX PASSED [ 32%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_slabY PASSED [ 33%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_badunits PASSED [ 34%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_cansas_checkdata PASSED [ 35%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_cansas_xml PASSED [ 36%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_double_trans_spectra PASSED [ 37%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_entry_name_recurse PASSED [ 38%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_generic_loader PASSED [ 40%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_cansas FAILED [ 41%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_xml PASSED [ 42%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_load_cansas_file PASSED [ 43%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_multiple_sasentries_multiplesasdatas PASSED [ 44%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_old_cansas_files PASSED [ 45%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_processing_instructions PASSED [ 46%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_real_xml PASSED [ 47%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_save_cansas_v1_0 PASSED [ 48%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_slits PASSED [ 50%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_units PASSED [ 51%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_writer PASSED [ 52%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_xml_validate PASSED [ 53%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multi_frame_data PASSED [ 54%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasdatas PASSED [ 55%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasentries PASSED [ 56%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasentries_multiplesasdatas PASSED [ 57%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_no_di PASSED [ 58%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_real_data PASSED [ 60%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_data_reader_exception FAILED [ 61%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_wrong_known_ext PASSED [ 62%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_wrong_unknown_ext PASSED [ 63%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_bad_file_path PASSED [ 64%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_good_file_path PASSED [ 65%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_old_file_types PASSED [ 66%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_same_file_unknown_extensions PASSED [ 67%]
> test/sasdataloader/utest_red2d_reader.py::DatReaderTests::test_check_rectangular_data PASSED [ 68%]
> test/sasdataloader/utest_red2d_reader.py::DatReaderTests::test_check_square_data PASSED [ 70%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_full_load PASSED [ 71%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_columns_match_headers PASSED [ 72%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_future_version PASSED [ 73%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_mandatory_headers PASSED [ 74%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_no_data PASSED [ 75%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_no_spin_echo_unit PASSED [ 76%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_tof PASSED [ 77%]
> test/sasmanipulations/utest_manipulations.py::DataInfoTests::test_clone1D PASSED [ 78%]
> test/sasmanipulations/utest_manipulations.py::Theory1DTests::test_clone_theory1D PASSED [ 80%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_add PASSED [ 81%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_div PASSED [ 82%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_load PASSED [ 83%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_mul PASSED [ 84%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_radd PASSED [ 85%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rdiv PASSED [ 86%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rmul PASSED [ 87%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rsub PASSED [ 88%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_sub PASSED [ 90%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_add PASSED [ 91%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_div PASSED [ 92%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_load PASSED [ 93%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_mul PASSED [ 94%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_radd PASSED [ 95%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rdiv PASSED [ 96%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rmul PASSED [ 97%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rsub PASSED [ 98%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_sub PASSED [100%]
>
> =================================== FAILURES ===================================
> ____________________ cansas_reader_xml.test_invalid_cansas _____________________
>
> self = <test.sasdataloader.utest_cansas.cansas_reader_xml testMethod=test_invalid_cansas>
>
> def test_invalid_cansas(self):
> > list = self.loader.load(self.cansas1d_notitle)
>
> test/sasdataloader/utest_cansas.py:167:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> sasdata/dataloader/loader.py:373: in load
> return self.__registry.load(file, format)
> sasdata/dataloader/loader.py:92: in load
> return self.load_using_generic_loaders(path)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <sasdata.dataloader.loader.Registry object at 0x7fb689772030>
> path = '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml'
>
> def load_using_generic_loaders(self, path: str) -> list:
> """
> If the expected reader cannot load the file or no known loader exists,
> attempt to load the file using a few defaults readers
> :param path: file path
> :return: List of Data1D and Data2D objects
> """
> module_list = readers.get_generic_readers()
> for module in module_list:
> reader = module.Reader()
> try:
> data_list = reader.read(path)
> if data_list:
> return data_list
> except Exception as e:
> # Cycle through all generic readers
> pass
> # Only throw exception if all generic readers fail
> > raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> E sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
>
> sasdata/dataloader/loader.py:121: NoKnownLoaderException
> ----------------------------- Captured stderr call -----------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 95, in read
> self.get_file_contents()
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 85, in get_file_contents
> is_valid_cansas = self.load_file_and_schema(xml_file, '')
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 134, in load_file_and_schema
> return self.is_cansas(self.extension)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 161, in is_cansas
> if self.validate_xml():
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/xml_reader.py", line 126, in validate_xml
> schema_check = etree.XMLSchema(self.schemadoc)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "src/lxml/xmlschema.pxi", line 90, in lxml.etree.XMLSchema.__init__
> lxml.etree.XMLSchemaParseError: complex type 'SASentryType': The content model is not determinist., line 70
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 79, in load
> data_list = super().load(path, ext=ext)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util/registry.py", line 134, in load
> raise last_exc
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util/registry.py", line 129, in load
> return load_function(path)
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 106, in read
> self.handle_error_message(str(e))
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 169, in handle_error_message
> raise NoKnownLoaderException(msg)
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: complex type 'SASentryType': The content model is not determinist., line 70
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 92, in load
> return self.load_using_generic_loaders(path)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 121, in load_using_generic_loaders
> raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> ------------------------------ Captured log call -------------------------------
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 ASCII Reader could not load the file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 NXcanSAS Reader could not load file cansas1d_notitle.xml.xml
> ERROR sasdata.dataloader.loader:loader.py:97 Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> Unknown data format: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml.
> The file is not a format that can be loaded by SasView.
> ______________ ExtensionRegistryTests.test_data_reader_exception _______________
>
> self = <test.sasdataloader.utest_extension_registry.ExtensionRegistryTests testMethod=test_data_reader_exception>
>
> def test_data_reader_exception(self):
> """
> Load a CanSAS XML file that doesn't meet the schema, and check errors
> are set correctly
> """
> > data = self.loader.load(self.invalid_file)
>
> test/sasdataloader/utest_extension_registry.py:71:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> sasdata/dataloader/loader.py:92: in load
> return self.load_using_generic_loaders(path)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <sasdata.dataloader.loader.Registry object at 0x7fb684bf1b50>
> path = '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml'
>
> def load_using_generic_loaders(self, path: str) -> list:
> """
> If the expected reader cannot load the file or no known loader exists,
> attempt to load the file using a few defaults readers
> :param path: file path
> :return: List of Data1D and Data2D objects
> """
> module_list = readers.get_generic_readers()
> for module in module_list:
> reader = module.Reader()
> try:
> data_list = reader.read(path)
> if data_list:
> return data_list
> except Exception as e:
> # Cycle through all generic readers
> pass
> # Only throw exception if all generic readers fail
> > raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> E sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
>
> sasdata/dataloader/loader.py:121: NoKnownLoaderException
> ----------------------------- Captured stderr call -----------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 95, in read
> self.get_file_contents()
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 85, in get_file_contents
> is_valid_cansas = self.load_file_and_schema(xml_file, '')
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 134, in load_file_and_schema
> return self.is_cansas(self.extension)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 161, in is_cansas
> if self.validate_xml():
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/readers/xml_reader.py", line 126, in validate_xml
> schema_check = etree.XMLSchema(self.schemadoc)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "src/lxml/xmlschema.pxi", line 90, in lxml.etree.XMLSchema.__init__
> lxml.etree.XMLSchemaParseError: complex type 'SASentryType': The content model is not determinist., line 70
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 79, in load
> data_list = super().load(path, ext=ext)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util/registry.py", line 134, in load
> raise last_exc
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/data_util/registry.py", line 129, in load
> return load_function(path)
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 106, in read
> self.handle_error_message(str(e))
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/filereader.py", line 169, in handle_error_message
> raise NoKnownLoaderException(msg)
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: complex type 'SASentryType': The content model is not determinist., line 70
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 92, in load
> return self.load_using_generic_loaders(path)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/sasdata/dataloader/loader.py", line 121, in load_using_generic_loaders
> raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> ------------------------------ Captured log call -------------------------------
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 ASCII Reader could not load the file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 NXcanSAS Reader could not load file cansas1d_notitle.xml.xml
> ERROR sasdata.dataloader.loader:loader.py:97 Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> Unknown data format: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml.
> The file is not a format that can be loaded by SasView.
> =========================== short test summary info ============================
> FAILED test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_cansas
> FAILED test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_data_reader_exception
> ========================= 2 failed, 88 passed in 3.06s =========================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_sasdata/build; python3.12 -m pytest -v
> I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build; python3.11 -m pytest -v
> ============================= test session starts ==============================
> platform linux -- Python 3.11.9, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3.11
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build
> configfile: pytest.ini
> collecting ... collected 90 items
>
> test/fileconverter/utest_bsl_loader.py::bsl_test::test_load PASSED [ 1%]
> test/fileconverter/utest_nxcansas_writer.py::nxcansas_writer::test_write_1d PASSED [ 2%]
> test/fileconverter/utest_nxcansas_writer.py::nxcansas_writer::test_write_2d PASSED [ 3%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_abs_checkdata PASSED [ 4%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_checkdata2 PASSED [ 5%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_generic_loader PASSED [ 6%]
> test/sasdataloader/utest_abs_reader.py::abs_reader::test_usans_negative_dxl PASSED [ 7%]
> test/sasdataloader/utest_abs_reader.py::DanseReaderTests::test_checkdata PASSED [ 8%]
> test/sasdataloader/utest_abs_reader.py::DanseReaderTests::test_generic_loader PASSED [ 10%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_checkdata PASSED [ 11%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_encoding PASSED [ 12%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_nan_values PASSED [ 13%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_save_ascii PASSED [ 14%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_1 PASSED [ 15%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_2 PASSED [ 16%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_3 PASSED [ 17%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_4 PASSED [ 18%]
> test/sasdataloader/utest_ascii.py::ABSReaderTests::test_truncated_5 PASSED [ 20%]
> test/sasdataloader/utest_averaging.py::Averaging::test_ring_flat_distribution PASSED [ 21%]
> test/sasdataloader/utest_averaging.py::Averaging::test_sectorphi_full PASSED [ 22%]
> test/sasdataloader/utest_averaging.py::Averaging::test_sectorphi_partial PASSED [ 23%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_box PASSED [ 24%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_circularavg PASSED [ 25%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_ring PASSED [ 26%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorphi_full PASSED [ 27%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorphi_quarter PASSED [ 28%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorq_full PASSED [ 30%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_sectorq_log PASSED [ 31%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_slabX PASSED [ 32%]
> test/sasdataloader/utest_averaging.py::DataInfoTests::test_slabY PASSED [ 33%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_badunits PASSED [ 34%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_cansas_checkdata PASSED [ 35%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_cansas_xml PASSED [ 36%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_double_trans_spectra PASSED [ 37%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_entry_name_recurse PASSED [ 38%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_generic_loader PASSED [ 40%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_cansas FAILED [ 41%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_xml PASSED [ 42%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_load_cansas_file PASSED [ 43%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_multiple_sasentries_multiplesasdatas PASSED [ 44%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_old_cansas_files PASSED [ 45%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_processing_instructions PASSED [ 46%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_real_xml PASSED [ 47%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_save_cansas_v1_0 PASSED [ 48%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_slits PASSED [ 50%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_units PASSED [ 51%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_writer PASSED [ 52%]
> test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_xml_validate PASSED [ 53%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multi_frame_data PASSED [ 54%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasdatas PASSED [ 55%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasentries PASSED [ 56%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_multiple_sasentries_multiplesasdatas PASSED [ 57%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_no_di PASSED [ 58%]
> test/sasdataloader/utest_cansas.py::cansas_reader_hdf5::test_real_data PASSED [ 60%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_data_reader_exception FAILED [ 61%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_wrong_known_ext PASSED [ 62%]
> test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_wrong_unknown_ext PASSED [ 63%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_bad_file_path PASSED [ 64%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_good_file_path PASSED [ 65%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_old_file_types PASSED [ 66%]
> test/sasdataloader/utest_generic_file_reader_class.py::GenericFileReaderTests::test_same_file_unknown_extensions PASSED [ 67%]
> test/sasdataloader/utest_red2d_reader.py::DatReaderTests::test_check_rectangular_data PASSED [ 68%]
> test/sasdataloader/utest_red2d_reader.py::DatReaderTests::test_check_square_data PASSED [ 70%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_full_load PASSED [ 71%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_columns_match_headers PASSED [ 72%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_future_version PASSED [ 73%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_mandatory_headers PASSED [ 74%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_no_data PASSED [ 75%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_no_spin_echo_unit PASSED [ 76%]
> test/sasdataloader/utest_sesans.py::sesans_reader::test_sesans_tof PASSED [ 77%]
> test/sasmanipulations/utest_manipulations.py::DataInfoTests::test_clone1D PASSED [ 78%]
> test/sasmanipulations/utest_manipulations.py::Theory1DTests::test_clone_theory1D PASSED [ 80%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_add PASSED [ 81%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_div PASSED [ 82%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_load PASSED [ 83%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_mul PASSED [ 84%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_radd PASSED [ 85%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rdiv PASSED [ 86%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rmul PASSED [ 87%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_rsub PASSED [ 88%]
> test/sasmanipulations/utest_manipulations.py::ManipTests::test_sub PASSED [ 90%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_add PASSED [ 91%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_div PASSED [ 92%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_load PASSED [ 93%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_mul PASSED [ 94%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_radd PASSED [ 95%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rdiv PASSED [ 96%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rmul PASSED [ 97%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_rsub PASSED [ 98%]
> test/sasmanipulations/utest_manipulations.py::Manin2DTests::test_sub PASSED [100%]
>
> =================================== FAILURES ===================================
> ____________________ cansas_reader_xml.test_invalid_cansas _____________________
>
> self = <test.sasdataloader.utest_cansas.cansas_reader_xml testMethod=test_invalid_cansas>
>
> def test_invalid_cansas(self):
> > list = self.loader.load(self.cansas1d_notitle)
>
> test/sasdataloader/utest_cansas.py:167:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> sasdata/dataloader/loader.py:373: in load
> return self.__registry.load(file, format)
> sasdata/dataloader/loader.py:92: in load
> return self.load_using_generic_loaders(path)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <sasdata.dataloader.loader.Registry object at 0x7f0b93747550>
> path = '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml'
>
> def load_using_generic_loaders(self, path: str) -> list:
> """
> If the expected reader cannot load the file or no known loader exists,
> attempt to load the file using a few defaults readers
> :param path: file path
> :return: List of Data1D and Data2D objects
> """
> module_list = readers.get_generic_readers()
> for module in module_list:
> reader = module.Reader()
> try:
> data_list = reader.read(path)
> if data_list:
> return data_list
> except Exception as e:
> # Cycle through all generic readers
> pass
> # Only throw exception if all generic readers fail
> > raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> E sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
>
> sasdata/dataloader/loader.py:121: NoKnownLoaderException
> ----------------------------- Captured stderr call -----------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 95, in read
> self.get_file_contents()
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 85, in get_file_contents
> is_valid_cansas = self.load_file_and_schema(xml_file, '')
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 134, in load_file_and_schema
> return self.is_cansas(self.extension)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 161, in is_cansas
> if self.validate_xml():
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/xml_reader.py", line 126, in validate_xml
> schema_check = etree.XMLSchema(self.schemadoc)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "src/lxml/xmlschema.pxi", line 90, in lxml.etree.XMLSchema.__init__
> lxml.etree.XMLSchemaParseError: complex type 'SASentryType': The content model is not determinist., line 70
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 79, in load
> data_list = super().load(path, ext=ext)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util/registry.py", line 134, in load
> raise last_exc
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util/registry.py", line 129, in load
> return load_function(path)
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 106, in read
> self.handle_error_message(str(e))
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 169, in handle_error_message
> raise NoKnownLoaderException(msg)
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: complex type 'SASentryType': The content model is not determinist., line 70
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 92, in load
> return self.load_using_generic_loaders(path)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 121, in load_using_generic_loaders
> raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> ------------------------------ Captured log call -------------------------------
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 ASCII Reader could not load the file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 NXcanSAS Reader could not load file cansas1d_notitle.xml.xml
> ERROR sasdata.dataloader.loader:loader.py:97 Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> Unknown data format: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml.
> The file is not a format that can be loaded by SasView.
> ______________ ExtensionRegistryTests.test_data_reader_exception _______________
>
> self = <test.sasdataloader.utest_extension_registry.ExtensionRegistryTests testMethod=test_data_reader_exception>
>
> def test_data_reader_exception(self):
> """
> Load a CanSAS XML file that doesn't meet the schema, and check errors
> are set correctly
> """
> > data = self.loader.load(self.invalid_file)
>
> test/sasdataloader/utest_extension_registry.py:71:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> sasdata/dataloader/loader.py:92: in load
> return self.load_using_generic_loaders(path)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <sasdata.dataloader.loader.Registry object at 0x7f0b8e0b3590>
> path = '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml'
>
> def load_using_generic_loaders(self, path: str) -> list:
> """
> If the expected reader cannot load the file or no known loader exists,
> attempt to load the file using a few defaults readers
> :param path: file path
> :return: List of Data1D and Data2D objects
> """
> module_list = readers.get_generic_readers()
> for module in module_list:
> reader = module.Reader()
> try:
> data_list = reader.read(path)
> if data_list:
> return data_list
> except Exception as e:
> # Cycle through all generic readers
> pass
> # Only throw exception if all generic readers fail
> > raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> E sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
>
> sasdata/dataloader/loader.py:121: NoKnownLoaderException
> ----------------------------- Captured stderr call -----------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 95, in read
> self.get_file_contents()
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 85, in get_file_contents
> is_valid_cansas = self.load_file_and_schema(xml_file, '')
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 134, in load_file_and_schema
> return self.is_cansas(self.extension)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/cansas_reader.py", line 161, in is_cansas
> if self.validate_xml():
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/readers/xml_reader.py", line 126, in validate_xml
> schema_check = etree.XMLSchema(self.schemadoc)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "src/lxml/xmlschema.pxi", line 90, in lxml.etree.XMLSchema.__init__
> lxml.etree.XMLSchemaParseError: complex type 'SASentryType': The content model is not determinist., line 70
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 79, in load
> data_list = super().load(path, ext=ext)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util/registry.py", line 134, in load
> raise last_exc
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/data_util/registry.py", line 129, in load
> return load_function(path)
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 106, in read
> self.handle_error_message(str(e))
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/filereader.py", line 169, in handle_error_message
> raise NoKnownLoaderException(msg)
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: complex type 'SASentryType': The content model is not determinist., line 70
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 92, in load
> return self.load_using_generic_loaders(path)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/sasdata/dataloader/loader.py", line 121, in load_using_generic_loaders
> raise NoKnownLoaderException(f"Generic readers failed to load {path}")
> sasdata.data_util.loader_exceptions.NoKnownLoaderException: Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> ------------------------------ Captured log call -------------------------------
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 ASCII Reader could not load the file /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> WARNING sasdata.dataloader.filereader:filereader.py:168 complex type 'SASentryType': The content model is not determinist., line 70
> WARNING sasdata.dataloader.filereader:filereader.py:168 NXcanSAS Reader could not load file cansas1d_notitle.xml.xml
> ERROR sasdata.dataloader.loader:loader.py:97 Generic readers failed to load /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml
> Unknown data format: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build/test/sasdataloader/data/cansas1d_notitle.xml.
> The file is not a format that can be loaded by SasView.
> =========================== short test summary info ============================
> FAILED test/sasdataloader/utest_cansas.py::cansas_reader_xml::test_invalid_cansas
> FAILED test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_data_reader_exception
> ========================= 2 failed, 88 passed in 3.65s =========================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sasdata/build; python3.11 -m pytest -v
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/sasdata_0.8.1-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the debian-science-maintainers
mailing list