Hello,
I have a flyte .py file that imports a module I created from a subdir called lib and it contains another workflow that is intended as subflow.
Copy code
from lib.subwf import my_subwf
I can run the flyte flow successfully in local mode.
However, it errored when running with --remote in the demo flyte cluster I started on my PC.
The error msg is:
Copy code
ModuleNotFoundError: No module named 'lib'
g
glamorous-carpet-83516
10/06/2022, 6:42 PM
currently, pyflyte run only uploads single script (workflow code) to s3, and won’t upload your subdir. Try to use pyflyte register, it will upload your workflow code and submodule.