Ok, So far from here I have realised that the issue above seems to be due to the 64bit Python version installed. So I uninstalled it and installed the 32bit version. Now when I try to run the command from paraview.simple import * I get the error:
Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\ParaView 5.4.1-822-g597adef-Qt5-Windows-64bit\bin\Lib\site-packages\paraview\simple.py”, line 41, in
from paraview import servermanager
File “C:\Program Files\ParaView 5.4.1-822-g597adef-Qt5-Windows-64bit\bin\Lib\site-packages\paraview\servermanager.py”, line 53, in
from paraview import vtk
File “C:\Program Files\ParaView 5.4.1-822-g597adef-Qt5-Windows-64bit\bin\Lib\site-packages\paraview\vtk_init_.py”, line 7, in
from paraview.vtk.vtkCommonCore import *
File “C:\Program Files\ParaView 5.4.1-822-g597adef-Qt5-Windows-64bit\bin\Lib\site-packages\paraview\vtk\vtkCommonCore.py”, line 9, in
from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython
Which has also been reported here. From here it seems that it can’t find the vtkCommonCorePython which is in the folder:
However when adding this path to the PYTHONPATH as described here I get the new error:
ImportError: DLL load failed: %1 is not a valid Win32 application.
The exact error has been also reported here. This post says that this might happen because my ParaView version is 64bit. I looked for a 32 bit version of paraview but didn’t find any
The render window is not expected to be interactive when using ParaView’s Python scripting. One important exception is if you are executing Python scripts in paraview.exe - in that case the RenderView is interactive.
ParaView and all supporting libraries are 64-bit. It will work only with the 64-bit Python installation. There is no need for 32-bit anything. But as I mentioned here, pvpython.exe may be your best bet.
So the non responding window is expected? Doesn’t seem like a normal behaviour to me. It is ok if it not interactive but still you should be able to move the window and resize it …
Using ParaView through Python is usually meant for batch generation of images that are saved to files. For such uses, the window is incidental and disappears when the python executable terminates, so the fact that it is not movable has not been enough of an issue to address. To resize the window, use the Python commands
v = GetActiveView()
v.ViewSize=[500,500] # [width,height]
Render()