<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div id="compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div style="direction:ltr">Ke </div>
<div><br>
</div>
<div style="direction:ltr">I have not had luck with anaconda and utilizing paraview python tools. The problems comes from compilation options. To run the paraview modules the python you are using needs to be compiled with the option --enable-unicode set at
 compile time. The python that ships with Anaconda does not come with this. Specifically, I think that for ParaView versions > 5 you need to enable universal character set 4 for everything to work. I use PV 4.4 with a self built python 2.7.13 and the only compile
 option -enable-Unicode and it works great. </div>
<div><br>
</div>
<div style="direction:ltr">Kyle</div>
<div><br>
</div>
<div class="acompli_signature">Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> ParaView <paraview-bounces@paraview.org> on behalf of Ke Gao <ke.gao.ut@gmail.com><br>
<b>Sent:</b> Friday, November 17, 2017 1:30:02 PM<br>
<b>To:</b> ParaView<br>
<b>Subject:</b> [Paraview] Anaconda python Environment setup to use paraview python</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
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?<br>
<br>
</div>
My .bashrc file is like this:<br>
<br>
# add paraview<br>
export PATH=$PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/<br>
# add paraview python to PYTHONPATH<br>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/<br>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4<br>
export PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/<br>
export PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/<br>
export PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/vtk/<br>
export PYTHONPATH=$PYTHONPATH:/lclscratch/ProgramFiles/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/<br>
<br clear="all">
<div>
<div>
<div>Thank you very much.<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>