# vtkAVIWriter

**URL:** https://discourse.vtk.org/t/vtkaviwriter/14072
**Category:** Support
**Tags:** python
**Created:** [June 18, 2024, 11:10am UTC](https://discourse.vtk.org/t/vtkaviwriter/14072 "2024-06-18T11:10:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mordrago](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mordrago/32/8974_2.png) [@Mordrago](https://discourse.vtk.org/u/Mordrago)
#### Post date: [June 18, 2024, 11:10am UTC](https://discourse.vtk.org/t/vtkaviwriter/14072/1 "2024-06-18T11:10:01Z")

</div>

Hello!  
I want o create animation and save it as a avi. My animation works but when i want to import module i got error:  
AttributeError: module ‘vtk’ has no attribute ‘vtkAVIWriter’

Did AVIWroter is only in C++?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [June 18, 2024, 2:00pm UTC](https://discourse.vtk.org/t/vtkaviwriter/14072/2 "2024-06-18T14:00:08Z")

</div>

From [VTK: vtkAVIWriter Class Reference](https://vtk.org/doc/nightly/html/classvtkAVIWriter.html#details:)

> Note that this class in only available on the Microsoft Windows platform.

---

<div class="post-metadata">

### Author: ![Mordrago](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mordrago/32/8974_2.png) [@Mordrago](https://discourse.vtk.org/u/Mordrago)
#### Post date: [June 18, 2024, 2:08pm UTC](https://discourse.vtk.org/t/vtkaviwriter/14072/3 "2024-06-18T14:08:16Z")

</div>

Ok, thanks. I check the platform every time I run the program. The code is written in pycharm on a virtual machine, so that may be the problem. I ran the code from the console and it indeed works as it should.
