[Paraview] Importing paraview.simple from python
Mohammad Mirzadeh
mirzadeh at gmail.com
Tue Aug 9 12:52:48 EDT 2016
Thanks Utkarsh. Two issues:
1- Looks like I have to use OS X provided python (2.7)? Using any other
python results in
Fatal Python error: PyThreadState_Get: no current thread
2- using system python I get some unresolved symbol issue with MPI.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/paraview.app/Contents/Python/paraview/simple.py",
line 39, in <module>
import servermanager
File
"/Applications/paraview.app/Contents/Python/paraview/servermanager.py",
line 55, in <module>
from vtk.vtkPVServerImplementationCore import *
File
"/Applications/paraview.app/Contents/Python/paraview/vtk/vtkPVServerImplementationCore.py",
line 9, in <module>
from vtkPVServerImplementationCorePython import *
ImportError:
dlopen(/Applications/paraview.app/Contents/Libraries/vtkPVServerImplementationCorePython.so,
2): Symbol not found: _MPI_Group_size
Referenced from:
/Applications/paraview.app/Contents/Libraries/libmpich.3.3.dylib
Expected in: flat namespace
in /Applications/paraview.app/Contents/Libraries/libmpich.3.3.dylib
Any idea why that happens? I have open-mpi installed system-wide
(/usr/local).
On Tue, Aug 9, 2016 at 12:15 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> Attached is a script from an older email. The 5.1.* uses Python 2.7,
> so you'll need to update the script accordingly. I haven't tested it
> (as I don't have my Mac here), but it should give you some hints.
>
> Utkarsh
>
> On Tue, Aug 9, 2016 at 12:10 PM, Mohammad Mirzadeh <mirzadeh at gmail.com>
> wrote:
> > Along the same lines, is this possible with prebuilt binaries on OS X? I
> > have tried including
> >
> > export PYTHONPATH="$PYTHONPATH:/Applications/paraview.app/
> Contents/Python"
> > export
> > PYTHONPATH="$PYTHONPATH:/Applications/paraview.app/Contents/Python/vtk"
> > export
> > DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Applications/
> paraview.app/Contents/Library
> >
> > but have not been able to make it work
> >
> > On Tue, Aug 9, 2016 at 12:04 PM, Utkarsh Ayachit
> > <utkarsh.ayachit at kitware.com> wrote:
> >>
> >> Here's a sample launch script:
> >>
> >> #----------------------------------------------
> >> #!/usr/bin/env bash
> >> pvprefix=/tmp/ParaView-5.1.2-Qt4-OpenGL2-MPI-Linux-64bit/
> >> export
> >> PYTHONPATH=$pvprefix/lib/paraview-5.1/site-packages/
> vtk:$pvprefix/lib/paraview-5.1/site-packages
> >> export LD_LIBRARY_PATH=$pvprefix/lib/paraview-5.1
> >> python
> >> #----------------------------------------------
> >>
> >> Utkarsh
> >> _______________________________________________
> >> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160809/434b40f3/attachment.html>
More information about the ParaView
mailing list