# itk-vtkglue swig error

**URL:** https://discourse.itk.org/t/itk-vtkglue-swig-error/3309
**Category:** Beginner Questions
**Tags:** itkvtkglue
**Created:** [July 21, 2020, 2:07pm UTC](https://discourse.itk.org/t/itk-vtkglue-swig-error/3309 "2020-07-21T14:07:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SiPyWiFi](https://discourse.itk.org/user_avatar/discourse.itk.org/sipywifi/32/1321_2.png) [@SiPyWiFi](https://discourse.itk.org/u/SiPyWiFi)
#### Post date: [July 21, 2020, 2:07pm UTC](https://discourse.itk.org/t/itk-vtkglue-swig-error/3309/1 "2020-07-21T14:07:58Z")

</div>

Hi,

If i import the `itk.ImageToVTKFilter()`, I get the error:  
`AttributeError: module 'itk.ITKVtkGluePython' has no attribute 'swig' `

I am using:

- itk==5.1.0.post3
- vtk==8.1.2
- itk-vtkglue==0.3.0

How can i solve this error?  
All packages are installed using pip.  
( `pip install --upgrade itk-vtkglue`)

Kind regards,  
Simon

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [July 21, 2020, 7:52pm UTC](https://discourse.itk.org/t/itk-vtkglue-swig-error/3309/2 "2020-07-21T19:52:58Z")

</div>

Hi Simon,

The `itk-vtkglue` module is not available for `itk-5.1`. Please help test this function, `itk.vtk_image_from_image` , which will ship with `itk-5.2`:

> <https://github.com/InsightSoftwareConsortium/ITK/blob/fe92a3aa8d6d304b2636f4ba90aa6b8b24f66974/Wrapping/Generators/Python/itkExtras.py#L481-L516>

---

<div class="post-metadata">

### Author: ![SiPyWiFi](https://discourse.itk.org/user_avatar/discourse.itk.org/sipywifi/32/1321_2.png) [@SiPyWiFi](https://discourse.itk.org/u/SiPyWiFi)
#### Post date: [July 22, 2020, 5:54am UTC](https://discourse.itk.org/t/itk-vtkglue-swig-error/3309/3 "2020-07-22T05:54:47Z")

</div>

Hi, Matt,

Many thanks for the quick response.  
I’m integrating the function.
