Hey, I'm trying to execute my deployment but keep getting an import error
Copy code
File "/Users/barad/Desktop/Code/prefect/venv/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 164, in load_script_as_module
raise ScriptError(user_exc=exc, path=path) from exc
prefect.exceptions.ScriptError: Script at 'quotes_flow.py' encountered an exception: ModuleNotFoundError("No module named 'common'")
This script is being ran from GitHub actions in this case, so whenever the flow or the deployment is modified, the script is called with the corresponding file name.
Miguel Moncada
05/09/2023, 10:34 AM
I'd also recommend reviewing the python package structure in general. I haven't checked it exhaustively but you might encounter dependency import issues as it is
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.