writing a pyhon script to semi-automate generation of CSV file for streamlines

I added

SaveData(“sample.csv”)

to the end of my python state file and ran it in pvpython. First it is giving me some errors like this:
( 22.655s) [paraview ] VisRTXBackend.cxx:42 WARN| VisRTX Error: Unsupported device

Also, I don’t know where the file would be saved?