paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7
Hi Foamers,
since I want to use the feature Edit | Find Data in ParaView v4 I've successfully followed wyldckat's instructions. To set-up the Python environment, I added the following lines in "~/.bashrc", after the line for OpenFOAM that ends with bashrc: Quote:
Quote:
Code:
Error: Could not import vtkCommonComputationalGeometryPython Quote:
Does the error cause further problems? Aylalisa |
Hi,
This line is for PV 3.12 Code:
export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/lib/paraview-3.12/site-packages Code:
export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/lib/paraview-4.1/site-packages:$ParaView_DIR/lib/paraview-4.1/site-packages/vtk Code:
$ python |
Hi Alexey,
my .bashrc file Code:
PYTHONPATH=$PYTHONPATH:/usr/lib64/python2.7/site-packages According to your path /vtk is missing. I've add /vtk --> it works. I get this output, too! Thank you! Aylalisa |
Hi,
in my code snippet there was .../paraview-4.1/site-packages but also .../paraview-4.1/site-packages/vtk. Without second entry I had the following error: Code:
$ export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/lib/paraview-4.1/site-packages Code:
$ export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/lib/paraview-4.1/site-packages:$ParaView_DIR/lib/paraview-4.1/site-packages/vtk |
The only change I made was to add site-packages/vtk at the end of the second path variable set-up.
Before that change I've received the error. After changing and sourcing .bashrc I've received... Code:
>>> from paraview.simple import* PYTHONPATH was not set at all on my system. But honestly speaking, I have not tried pvpython before. Am at the beginning concerning usage of python with openfoam and paraview. |
All times are GMT -4. The time now is 22:11. |