Write in a file when detct a intent

#1

Hello everybody,
Writing this message with the aim of helping me with a problem I have when writing to a csv file when I detect an intent. The problem is that I can write that file only if I have executed my python class in my raspberry, but if I do not execute it not only does it not write but all the following actions (send a voice message) are not executed.
To simplify the whole help process I put my github repository here so you can take a look at it.

#2

Most likely a permission issue. Make sure _snips has rights to write to the directory/file

#3

How can I give permission to _snips? Permissions can be given in the same execution (I said it because the file I want to write in is created in the first execution)?

#4

@Psycho could you help with with the permission pls