Looking at https://vtk.org/download/,
there are only wheels for python 3.6 - 3.9. I don’t think python 3.10 is supported, unless Conda is doing something extra…
Actually that is expected as some VTK factories don’t get properly initialized.
You need to do the following imports to properly initialize it. The interactor style is probably not required for that specific example though.
I just followed your steps and the result was the same for me, no window opened and program terminates without error
Although I did receive the following warning in stdout
2022-04-07 09:10:45.648 Python[28107:7375278] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/5z/d1d_q74d1hd653s14vwq9v800000gn/T/org.python.python.savedState
A quick google search shows that this is a common warning when launching a window from python on macos. So it seems that at least there is some indication that the program is trying to launch a window.
What version of macos are you using? I am on version 12.1, also curious what version @bfosso is using