[Paraview] Anaconda python Environment setup to use paraview python

Schau, Kyle A kschau at gatech.edu
Fri Nov 17 19:51:18 EST 2017


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-bounces at paraview.org> on behalf of Ke Gao <ke.gao.ut at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171118/148b6a5b/attachment.html>


More information about the ParaView mailing list