Code from the FENICSx tutorial went wrong on local computer

Hi, I’m new on FENICSx and trying to run the examples in the tutorial to compute stress The equations of linear elasticity.

But error encountered while implementing stress_expr = fem.Expression(von_Mises, V_von_mises.element.interpolation_points()) in the copying code snippets. Could you please tell me the reason for this error? Thanks a lot!

Traceback (most recent call last):
  File "/mnt/d/test.py", line 227, in <module>
    stress_expr = fem.Expression(von_Mises, V_von_mises.element.interpolation_points())
TypeError: 'numpy.ndarray' object is not callable

You are probably running another release than what the web page covers (0.6.x).

If you are running anything newer, please look at the raw code in the branch:

or check out the appropriate version at

Thank you very much! I’ll check it.