Hi community~! I have a question about PermissionE...
# prefect-community
w
Hi community~! I have a question about PermissionError. I am trying to create a virtual environment in a separately created account in Linux and run prefect flow there. In my flow, there is a task that needs to go to a specific folder and save the task's result as a csv file, and a permissionError occurs in this process. Maybe I think it's normal. If i want to create, modify, or delete data in that folder, i must enter 'sudo' and something, but flow does not include that task(sudo ~~). How can i solve this problem?
j
Are you running this flow locally? Is it possible to forgo the step where you save a result in csv? Like return a pandas dataframe and perform transformations on that?
k
I think you need to allow for permissions on those files using
chmod
. Not adding sudo to the Flow.
upvote 1
w
I gave full permission to that folder with
chmod
, but it didn't work to save it as a csv. As James said, I'll try to skip the process of just saving as csv. Thank you all!