Ke

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.

Kyle

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: ParaView <paraview-boun...@paraview.org> on behalf of Ke Gao 
<ke.gao...@gmail.com>
Sent: Friday, November 17, 2017 1:30:02 PM
To: ParaView
Subject: [Paraview] Anaconda python Environment setup to use paraview python

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.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to