| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.