Closing this thread, as the issue posted here is a duplicate of: Module dolfinx.fem has no attribute TensorFunctionSpace