September 18, 2018, 13:40
|
Paraview from python shell : Glew initialization and VTKcommoncorepython error
|
#1
|
New Member
Join Date: Jun 2018
Location: Canada
Posts: 10
Rep Power: 8
|
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
|
|
|