Regression: Error while generating diagnostics (sys import missing)
Steps to reproduce:
- Create a
PythonAnnotation
and enterx
into the expression field
Instead of the very helpful list of variables that are currently in scope (I'm assuming here you don't have a variable called x
), which I get with 5.1.2, with 5.2.0-RC3 instead I get
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "<string>", line 5, in vtkPythonAnnotationFilter_EvaluateExpression
File "/Applications/ParaView-5.2.0-RC3.app/Contents/Python/paraview/annotation.py", line 93, in execute
"Variables in current scope are %s \n" % (expression, ns.keys()), file=sys.stderr)
NameError: global name 'sys' is not defined