Retrieve data from psydat file

hi all,

I accidently deleted my excel file and i am trying to retrieve the data from the psydat file.
I tried saving the data with the code here Data outputs — PsychoPy v2022.1.4

but i get this error AttributeError: ‘str’ object has no attribute ‘saveAsWideText’. Any clues why is that? thanks you in advance