I forgot to cc the mailing list.<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 8:42 AM, Pat Marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The programmable filter will run in the same process, using the same python, as the main script.  But, it&#39;s possible something is not working right with the paths.  I would put a print statement in both the main script and in the programmable filter&#39;s script to &quot;import sys; print sys.path&quot; and make sure that in both cases the correct paths are being used.  At least one entry in the path should list the folder that contains the paraview python module directory  (the paraview directory that contains __init__.py).<span class="HOEnZb"><font color="#888888"><br>


<br>Pat</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 3:08 AM, Colin McAuliffe <span dir="ltr">&lt;<a href="mailto:cjm2176@columbia.edu" target="_blank">cjm2176@columbia.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I am trying to use the programmable filter in a python script, but it is not able to find the paraview module.<br>
<br>
the code:<br>
<br>
ProgrammableFilter1 = ProgrammableFilter()<br>
<br>
ProgrammableFilter1.Script = &#39;print &quot;something&quot;&#39;<br>
<br>
Show()<br>
<br>
<br>
gives the error:<br>
<br>
Traceback (most recent call last):<br>
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;<br>
ImportError: No module named paraview<br>
<br>
since I run all my scripts with pvpython, the path should be set up properly, but I am wondering if ProgrammableFilter is invoking a different version of python?<br>
<br>
Thanks<br>
Colin<br>
<br>
<br>
-- <br>
Colin McAuliffe<br>
PhD Candidate<br>
Columbia University<br>
Department of Civil Engineering and Engineering Mechanics<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>