https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

10/06/2022, 6:35 PM
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

Kevin Su

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.
f

Frank Shen

10/06/2022, 6:48 PM
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?
32 Views