<div dir="ltr">Do you have a 'vtkpython.exe' in your build/bin directory? That means that you have successfully compiled the wrappers. If you run 'vtkpython' and then 'import vtk', it should work.<div>vtkpython is basically a thin wrapper that sets up paths so that 'iimport vtk' works. </div><div><br></div><div>This wiki: <a href="https://www.paraview.org/Wiki/ParaView/Python_Scripting">https://www.paraview.org/Wiki/ParaView/Python_Scripting</a> has some info on how to set environment vars so you can run python and import vtk or paraview without using vtkpython/pvpython.</div><div><br></div><div>HTH,</div><div>Aron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 8, 2018 at 6:45 AM, ashwin .D <span dir="ltr"><<a href="mailto:winash12@gmail.com" target="_blank">winash12@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br></div> I have VTK 7.0.0 tar file and I am trying to compile from source the python wrapper for VTK. I have ccmake installed on my Ubuntu 16.04 box but no matter what I try(the installation itself proceeds with no errors) but I cannot find out where the python wrapper for SDK is present. When I type<br><br></div>python3.5 import vtk <br><br></div>I get ImportError : no module named 'vtk`<br><br></div>Here is how I built VTK for python using ccmake<br><br><br>ccmake -DCMAKE_INSTALL_PREFIX=/opt/<wbr>local/vtk7.0-py3.5.0 -DBUILD_SHARED_LIBS:BOOL=ON-<wbr>DVTK_WRAP_PYTHON:BOOL=ON -DVTK_PYTHON_VERSION:STRING=3.<wbr>5 -DPYTHON_EXECUTABLE:PATH=/usr/<wbr>bin/python3.5 -DPYTHON_INCLUDE_DIR=/usr/<wbr>include/python3.5 -DPYTHON_LIBRARY:PATH=/usr/<wbr>local/lib/python3.5/ ..VTK-7.0.0<br><br></div>Then a ccmake window pops up and I type ctcl - c twice and ctrl-g once. But this does not do the job. <br><br></div>Any suggestions will be appreciated. I intend to use VTK with Mayavi eventually. <br><br></div>Best regards,<br></div>Ashwin. <br></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>