<div dir="ltr">Does "vtkpython demo1.py" work? vtkpython is a wrapper around python that includes the required VTK libraries.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 3, 2015 at 1:44 PM Manjunath K E <<a href="mailto:ke.manjunath@gmail.com">ke.manjunath@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all<br><br></div>I have installed VTK 6.2 along with vtk 6.2 python interface on ubuntu 14.04 manually.<br><br></div>When I run vtkpython in interpreter mode, the import of vtk is successful.<br></div>It doesn't have any problem and the same is shown below.<br><div><br>===========================================================<br>manju@iiitb-gvcl-Z800:~/manju/academics/iiitb/project/codes/incois__laptp/src_vtk6$ vtkpython<br>vtk version 6.2.0<br>Python 2.7.2 (default, Feb 12 2015, 18:30:44) <br>[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> from vtk import *<br>>>> print vtk<br><module 'vtk' from '/usr/local/lib/python2.7/site-packages/vtk/__init__.pyc'><br>>>> <br>===========================================================<br><br></div><div>But, If i run a python script then an error is obtained for this line "from vtk import *". The error is as shown below.<br>===========================================================<br>manju@iiitb-gvcl-Z800:~/manju/academics/iiitb/project/codes/incois__laptp/src_vtk6$ ./demo1.py <br>Traceback (most recent call last):<br> File "./demo1.py", line 6, in <module><br> from vtk import *<br>ImportError: No module named vtk<br>===========================================================<br><br>Please help me in solving this issue. I appreciate your time and help.<br></div><div><br clear="all"><div><div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#ff0000"> </font><font color="#ff6600">Thanks and Regards,</font></div><div><font color="#3366ff"><br></font></div><div><span style="color:rgb(51,102,255)"> Manjunath K E</span><font color="#3366ff"></font></div><div><font color="#3366ff"> <span style="color:rgb(241,194,50)">Help Ever Hurt Never</span><br></font></div><div><font color="#3366ff"> </font></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div>
_______________________________________________<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/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_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=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>