| Reference | Downloads | Github

SOLVED - csvFromPsydat need help with an error

I’m trying to retrieve csv data from a psydat file and I’m getting this result:

SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape

Any help would be great. Thanks.

Hi @Tem, would you mind posting the fill error message? IT could be that that any backslashes in your file path are being interpretted as special characters (see stack overflow). To fix, you could change your filepath string to a raw string: E.g.,

# EDIT THE NEXT LINE to be your .psydat file, with the correct path:
name = r'dat.psydat'

You are correct. It was the backlashes that was causing the error messages. I seem to have my csv files now. Thank you.