Find Data is min/max feature is broken
While going through the ParaView tutorial for version 5.6 (with RC2), I ran into the following issue. When you open the Find Data
dialog box and try to do a selection where the field is max or is min, you get a bunch of Python errors and nothing is selected. To replicate, do the following.
- Load can.ex2. Load all variables. Apply.
- Go to the last time step.
- Open the
Find Data
dialog box. - In the second row of combo boxes, select
Global ID
andis min
. - Click
Run Selection Query
When you run the selection query, you get the following error messages.
Error: Failed to evaluate Expression 'GlobalElementId == min(GlobalElementId)'. The following exception stack should provide additional developer specific information. This typically implies a malformed expression. Verify that the expression is valid.
Warning: In C:\bbd\6c27b535\source-paraview\ParaViewCore\ClientServerCore\Core\vtkPythonSelector.cxx, line 76
vtkPythonSelector (00000281446F7E10): Could not invoke 'python_selector.execute()'
Traceback (most recent call last):
File "C:/Program Files/ParaView 5.6.0-RC2-Qt5-MPI-Windows-msvc2015-64bit/bin\Lib/site-packages\paraview\python_selector.py", line 76, in execute
maskArray = calculator.compute(inputs, query, ns=elocals)
File "C:/Program Files/ParaView 5.6.0-RC2-Qt5-MPI-Windows-msvc2015-64bit/bin\Lib/site-packages\paraview\calculator.py", line 140, in compute
retVal = eval(expression, globals(), mylocals)
File "<string>", line 1, in <module>
File "C:/Program Files/ParaView 5.6.0-RC2-Qt5-MPI-Windows-msvc2015-64bit/bin\Lib/site-packages\vtkmodules\numpy_interface\algorithms.py", line 396, in min
return _global_func(MinImpl(), array, axis, controller)
File "C:/Program Files/ParaView 5.6.0-RC2-Qt5-MPI-Windows-msvc2015-64bit/bin\Lib/site-packages\vtkmodules\numpy_interface\algorithms.py", line 196, in _global_func
from mpi4py import MPI
ImportError: No module named mpi4py