<br><div class="gmail_quote">On Fri, Dec 18, 2009 at 6:50 AM, Julian CHIA Yan Hon <span dir="ltr">&lt;<a href="mailto:julian-chia@imre.a-star.edu.sg">julian-chia@imre.a-star.edu.sg</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to run an example script of vtk with a python wrapper. However, I get the following error message. Can someone advice me how I can import the vtk module from the python compiler? Thank you.<br>
<br>
Traceback (most recent call last):<br>
  File &quot;G:\vtk\vtk542_source\Examples\Medical\Python\Medical2.py&quot;, line 6, in &lt;module&gt;<br>
    import vtk<br>
ImportError: No module named vtk<br>
<br>
<br></blockquote><div><br>It looks like you need to add the VTKPythonWrapping directory to your Python path. In linux, you would add this to your ~/.bashrc<br><br>
export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView3/Utilities/VTKPythonWrapping<br><br>In Windows, you have to go into wherever you can edit the system variables and do the same type of thing. Maybe a Windows user can direct you further if you can&#39;t find it.<br>
<br clear="all">Thanks,<br><br>David <br></div></div>