1 | initial version |
The main question was already answered in the comments. Of course, both tensor factors should be a module of the same ring/field/...
A temporary solution to the KeyError
(at least so for Sagemath 9.5) would be to restart the kernel.