Hi. I am using vtk in my pyQt project.
The issue I’m encountering is puzzling because the error doesn’t occur every time. Do you have any ideas on what might be causing this and how to diagnose it?
Here is the relevant code snippet of the creation of my viewer:
File "C:\Users\.conda\envs\vtkenv\lib\site-packages\vtkmodules\qt\QVTKRenderWindowInteractor.py", line 473, in
resizeEvent
self._Iren.SetSize(w, h)
File "C:\Users\.conda\envs\vtkenv\lib\site-packages\vtkmodules\qt\QVTKRenderWindowInteractor.py", line 416, in
__getattr__
elif hasattr(self._Iren, attr):
File "C:\Users\.conda\envs\vtkenv\lib\site-packages\vtkmodules\qt\QVTKRenderWindowInteractor.py", line 416, in
__getattr__
elif hasattr(self._Iren, attr):
File "C:\Users\.conda\envs\vtkenv\lib\site-packages\vtkmodules\qt\QVTKRenderWindowInteractor.py", line 416, in
__getattr__
elif hasattr(self._Iren, attr):
[Previous line repeated 987 more times]
File "C:\Users\.conda\envs\vtkenv\lib\site-packages\vtkmodules\qt\QVTKRenderWindowInteractor.py", line 414, in
__getattr__
if attr == '__vtk__':
RecursionError: maximum recursion depth exceeded in comparison
Hi again!
I tried to track down the problem and find where the program stops, and the code execution stops right before this instruction inside the function __init__ in the file “QVTKRenderWindowInteractor.py”