# About how to run Wrapping Example

**URL:** <https://discourse.vtk.org/t/about-how-to-run-wrapping-example/9034>\
**Category:** Development\
**Created:** [July 28, 2022, 10:38am UTC](https://discourse.vtk.org/t/about-how-to-run-wrapping-example/9034 "2022-07-28T10:38:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JessonWu](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@JessonWu](https://discourse.vtk.org/u/JessonWu)\
**Post date:** [July 28, 2022, 10:38am UTC](https://discourse.vtk.org/t/about-how-to-run-wrapping-example/9034/1 "2022-07-28T10:38:59Z")

</div>

Hello I am just new to VTK.  
I am trying to build and run the [Wrapping Example](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Modules/Wrapping).  
I can compile and get the files “vtkWrappable.so” and “libvtkWrappable.so” built,  
but failed to run the test script “import\_wrappable.py”:  
The error is “ModuleNotFoundError: No module named 'wrapping” for the first line of testing code “from wrapping import vtkWrappable”.

My build and test steps are as below:

1. ccmake, turn on these flags: “VTK\_BUILD\_EXAMPLES” and “VTK\_WRAP\_PYTHON”
2. then cmake
3. then make
4. then make install
5. then go to the Wrapping Example Testing folder, run the test script: python ././import\_wrappable.py
6. and the got the error

I search in the build folder, found both the “vtkWrappable.so” and “libvtkWrappable.so” are generated.  
So I just wonder what’s the correct steps to compile and run the Wrapping example?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Post date:** [August 24, 2022, 1:15pm UTC](https://discourse.vtk.org/t/about-how-to-run-wrapping-example/9034/2 "2022-08-24T13:15:16Z")

</div>

You might need to set up `PYTHONPATH`. Does it work if you use `vtkpython` instead of `python`?
