Package: src:lasagne
Version: 0.1+git20200419.5d3c63c+ds-1
Severity: serious
Tags: sid bullseye ftbfs
User: debian-pyt...@lists.debian.org
Usertags: python3.9

lasagne ftbfs with python3.9; to reproduce, you can use the repositories found 
at:

deb [trusted=yes] http://people.debian.org/~doko/tmp/python3.9 ./
deb [trusted=yes] http://people.debian.org/~ginggs/python3.9-repo ./

see
https://people.debian.org/~ginggs/python3.9-default/lasagne_0.1+git20200419.5d3c63c+ds-1build1_amd64-2020-10-24T09:30:12Z.build

[...]
==================================== ERRORS ====================================
_ ERROR at setup of TestGetOutput_MergeLayer.test_get_output_without_arguments _

self = <test_helper.TestGetOutput_MergeLayer object at 0x7fa147c7f310>

    @pytest.fixture
    def layers(self):
        from lasagne.layers.base import Layer, MergeLayer
        from lasagne.layers.input import InputLayer
        # create two mocks of the same attributes as an InputLayer instance
        l1 = [Mock(InputLayer((None,)), output_shape=(None,),
                   get_output_kwargs=[]),
              Mock(InputLayer((None,)), output_shape=(None,),
                   get_output_kwargs=[])]
        # create two mocks of the same attributes as a Layer instance
        l2 = [Mock(Layer(l1[0]), output_shape=(None,),
                   get_output_kwargs=[]),
              Mock(Layer(l1[1]), output_shape=(None,),
                   get_output_kwargs=[])]
        # link them to the InputLayer mocks
        l2[0].input_layer = l1[0]
        l2[1].input_layer = l1[1]
        # create a mock that has the same attributes as a MergeLayer
>       l3 = Mock(MergeLayer(l2), get_output_kwargs=['kwarg'])

lasagne/tests/layers/test_helper.py:306:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/mock/mock.py:1082: in __init__
    _safe_super(CallableMixin, self).__init__(
/usr/lib/python3/dist-packages/mock/mock.py:439: in __init__
    self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
/usr/lib/python3/dist-packages/mock/mock.py:494: in _mock_add_spec
    if iscoroutinefunction(getattr(spec, attr, None)):
lasagne/layers/base.py:269: in output_shape
    shape = self.get_output_shape_for(self.input_shapes)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <lasagne.layers.base.MergeLayer object at 0x7fa147c7fa90>
input_shapes = [(None,), (None,)]

    def get_output_shape_for(self, input_shapes):
        """
        Computes the output shape of this layer, given a list of input shapes.

        Parameters
        ----------
        input_shape : list of tuple
            A list of tuples, with each tuple representing the shape of one of
            the inputs (in the correct order). These tuples should have as many
            elements as there are input dimensions, and the elements should be
            integers or `None`.

        Returns
        -------
        tuple
            A tuple representing the shape of the output of this layer. The
            tuple has as many elements as there are output dimensions, and the
            elements are all either integers or `None`.

        Notes
        -----
        This method must be overridden when implementing a new
        :class:`Layer` class with multiple inputs. By default it raises
        `NotImplementedError`.
        """
>       raise NotImplementedError
E       NotImplementedError

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to