CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Paraview from python shell : Glew initialization and VTKcommoncorepython error (https://www.cfd-online.com/Forums/paraview/206918-paraview-python-shell-glew-initialization-vtkcommoncorepython-error.html)

pradyumnsingh September 18, 2018 14:40

Paraview from python shell : Glew initialization and VTKcommoncorepython error
 
I am just trying to get Paraview to run from my python shell (a trace program) to automate making animation. Just for testing purposes I tried to run a simple program from a python shell:

HTML Code:

from paraview.simple import *
cone = Cone()
Show(cone)
Render()

This gives me an error like this:

HTML Code:

ERROR:In/home/conda/feedstock_root/build_artifacts/paraview_1532760595263/work/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 781 vtkOSOpenGLRenderWindow (0x556661755060): GLEW could not be initialized.ERROR:In/home/conda/feedstock_root/build_artifacts/paraview_1532760595263/work/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 781 vtkOSOpenGLRenderWindow (0x556661755060): GLEW could not be initialized.
Both Paraview and vtk were installed using conda in this case so that i dont have to deal with setting up path variables.

After this didnt work , I tried to install paraview separately and give path variables in my python shell separately. This gave me an error as following:

HTML Code:

ImportError: No module named vtkCommonCorePython


All times are GMT -4. The time now is 13:08.