Hi - I’m trying to switch from Pickle storage to S...
# ask-community
r
Hi - I’m trying to switch from Pickle storage to Script storage for my flow (in an attempt to work around an issue with local code dependencies). Having done this it uploads successfully, but then at run I get an error
Failed to load and execute Flow's environment: ValueError('No flows found in file.')
Why is this?
k
What Storage are you using?
r
S3
k
When you go to the bucket, do you see your Flow file there?
r
BTW, this is a self-registering flow (ie I call flow.register at the end of
main()
as I’ve never been able to get it to work any other way
k
That sounds fine
r
yes the file is in the bucket
and if I download and open it, it looks fine
k
Could you show me how you define S3 storage?
This looks good. Is your file like this on S3?
slugified-flow-name/slugified-current-timestamp
Could you try re-registering?
r
yes the format looks ok. I’ll try again
still an error: 110627 INFO S3 Flow successfully downloaded. ETag: “acf06abe2de7d39d8f6b6557c8014014”, LastModified: 2021-11-09T000425+00:00, VersionId: None 110627 ERROR execute flow-run Failed to load and execute Flow’s environment: ValueError(‘No flows found in file.’)
k
Could you DM me the flow if it’s small enough?
r
ok