# ITK Python Wrapping error: void value not ignored as it ought to be

**URL:** https://discourse.itk.org/t/itk-python-wrapping-error-void-value-not-ignored-as-it-ought-to-be/948
**Category:** Engineering
**Tags:** python
**Created:** [May 24, 2018, 10:00pm UTC](https://discourse.itk.org/t/itk-python-wrapping-error-void-value-not-ignored-as-it-ought-to-be/948 "2018-05-24T22:00:24Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![Phong\_Tran](https://discourse.itk.org/user_avatar/discourse.itk.org/phong_tran/32/1024_2.png) [@Phong\_Tran](https://discourse.itk.org/u/Phong_Tran)
#### Post date: [October 18, 2019, 7:38am UTC](https://discourse.itk.org/t/itk-python-wrapping-error-void-value-not-ignored-as-it-ought-to-be/948/12 "2019-10-18T07:38:16Z")

</div>

Thanks @phcerdan, that works like a charm. I have another question that might not be related to the original question on the thread. But I still want to ask here that when I use the ITKVtkGluePython.py like the below snippet code

> import sys  
> import os  
> import itk  
> import vtk  
> itkToVtkFilter = ImageToVTKImageFilter[ImageType].New()

It throws exception:

> ╰─$ ~/workingspace/VTK-8.2.0/build/bin/vtkpython itk\_vtk\_server.py ~/tmp/dicom\_data/CT\_BVND2/1.3.46.670589.33.1.63686419356542268400001.5244014515565132624  
> Traceback (most recent call last):  
> File “itk\_vtk\_server.py”, line 58, in   
> ImageToVTKImageFilter = itk.ImageToVTKImageFilter[ImageType]  
> File “/home/phongtd/.local/lib/python3.6/site-packages/itkLazy.py”, line 52, in **getattribute**  
> itkBase.LoadModule(module, namespace)  
> File “/home/phongtd/.local/lib/python3.6/site-packages/itkBase.py”, line 128, in LoadModule  
> module = loader.load(swigModuleName)  
> File “/home/phongtd/.local/lib/python3.6/site-packages/itkBase.py”, line 253, in load  
> return importlib.import\_module(name)  
> File “/usr/lib/python3.6/importlib/ **init**.py”, line 126, in import\_module  
> return \_bootstrap.\_gcd\_import(name[level:], package, level)  
> File “”, line 994, in \_gcd\_import  
> File “”, line 971, in \_find\_and\_load  
> File “”, line 955, in \_find\_and\_load\_unlocked  
> File “”, line 665, in \_load\_unlocked  
> File “”, line 678, in exec\_module  
> File “”, line 219, in \_call\_with\_frames\_removed  
> File “/home/phongtd/.local/lib/python3.6/site-packages/itk/Configuration/…/ITKVtkGluePython.py”, line 15, in   
> ctypes.CDLL(\_vtkIOlib, ctypes.RTLD\_GLOBAL)  
> File “/usr/lib/python3.6/ctypes/ **init**.py”, line 348, in **init**  
> self.\_handle = \_dlopen(self.\_name, mode)  
> OSError: libvtkIO-8.2.so.1: cannot open shared object file: No such file or directory

I have no idea where to find the “libvtkIO-8.2.so.1”, since it does not exist in my VTK build as well in my installing dir: /usr/local/lib. Those errors might be related to the question I asked before on this thread [https://discourse.itk.org/t/itk-imagetovtkimagefilter-crashing-python/2018/4](https://discourse.itk.org/t/itk-imagetovtkimagefilter-crashing-python/2018/4)

@matt.mccormick, did you manage to isolate the issue ?

---

_[View the full topic](https://discourse.itk.org/t/itk-python-wrapping-error-void-value-not-ignored-as-it-ought-to-be/948)._
