Problem with Demo: Stokes equations with Mini elements

Link to demo

I’m trying to run the demo in the link above, and I’m having an error at the following line:

V  = P1 + B 

TypeError: unsupported operand type(s) for +: ‘FunctionSpace’ and ‘FunctionSpace’

Does anyone know how to fix this problem?

Hello,
you are refering to a demo from an older version (1.6.0). There has been some changes since then in the definition of Mixed and Enriched function spaces. Please refer to the current version of the Stokes-Mini demo: https://bitbucket.org/fenics-project/dolfin/src/master/python/demo/documented/stokes-mini/documentation.rst