[Paraview] Import error with programmable filter

Colin McAuliffe cjm2176 at columbia.edu
Mon Feb 25 12:08:04 EST 2013


Hello all,

I am trying to use the programmable filter in a python script, but it  
is not able to find the paraview module.

the code:

ProgrammableFilter1 = ProgrammableFilter()

ProgrammableFilter1.Script = 'print "something"'

Show()


gives the error:

Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: No module named paraview

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?

Thanks
Colin


-- 
Colin McAuliffe
PhD Candidate
Columbia University
Department of Civil Engineering and Engineering Mechanics


More information about the ParaView mailing list