# Python Planes Tutorial Error and Resolution

**URL:** https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009
**Category:** Support
**Tags:** python
**Created:** [March 19, 2023, 7:51pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009 "2023-03-19T19:51:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JimCAmato](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@JimCAmato](https://discourse.vtk.org/u/JimCAmato)
#### Post date: [March 19, 2023, 7:51pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009/1 "2023-03-19T19:51:45Z")

</div>

While working through the python “Planes” tutorial, several errors show up in the console and captions do not appear in the render window. I found that adding `import vtkmodules.vtkRenderingFreeType` resolves the issue. I added it after the first import; I do not know if the import order matters.

The errors were  
`ERR| vtkOpenGLTextMapper (0x5625d96aaa20): Could not locate vtkTextRenderer object.`  
and  
`ERR| vtkOpenGLTexture (0x5625d96ba060): No scalar values found for texture input!`

Part of the solution was found in a Stack Overflow, but not for python, and for a different tutorial.

I am new to VTK, so I do not know where best to direct this.

I’m using python 3.10 and VTK version 9.2.6 (installed today by pip).

Tutorial is at: [https://kitware.github.io/vtk-examples/site/Python/GeometricObjects/Planes/](https://kitware.github.io/vtk-examples/site/Python/GeometricObjects/Planes/)  
Stack Overflow Q&A: [Why does VTK give an error "Could not locate vtkTextRenderer object" for the balloon widget example code? - Stack Overflow](https://stackoverflow.com/questions/54919480/why-does-vtk-give-an-error-could-not-locate-vtktextrenderer-object-for-the-bal)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [March 20, 2023, 6:57am UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009/2 "2023-03-20T06:57:39Z")

</div>

@amaclean

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [March 20, 2023, 7:12am UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009/3 "2023-03-20T07:12:53Z")

</div>

Thanks, I’ll look at this tomorrow.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [March 20, 2023, 10:15pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009/4 "2023-03-20T22:15:01Z")

</div>

@JimCAmato thanks for spotting this, I have updated the web page.  
`vtkRenderingFreeType` is definitely needed as text is being rendered.

---

<div class="post-metadata">

### Author: ![JimCAmato](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@JimCAmato](https://discourse.vtk.org/u/JimCAmato)
#### Post date: [March 20, 2023, 10:16pm UTC](https://discourse.vtk.org/t/python-planes-tutorial-error-and-resolution/11009/5 "2023-03-20T22:16:27Z")

</div>

Yay!

Thank you for making the change so quickly, and for letting me know - It’s nice to know I helped.

#warmfuzzies
