[Paraview] Anaconda python Environment setup to use paraview python

Ke Gao ke.gao.ut at gmail.com
Fri Nov 17 13:30:02 EST 2017


Hi,

I'm using Anaconda python 2.7 to call paraview python library on RedHat
Linux, every time I run "from paraview.simple import *" or '"from vtk
import *", I will get a "Segmentation fault" error. Can anybody tell me
what's wrong, and can you share your python path setup in .bashre file?

My .bashrc file is like this:

# add paraview
export
PATH=$PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
# add paraview python to PYTHONPATH
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
export
PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
export
PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/
export
PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/vtk/
export
PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/

Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171117/1b698f01/attachment.html>


More information about the ParaView mailing list