Traceback (most recent call last):


 "/Users/shao/Documents/scikit-neuralnetwork/sknn/tests/test_types.py", line 77, in test_Predict32

yp = self.nn._predict(X)


 "/Users/shao/Documents/scikit-neuralnetwork/sknn/mlp.py", line 262, in _predict

return self._backend._predict_impl(X)


 "/Users/shao/Documents/scikit-neuralnetwork/sknn/backend/lasagne/mlp.py", line 273, in _predict_impl

for Xb, _, _, idx
in self._iterate_data(self.batch_size, X, y, shuffle=False):


 "/Users/shao/Documents/scikit-neuralnetwork/sknn/backend/lasagne/mlp.py", line 308, in _iterate_data

Xb, yb, wb = cast(X, excerpt), cast(y, excerpt), cast(w, excerpt)


 "/Users/shao/Documents/scikit-neuralnetwork/sknn/backend/lasagne/mlp.py", line 293, in cast

array = array[indices]


 "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/dok.py", line 140, in __getitem__

raise TypeError('index must be a pair of integers or slices')
TypeError: index must be a pair of integers or slices

Traceback (most recent call last):


 "run.py", line 57, in <module>

c.start()


 "run.py", line 38, in start

self.stack.loop(timeout=0.5, discrete=0.5)


 "/usr/local/lib/python3.5/dist-packages/yowsup/stacks/yowstack.py", line 188, in loop

asyncore.loop(*args, **kwargs)


 "/usr/lib/python3.5/asyncore.py", line 203, in loop

poll_fun(timeout, map)


 "/usr/lib/python3.5/asyncore.py", line 150, in poll

read(obj)


 "/usr/lib/python3.5/asyncore.py", line 87, in read

obj.handle_error()


 "/usr/lib/python3.5/asyncore.py", line 83, in read

obj.handle_read_event()


 "/usr/lib/python3.5/asyncore.py", line 423, in handle_read_event

self.handle_read()


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/network/layer.py", line 102, in handle_read

self.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/network/layer.py", line 110, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 29, in receive

self.processReceived()


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived

self.toUpper(oneMessageData)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/auth/layer_crypt.py", line 65, in receive

self.toUpper(payload)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/coder/layer.py", line 35, in receive

self.toUpper(node)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/logger/layer.py", line 14, in receive

self.toUpper(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_control.py", line 44, in receive

self.toUpper(protocolTreeNode)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper

self.__upper.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 194, in receive

s.receive(data)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_send.py", line 119, in receive

if not self.processIqRegistry(protocolTreeNode):


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/__init__.py", line 163, in processIqRegistry

errorClbk(protocolTreeNode, originalIq)


 "/usr/local/lib/python3.5/dist-packages/yowsup/layers/axolotl/layer_base.py", line 81, in onError

errorClbk(errorNode, getKeysEntity)
TypeError: <lambda>() takes 0 positional arguments but 2 were given
