Package: src:guidata Version: 3.6.2-3 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202511/ 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 cannot 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:guidata, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with=python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild debian/rules execute_before_dh_clean make[1]: Entering directory '/<<PKGBUILDDIR>>' rm -rf build/html make[1]: Leaving directory '/<<PKGBUILDDIR>>' 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 dh_auto_build -O--buildsystem=pybuild [... snipped ...] writing output... [ 67%] reference/dataset/io writing output... [ 71%] reference/dataset/qtwidgets writing output... [ 75%] reference/guitest writing output... [ 79%] reference/index writing output... [ 83%] reference/userconfig writing output... [ 88%] reference/utils writing output... [ 92%] reference/widgets writing output... [ 96%] requirements writing output... [100%] widgets generating indices... genindex py-modindex done writing additional pages... search done copying images... [ 6%] images/basic_example.png copying images... [ 12%] images/screenshots/__init__.png copying images... [ 19%] images/screenshots/all_items.png copying images... [ 25%] images/screenshots/all_features.png copying images... [ 31%] images/screenshots/editgroupbox.png copying images... [ 38%] images/screenshots/bool_selector.png copying images... [ 44%] images/screenshots/activable_dataset.png copying images... [ 50%] images/screenshots/datasetgroup.png copying images... [ 56%] images/guidata-banner.png copying images... [ 62%] images/layout_example.png copying images... [ 69%] images/screenshots/console.png copying images... [ 75%] images/screenshots/codeeditor.png copying images... [ 81%] images/screenshots/arrayeditor.png copying images... [ 88%] images/screenshots/collectioneditor.png copying images... [ 94%] images/screenshots/dataframeeditor.png copying images... [100%] images/screenshots/importwizard.png dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in build/html. make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_guidata/build; python3.13 -m pytest ============================= test session starts ============================== platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 guidata 3.6.2, PyQt5 5.15.11 [Qt version: 5.15.17] rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_guidata/build configfile: pyproject.toml plugins: xvfb-3.0.0, typeguard-4.4.4 collected 40 items guidata/tests/dataset/test_activable_dataset.py . [ 2%] guidata/tests/dataset/test_activable_items.py . [ 5%] guidata/tests/dataset/test_all_features.py . [ 7%] guidata/tests/dataset/test_all_items.py . [ 10%] guidata/tests/dataset/test_all_items_readonly.py . [ 12%] guidata/tests/dataset/test_bool_selector.py . [ 15%] guidata/tests/dataset/test_callbacks.py . [ 17%] guidata/tests/dataset/test_datasetgroup.py . [ 20%] guidata/tests/dataset/test_editgroupbox.py . [ 22%] guidata/tests/dataset/test_inheritance.py . [ 25%] guidata/tests/dataset/test_item_order.py . [ 27%] guidata/tests/dataset/test_loadsave_hdf5.py . [ 30%] guidata/tests/dataset/test_loadsave_json.py . [ 32%] guidata/tests/dataset/test_rotatedlabel.py . [ 35%] guidata/tests/unit/test_config.py ... [ 42%] guidata/tests/unit/test_data.py ... [ 50%] guidata/tests/unit/test_dataset_from_dict.py . [ 52%] guidata/tests/unit/test_dataset_from_func.py . [ 55%] guidata/tests/unit/test_genreqs.py .s [ 60%] guidata/tests/unit/test_h5fmt.py . [ 62%] guidata/tests/unit/test_jsonfmt.py . [ 65%] guidata/tests/unit/test_no_qt.py . [ 67%] guidata/tests/unit/test_text.py s [ 70%] guidata/tests/unit/test_translations.py . [ 72%] guidata/tests/unit/test_updaterestoredataset.py . [ 75%] guidata/tests/unit/test_userconfig_app.py . [ 77%] guidata/tests/widgets/test_arrayeditor.py . [ 80%] guidata/tests/widgets/test_arrayeditor_unit.py . [ 82%] guidata/tests/widgets/test_codeeditor.py . [ 85%] guidata/tests/widgets/test_collectionseditor.py F [ 87%] guidata/tests/widgets/test_console.py F [ 90%] guidata/tests/widgets/test_dataframeeditor.py . [ 92%] guidata/tests/widgets/test_importwizard.py . [ 95%] guidata/tests/widgets/test_objecteditor.py . [ 97%] guidata/tests/widgets/test_theme.py s [100%] =================================== FAILURES =================================== ____________________________ test_collectionseditor ____________________________ obj = array([[226, 236, 230, ..., 253, 123, 211], [115, 213, 192, ..., 166, 44, 229], [112, 170, 31, ..., 5..., 170, 45], [160, 166, 241, ..., 205, 87, 154], [143, 126, 50, ..., 18, 146, 111]], shape=(100, 100)) mode = 'P' def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: """ Creates an image memory from an object exporting the array interface (using the buffer protocol):: from PIL import Image import numpy as np a = np.zeros((5, 5)) im = Image.fromarray(a) If ``obj`` is not contiguous, then the ``tobytes`` method is called and :py:func:`~PIL.Image.frombuffer` is used. In the case of NumPy, be aware that Pillow modes do not always correspond to NumPy dtypes. Pillow modes only offer 1-bit pixels, 8-bit pixels, 32-bit signed integer pixels, and 32-bit floating point pixels. Pillow images can also be converted to arrays:: from PIL import Image import numpy as np im = Image.open("hopper.jpg") a = np.asarray(im) When converting Pillow images to arrays however, only pixel values are transferred. This means that P and PA mode images will lose their palette. :param obj: Object with array interface :param mode: Optional mode to use when reading ``obj``. Since pixel values do not contain information about palettes or color spaces, this can be used to place grayscale L mode data within a P mode image, or read RGB data as YCbCr for example. See: :ref:`concept-modes` for general information about modes. :returns: An image object. .. versionadded:: 1.1.6 """ arr = obj.__array_interface__ shape = arr["shape"] ndim = len(shape) strides = arr.get("strides", None) try: typekey = (1, 1) + shape[2:], arr["typestr"] except KeyError as e: if mode is not None: typekey = None color_modes: list[str] = [] else: msg = "Cannot handle this data type" raise TypeError(msg) from e if typekey is not None: try: > typemode, rawmode, color_modes = _fromarray_typemap[typekey] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: ((1, 1), '<i8') /usr/lib/python3/dist-packages/PIL/Image.py:3285: KeyError The above exception was the direct cause of the following exception: def test_collectionseditor(): """Test Collections editor.""" with qt_app_context(exec_loop=True): dialog = CollectionsEditor() > dialog.setup(get_test_data()) ^^^^^^^^^^^^^^^ guidata/tests/widgets/test_collectionseditor.py:120: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ guidata/tests/widgets/test_collectionseditor.py:111: in get_test_data image = PILImage.fromarray(np.random.randint(256, size=(100, 100)), mode="P") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ obj = array([[226, 236, 230, ..., 253, 123, 211], [115, 213, 192, ..., 166, 44, 229], [112, 170, 31, ..., 5..., 170, 45], [160, 166, 241, ..., 205, 87, 154], [143, 126, 50, ..., 18, 146, 111]], shape=(100, 100)) mode = 'P' def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: """ Creates an image memory from an object exporting the array interface (using the buffer protocol):: from PIL import Image import numpy as np a = np.zeros((5, 5)) im = Image.fromarray(a) If ``obj`` is not contiguous, then the ``tobytes`` method is called and :py:func:`~PIL.Image.frombuffer` is used. In the case of NumPy, be aware that Pillow modes do not always correspond to NumPy dtypes. Pillow modes only offer 1-bit pixels, 8-bit pixels, 32-bit signed integer pixels, and 32-bit floating point pixels. Pillow images can also be converted to arrays:: from PIL import Image import numpy as np im = Image.open("hopper.jpg") a = np.asarray(im) When converting Pillow images to arrays however, only pixel values are transferred. This means that P and PA mode images will lose their palette. :param obj: Object with array interface :param mode: Optional mode to use when reading ``obj``. Since pixel values do not contain information about palettes or color spaces, this can be used to place grayscale L mode data within a P mode image, or read RGB data as YCbCr for example. See: :ref:`concept-modes` for general information about modes. :returns: An image object. .. versionadded:: 1.1.6 """ arr = obj.__array_interface__ shape = arr["shape"] ndim = len(shape) strides = arr.get("strides", None) try: typekey = (1, 1) + shape[2:], arr["typestr"] except KeyError as e: if mode is not None: typekey = None color_modes: list[str] = [] else: msg = "Cannot handle this data type" raise TypeError(msg) from e if typekey is not None: try: typemode, rawmode, color_modes = _fromarray_typemap[typekey] except KeyError as e: typekey_shape, typestr = typekey msg = f"Cannot handle this data type: {typekey_shape}, {typestr}" > raise TypeError(msg) from e E TypeError: Cannot handle this data type: (1, 1), <i8 /usr/lib/python3/dist-packages/PIL/Image.py:3289: TypeError _________________________________ test_console _________________________________ def test_console(): """Test Console widget.""" with qt_app_context(exec_loop=True): > widget = Console(debug=False, multithreaded=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ guidata/tests/widgets/test_console.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ guidata/widgets/console/__init__.py:51: in __init__ InternalShell.__init__( guidata/widgets/console/internalshell.py:208: in __init__ self.start_interpreter(namespace) guidata/widgets/console/internalshell.py:241: in start_interpreter self.new_prompt(self.interpreter.p1) guidata/widgets/console/shell.py:255: in new_prompt if self.get_cursor_line_column()[1] != 0: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <guidata.widgets.console.Console object at 0x7f9c7fad1910> def get_cursor_line_column(self): """Return cursor (line, column) numbers""" > cursor = self.textCursor() ^^^^^^^^^^^^^^^^^ E RuntimeError: wrapped C/C++ object of type Console has been deleted guidata/widgets/console/mixins.py:202: RuntimeError =============================== warnings summary =============================== guidata/tests/widgets/test_theme.py:71 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_guidata/build/guidata/tests/widgets/test_theme.py:71: PytestCollectionWarning: cannot collect test class 'TestWidget' because it has a __init__ constructor (from: guidata/tests/widgets/test_theme.py) class TestWidget(BaseTestWidget): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED guidata/tests/widgets/test_collectionseditor.py::test_collectionseditor FAILED guidata/tests/widgets/test_console.py::test_console - RuntimeError: wr... ============== 2 failed, 35 passed, 3 skipped, 1 warning in 1.00s ============== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_guidata/build; python3.13 -m pytest dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 make: *** [debian/rules:7: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

