pvpython generated states have empty selections
I generate a selection of (one) point using its id and store the generated state in a state file. With the GUI I get the correct state extractSelState.pvsm with the selection containing the point.
At the same time, I traced the selection and obtained the python trace trace.py. If I add the line
SaveState('stateFromPython.pvsm')
to the end, I get the state file stateFromPython.pvsm, which have an empty selection. Furthermore the selection does not show the query anymore.
The selection is correctly generated and contains the point. But it is missing in the state file. Is there a simple workaround for that? At the moment I use generate a python-programmable filter in the pvpython generated state file, which selects the points by hand.
My paraview and pvpython versions are 5.8.0, where pvpython used the python3.7-64bit backend.