I am trying to run the examplehttps://embedding.examples.mechanical.docs.pyansys.com/examples/02_technology_showcase/contact_wear_simulation.html#sphx-glr-examples-02-technology-showcase-contact-wear-simulation-py in Visual Studio Code but am getting errors as shown below: In my opinion they are all related to the imports under if TYPE_CHECKING, but I don't know how to solve the error. Can you help? The errors don't disappear when I remove the if TYPE_CHECKING statement.
The problem appeared to be an older Python version (3.9). The installation guide
Installation guide — PyMechanical
mentions that 3.10-3.13 should be used and after installing 3.13.9 and using
pip install ansys-mechanical-core[graphics]
the images and video for the example appear. The PyLance messages shown in the image still appear but do not prevent the model from running well.