numpy.einsum must be called with `str` as first argument
When using from __future__ import unicode_literals
in Python 2 then numpy.einsum
will receive a unicode string as first argument while it requires a str
(binary string in Python 2). This leads to einsum
dispatching to the wrong scenario (einsum(op0, sublist0, op1, sublist1, ..., [sublistout])
) and consequently to a crash.
To be fixed here:
Possible fix would be to remove the from __future__ import unicode_literals
as it's not required anyway in this module.