CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview from python shell : Glew initialization and VTKcommoncorepython error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2018, 14:40
Unhappy Paraview from python shell : Glew initialization and VTKcommoncorepython error
  #1
New Member
 
Join Date: Jun 2018
Location: Canada
Posts: 10
Rep Power: 3
pradyumnsingh is on a distinguished road
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
pradyumnsingh is offline   Reply With Quote

Reply

Tags
paraview 4.2, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:05.