Trouble Using Interact() Method

I am currently working on a python script to perform some operations as a macro. For part of it I want the user to define a cutting plane visually, as in be able to move around the plane the way you might be able to do so with a clip in a render view. I thought utilizing the Interact Method may help with that but I don’t know how to use it and I am getting a “QVTKInteractor cannot control the event loop.” error. As such I was wondering what the best solution to this issue may be. Thank you for your time.

Are you using this script in ParaView python shell or pvpython ?

Neither it is python file that is imported as a marco into Paraview

using interact is only supported in pvpython, not in python macros inside of ParaView.