# building vtk8.2 with vtkdicom with python wrapping

**URL:** https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045
**Category:** Support
**Created:** [May 29, 2019, 6:10pm UTC](https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045 "2019-05-29T18:10:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [May 29, 2019, 6:10pm UTC](https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045/1 "2019-05-29T18:10:47Z")

</div>

hi,

i am trying to build vtk version 8.2.0 with Module\_vtkDICOM : BOOL = ON from cmake gui with python wrappings, i have a few doubts,

1. even though i have Module\_vtkDICOM : BOOL = ON in the cmake gui, when i run “make” in terminal, the vtkDIOCM module is not building. How to build with vtkDICOM?

2. i have set the python path to anaconda python 3.6, in cmake as well, even then when i run install the installation path defaults to 2.7 on mac, how to install in anaconda python 3.6 site-packages instead of system 2.7?

Thanks  
Abhishek

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 29, 2019, 6:16pm UTC](https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045/2 "2019-05-29T18:16:17Z")

</div>

Most likely this is due to a known bug in 8.2. See fix here: [Signed vs. unsigned pixel data in DICOMAppHelper](https://discourse.vtk.org/t/signed-vs-unsigned-pixel-data-in-dicomapphelper/955/6)

---

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [May 30, 2019, 9:34am UTC](https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045/3 "2019-05-30T09:34:19Z")

</div>

hi,

the solution worked, i was able to build successfully and install it but when i run import vtk in python i get

ModuleNotFoundError: No module named ‘vtkRenderingQtPython’

error,

how can i fix this issue?

Thanks

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 30, 2019, 1:34pm UTC](https://discourse.vtk.org/t/building-vtk8-2-with-vtkdicom-with-python-wrapping/1045/4 "2019-05-30T13:34:52Z")

</div>

This topic is about vtkDICOM. Please create new topics for other issues.
