Hemabh Kamboj

    Hemabh Kamboj

    3 months ago
    Hi Folks! I am facing an issue in running a flow on schedule after registering it on prefect cloud. I am getting the following error in logs in prefect cloud
    Failed to load and execute flow run: FlowStorageError('An error occurred while unpickling the flow:\n  ModuleNotFoundError("No module named \'google.api\'")\nThis may be due to a missing Python module in your current environment. Please ensure you have all required flow dependencies installed.')
    I tried running the flow by putting the
    flow.run
    instead of
    flow.register
    and then ran the flow using
    python3 workflow.py
    . And its running fine. The agent is installed on the same machine from where I ran the flow manually. So registering and running are done from the same machine. So I cannot understand why such error is thrown. Can anybody help?
    Anna Geller

    Anna Geller

    3 months ago
    Hemabh Kamboj

    Hemabh Kamboj

    3 months ago
    Thank you so much @Anna Geller, will take a look and try fixing.