Prblem with the size of a matrix

It seems like you have an incompatible version of ufl installed. See for instance similar topics such as: Difficulty getting fenics working

Please ensure that you can run your code, and provide a full error traceback.