[Paraview] paraview.simple and generic python
Scott, W Alan
wascott at sandia.gov
Fri Feb 7 20:24:15 EST 2014
I have a user that wants to use ParaView from within generic python (not pvpython). Unfortunately, I am somewhat struggling. Does anyone have any ideas?
I am running the version of Python that was used to build ParaView (i.e., probably no version mismatch).
setenv LD_LIBRARY_PATH .../Python-2.7.5/lib/
setenv PYTHONPATH ....paraview-install/lib/paraview-4.1/site-packages
..../Python-2.7.5/bin/python
Python 2.7.5 (default, Jun 17 2013, 15:20:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from paraview.simple import *
Error: Could not import vtkCommonComputationalGeometryPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "..../lib/paraview-4.1/site-packages/paraview/simple.py", line 41, in <module>
import servermanager
File "..../lib/paraview-4.1/site-packages/paraview/servermanager.py", line 48, in <module>
import paraview, re, os, os.path, new, sys, atexit, vtk
File "..../lib/paraview-4.1/site-packages/paraview/vtk/__init__.py", line 7, in <module>
from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython
>>>
So, my question is, where does vtkCommonCorePython come from? There isn't a vtkCommonCorePython.py in the tree, but is a ..../lib/paraview-4.1/site-packages/vtk/vtkCommonCorePython.so. How does this get linked in?
Thanks,
Alan Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140208/dfdb2132/attachment.html>
More information about the ParaView
mailing list