• Bug#1104368: compyle: FTBFS: dh_auto_test: error: pybuild --test --test

    From Lucas Nussbaum@21:1/5 to All on Tue Apr 29 15:30:02 2025
    Source: compyle
    Version: 0.8.1-10
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: [email protected]
    Usertags: ftbfs-20250429 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 --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/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running config
    dh_auto_build -O--buildsystem=pybuild
    I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running build
    running build_py
    creating /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/array.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/low_level.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/opencl.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/capture_stream.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/profile.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/ast_utils.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/parallel.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/utils.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/api.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/ext_module.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/translator.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/template.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/cuda.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/transpiler.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/config.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/cython_generator.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/jit.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/types.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/extern.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/sort.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    copying compyle/__init__.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle
    creating /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/thrust
    copying compyle/thrust/__init__.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/thrust
    creating /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_ext_module.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_utils.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_jit.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_translator.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_types.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_transpiler.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_array.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_profile.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_parallel.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/py3_code.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_cython_generator.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_config.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_gpu_struct.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_ast_utils.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_cuda.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_template.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_capture_stream.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/test_low_level.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    copying compyle/tests/__init__.py -> /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build/compyle/tests
    dh_auto_test -O--buildsystem=pybuild
    I: pybuild base:311: cd /build/reproducible-path/compyle-0.8.1/.pybuild/cpython3_3.13_compyle/build; python3.13 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --
    ignore=/build/reproducible-path/compyle-0.8.1/compyle/tests/test_cuda.py --ignore=/build/reproducible-path/compyle-0.8.1/compyle/tests/test_parallel.py /build/reproducible-path/compyle-0.8.1/compyle/tests
    ============================= test session starts ==============================
    platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
    rootdir: /build/reproducible-path/compyle-0.8.1
    configfile: pyproject.toml
    plugins: typeguard-4.4.2
    collected 327 items / 3 deselected / 324 selected

    ../../../compyle/tests/test_array.py .Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.F [ 10%]
    s.Fs.Fs..Fs.sx.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs.Fs. [ 33%]
    Fs.Fs.Fs.Fs.Fs.Fs.Fss..s...FFFsss...FFFsss...FFFsss.Fs [ 49%]
    ../../../compyle/tests/test_ast_utils.py ....... [ 51%]
    ../../../compyle/tests/test_capture_stream.py ..... [ 53%]
    ../../../compyle/tests/test_config.py ............ [ 57%]
    ../../../compyle/tests/test_cython_generator.py ................. [ 62%]
    ../../../compyle/tests/test_ext_module.py ........ [ 64%]
    ../../../compyle/tests/test_gpu_struct.py s [ 65%]
    ../../../compyle/tests/test_jit.py .......................... [ 73%]
    ../../../compyle/tests/test_low_level.py sFsF.... [ 75%]
    ../../../compyle/tests/test_profile.py ..... [ 77%]
    ../../../compyle/tests/test_template.py ..... [ 78%]
    ../../../compyle/tests/test_translator.py .............................. [ 87%]
    ......................... [ 95%]
    ../../../compyle/tests/test_transpiler.py ... [ 96%]
    ../../../compyle/tests/test_types.py ....... [ 98%]
    ../../../compyle/tests/test_utils.py .... [100%]

    =================================== FAILURES ===================================
    _____________________________ test_reserve[opencl] _____________________________

    backend = 'opencl'

    @check_all_backends
    def test_reserve(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:36:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ____________________ test_resize_with_reallocation[opencl] _____________________

    backend = 'opencl'

    @check_all_backends
    def test_resize_with_reallocation(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:52:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ___________________ test_resize_without_reallocation[opencl] ___________________

    backend = 'opencl'

    @check_all_backends
    def test_resize_without_reallocation(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend, n=128)

    ../../../compyle/tests/test_array.py:68:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ______________________________ test_copy[opencl] _______________________________

    backend = 'opencl'

    @check_all_backends
    def test_copy(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:84:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ____________________ test_append_with_reallocation[opencl] _____________________

    backend = 'opencl'

    @check_all_backends
    def test_append_with_reallocation(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:102:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ___________________ test_append_without_reallocation[opencl] ___________________

    backend = 'opencl'

    @check_all_backends
    def test_append_without_reallocation(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:117:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    _____________________________ test_extend[opencl] ______________________________

    backend = 'opencl'

    @check_all_backends
    def test_extend(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:133:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    _____________________________ test_remove[opencl] ______________________________

    backend = 'opencl'

    @check_all_backends
    def test_remove(backend):
    check_import(backend)

    # Given
    dev_array = Array(np.int32, backend=backend)

    ../../../compyle/tests/test_array.py:150:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ______________________________ test_align[opencl] ______________________________

    backend = 'opencl'

    @check_all_backends
    def test_align(backend):
    check_import(backend)

    # Given
    dev_array = Array(np.int32, backend=backend)

    ../../../compyle/tests/test_array.py:168:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    _________________________ test_align_multiple[opencl] __________________________

    backend = 'opencl'

    @check_all_backends
    def test_align_multiple(backend):
    check_import(backend)

    # Given
    dev_array_a = Array(np.uint32, backend=backend)

    ../../../compyle/tests/test_array.py:185:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    _____________________________ test_squeeze[opencl] _____________________________

    backend = 'opencl'

    @check_all_backends
    def test_squeeze(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:209:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ___________________________ test_copy_values[opencl] ___________________________

    backend = 'opencl'

    @check_all_backends
    def test_copy_values(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:226:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    _____________________________ test_min_max[opencl] _____________________________

    backend = 'opencl'

    @check_all_backends
    def test_min_max(backend):
    check_import(backend)

    # Given
    dev_array = make_dev_array(backend)

    ../../../compyle/tests/test_array.py:244:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/tests/test_array.py:18: in make_dev_array
    dev_array = Array(np.int32, n=n, backend=backend) ../../../compyle/array.py:910: in __init__
    data = empty(n, dtype, backend=self.backend) ../../../compyle/array.py:317: in empty
    out = gpuarray.empty(get_queue(), n, dtype)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    __________________________ test_sort_by_keys[opencl] ___________________________

    backend = 'opencl'

    @check_all_backends
    def test_sort_by_keys(backend):
    check_import(backend)

    # Given
    pre_nparr1 = np.random.randint(0, 100, 16, dtype=np.int32)
    pre_nparr2 = np.random.randint(0, 100, 16, dtype=np.int32)

    ## drop non unique values
    nparr1, indices = np.unique(pre_nparr1, return_index=True)
    nparr2 = pre_nparr2[indices]

    dev_array1, dev_array2 = array.wrap(nparr1, nparr2, backend=backend)

    ../../../compyle/tests/test_array.py:268:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/array.py:270: in wrap
    return [wrap_array(x, backend) for x in args] ../../../compyle/array.py:231: in wrap_array
    q = get_queue()
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:
    properties = cl.command_queue_properties.PROFILING_ENABLE
    _queue = cl.CommandQueue(get_context(), properties=properties)
    E TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    E 1. __init__(self, context: pyopencl._cl.Context, device: pyopencl._cl.Device | None = None, properties: object = 0) -> None
    E
    E Invoked with types: pyopencl._cl.CommandQueue, pyopencl._cl.Context, kwargs = { properties: NoneType }

    ../../../compyle/opencl.py:35: TypeError
    ____________________ test_sort_by_keys_with_output[opencl] _____________________

    backend = 'opencl'

    @pytest.mark.parametrize(
    'backend', ['cython', 'opencl',
    pytest.param('cuda', marks=pytest.mark.xfail)])
    def test_sort_by_keys_with_output(backend):
    check_import(backend)

    # Given
    pre_nparr1 = np.random.randint(0, 100, 16, dtype=np.int32)
    pre_nparr2 = np.random.randint(0, 100, 16, dtype=np.int32)

    ## drop non unique values
    nparr1, indices = np.unique(pre_nparr1, return_index=True)
    nparr2 = pre_nparr2[indices]

    dev_array1, dev_array2 = array.wrap(nparr1, nparr2, backend=backend)

    ../../../compyle/tests/test_array.py:324:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../../../compyle/array.py:270: in wrap
    return [wrap_array(x, backend) for x in args] ../../../compyle/array.py:231: in wrap_array
    q = get_queue()
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def get_queue():
    global _queue
    if _queue is None:
    properties = None
    if get_config().profile:

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Jun 18 21:50:01 2025
    Processing control commands:

    tags 1104368 + patch
    Bug #1104368 [src:compyle] compyle: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
    Added tag(s) patch.
    tags 1104368 + pending
    Bug #1104368 [src:compyle] compyle: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
    Added tag(s) pending.

    --
    1104368: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104368
    Debian Bug Tracking System
    Contact [email protected] with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian Bunk@21:1/5 to All on Wed Jun 18 21:50:01 2025
    Control: tags 1104368 + patch
    Control: tags 1104368 + pending

    Dear maintainer,

    I've prepared an NMU for compyle (versioned as 0.8.1-10.1) and uploaded
    it to DELAYED/7. Please feel free to tell me if I should cancel it.

    cu
    Adrian

    diffstat for compyle-0.8.1 compyle-0.8.1

    changelog | 7 ++
    patches/0001-fix-backend-rework-passing-profile-arg-to-opencl.patch | 30 ++++++++++
    patches/series | 1
    3 files changed, 38 insertions(+)

    diff -Nru compyle-0.8.1/debian/changelog compyle-0.8.1/debian/changelog
    --- compyle-0.8.1/debian/changelog 2025-01-05 13:43:27.000000000 +0200
    +++ compyle-0.8.1/debian/changelog 2025-06-18 22:40:12.000000000 +0300
    @@ -1,3 +1,10 @@
    +compyle (0.8.1-10.1) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * Backport upstream fix for recent pyopencl. (Closes: #1104368)
    +
    + -- Adrian Bunk <[email protected]> Wed, 18 Jun 2025 22:40:12 +0300
    +
    compyle (0.8.1-10) unstable; urgency=medium

    * debian/patches:
    diff -Nru compyle-0.8.1/debian/patches/0001-fix-backend-rework-passing-profile-arg-to-opencl.patch compyle-0.8.1/debian/patches/0001-fix-backend-rework-passing-profile-arg-to-opencl.patch
    --- compyle-0.8.1/debian/patches/0001-fix-backend-rework-passing-profile-arg-to-opencl.patch 1970-01-01 02:00:00.000000000 +0200
    +++ compyle-0.8.1/debian/patches/0001-fix-backend-rework-passing-profile-arg-to-opencl.patch 2025-06-18 22:36:42.000000000 +0300
    @@ -0,0 +1,30 @@
    +From 9a13509a4ccd62750aa549d762d4c8237c9e755b Mon Sep 17 00:00:00 2001
    +From: Navaneet Villodi <1126
  • From Debian Bug Tracking System@21:1/5 to All on Thu Jun 19 10:50:01 2025
    This is a multi-part message in MIME format...

    Your message dated Thu, 19 Jun 2025 08:39:01 +0000
    with message-id <[email protected]>
    and subject line Bug#1104368: fixed in compyle 0.8.1-11
    has caused the Debian Bug report #1104368,
    regarding compyle: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected]
    immediately.)


    --
    1104368: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104368
    Debian Bug Tracking System
    Contact [email protected] with problems

    Received: (at submit) by bugs.debian.org; 29 Apr 2025 13:20:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-105.6 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,FVGT_m_MULTI_ODD,SPF_HELO_NONE,SPF_NONE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 169; hammy, 150; neutral, 306; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <[email protected]>
    Received: from stravinsky.debian.org ([2001: