Ryan Sattler

    Ryan Sattler

    10 months ago
    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?
    Kevin Kho

    Kevin Kho

    10 months ago
    What Storage are you using?
    Ryan Sattler

    Ryan Sattler

    10 months ago
    S3
    Kevin Kho

    Kevin Kho

    10 months ago
    When you go to the bucket, do you see your Flow file there?
    Ryan Sattler

    Ryan Sattler

    10 months ago
    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
    Kevin Kho

    Kevin Kho

    10 months ago
    That sounds fine
    Ryan Sattler

    Ryan Sattler

    10 months ago
    yes the file is in the bucket
    and if I download and open it, it looks fine
    Kevin Kho

    Kevin Kho

    10 months ago
    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?
    Ryan Sattler

    Ryan Sattler

    10 months ago
    yes the format looks ok. I’ll try again
    still an error: 11:06:27 INFO S3 Flow successfully downloaded. ETag: “acf06abe2de7d39d8f6b6557c8014014”, LastModified: 2021-11-09T00:04:25+00:00, VersionId: None 11:06:27 ERROR execute flow-run Failed to load and execute Flow’s environment: ValueError(‘No flows found in file.’)
    Kevin Kho

    Kevin Kho

    10 months ago
    Could you DM me the flow if it’s small enough?
    Ryan Sattler

    Ryan Sattler

    10 months ago
    ok