Alvaro Durán Tovar
04/21/2023, 7:44 PMflows/api_flow.py
and the entrypoint is ./flows/api_flow.py:call_api
.
The error comes when triggering the flow to run it on kubernetes.
Failes with this error:
prefect.exceptions.ScriptError: Script at 'flows/api_flow.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')
<something>
but then it spams my bucket.
The errors comes when adding a path to the bucket path, any idea?
It’s not able to run the flow when it’s stored this way <something>/flows/flows/api_flow.py
and the bucket path configured as
<something/flows>
Ryan Peden
04/21/2023, 8:59 PMfsspec
and seems to have some issues when using the two newest release of `fsspec`: https://github.com/PrefectHQ/prefect/issues/9262
So, intentionally installing fsspec==2023.1.0
in your container image (instead of the newer 2023.3.0
or 2023.4.0
versions) might help.
Also, someone else here on Slack reported earlier today that setting path=""
in their deployment solved the issue for them. I don't know if that will work on your case, but I figure it is worth mentioning.