Hello, I have a flyte .py file that imports a modu...
# ask-the-community
f
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'
k
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.
f
Thanks @Kevin Su, I will try.
I registered the files. It still complaining about the same when I run flow with --remote. What else should I do before running the flow in --remote?
166 Views