https://prefect.io logo
#prefect-community
Title
# prefect-community
w

wonsun

06/27/2022, 12:06 PM
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

James Sopkin

06/27/2022, 2:55 PM
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

Kevin Kho

06/27/2022, 3:28 PM
I think you need to allow for permissions on those files using
chmod
. Not adding sudo to the Flow.
upvote 1
w

wonsun

06/28/2022, 12:14 AM
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!
3 Views