Python error from loghandler.py when initializing in-situ
I get the following error with my Catalyst1 adaptor built with ParaView 5.11.0 (once I figured out how to turn off vtkPythonInterpreter
output redirection):
--- Logging error ---
Traceback (most recent call last):
File "/home/mr618/rds/rds-dirac-dp002/shared/paraview/build-v5.11.0/superbuild/paraview/build/lib/python3.8/site-packages/paraview/detail/loghandler.py", line 33, in emit
elif lvl == vtkLogger.VERBOSITY_DEBUG:
AttributeError: type object 'vtkmodules.vtkCommonCore.vtkLogger' has no attribute 'VERBOSITY_DEBUG'
Call stack:
File "/home/mr618/rds/rds-dirac-dp002/shared/paraview/build-v5.11.0/superbuild/paraview/build/lib/python3.8/site-packages/paraview/catalyst/detail.py", line 136, in InitializePythonEnvironment
log(log_level(), "initializing Python environment for in situ")
File "/usr/lib64/python3.8/logging/__init__.py", line 1512, in log
self._log(level, msg, args, **kwargs)
File "/usr/lib64/python3.8/logging/__init__.py", line 1589, in _log
self.handle(record)
File "/usr/lib64/python3.8/logging/__init__.py", line 1599, in handle
self.callHandlers(record)
File "/usr/lib64/python3.8/logging/__init__.py", line 1661, in callHandlers
hdlr.handle(record)
File "/usr/lib64/python3.8/logging/__init__.py", line 954, in handle
self.emit(record)
File "/home/mr618/rds/rds-dirac-dp002/shared/paraview/build-v5.11.0/superbuild/paraview/build/lib/python3.8/site-packages/paraview/detail/loghandler.py", line 44, in emit
self.handleError(record)
Message: 'initializing Python environment for in situ'
Arguments: ()
I think the problem is that VERBOSITY_DEBUG
is not a vtkLogger
verbosity level. FWIW, I had manually set the vtkLogger
verbosity to VERBOSITY_9 == VERBOSITY_TRACE
by earlier calling
vtkLogger::LogToFile("<file name>", vtkLogger::APPEND, vtkLogger::ConvertToVerbosity(9));
in my code before vtkLogger::Init
.