ambitious-airplane-25777
07/04/2024, 11:24 AMFlyteRemote.register_workflow()___init__.py_# flyte_playground directory
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config, ImageConfig
from autojoin_flyte_workflow.workflow import wf
from flytekit.configuration import SerializationSettings, FastSerializationSettings
remote = FlyteRemote(config=Config.auto(), default_project="flytesnacks", default_domain="development")
_, native_url = remote.fast_package(root=".")
flyte_workflow = remote.register_workflow(
    entity=wf,
    serialization_settings=SerializationSettings(
        image_config=ImageConfig.auto_default_image(),
        project="flytesnacks",
        domain="development",
        version="remote_registration_v0",
        fast_serialization_settings=FastSerializationSettings(enabled=True, destination_dir=".", distribution_location=native_url),
    ),
)
remote.execute(
    entity=flyte_workflow,
    # inputs={"dirpath": "<s3://my-s3-bucket/input-data-test>", "output_location": "<s3://my-s3-bucket/output-data-test/>"},
    inputs={"dirpath": "<gs://igenius-flyte-userdata/alessandro-test/input-data>", "output_location": "<gs://igenius-flyte-userdata/alessandro-test/output-data/>"}
)ModuleNotFoundError: No module named 'flyte_playground'__init__.pytall-lock-23197
brash-autumn-99506
07/05/2024, 10:14 AMflyte_playgroundflyte_playground
βββ hello_world_dir
β   βββ __init__.py
β   βββ hello_world.py
βββ register_workflow.pyflyte_playground
βββ __init__.py
βββ hello_world_dir
β   βββ __init__.py
β   βββ hello_world.py
βββ register_workflow.pyModuleNotFoundError: No module named 'flyte_playground'register_workflow.pypython register_workflow.pyfrom flytekit.remote import FlyteRemote
from flytekit.configuration import Config, ImageConfig
from hello_world_dir.hello_world import hello_world_workflow
from flytekit.configuration import SerializationSettings, FastSerializationSettings
remote = FlyteRemote(config=Config.auto(), default_project="flytesnacks", default_domain="development")
_, native_url = remote.fast_package(root=".")
flyte_workflow = remote.register_workflow(
    entity=hello_world_workflow,
    serialization_settings=SerializationSettings(
        image_config=ImageConfig.auto_default_image(),
        project="flytesnacks",
        domain="development",
        version="1.0.1",
        fast_serialization_settings=FastSerializationSettings(enabled=True, destination_dir=".", distribution_location=native_url),
    ),
)
remote.execute(
    entity=flyte_workflow,
    inputs={"name": "foo", "answer": "bar"},
)rootdestination_dirtall-lock-23197
destination_dir/rootbrash-autumn-99506
07/08/2024, 8:33 AMdestination_dir="/root"ModuleNotFoundError: No module named 'flyte_playground'tall-lock-23197
brash-autumn-99506
07/09/2024, 7:27 AMflyte_playgrounddestination_dir=="/root"flyte_playground.hello_world_dir.hello_world.hello_world_workflowModuleNotFoundError: No module named 'flyte_playground'flyte_playgrounddestination_dir=="/root"hello_world_dir.hello_world.hello_world_workflowtall-lock-23197
flyte_playgroundbrash-autumn-99506
07/09/2024, 7:49 AMModuleNotFoundError: No module named 'flyte_playground'"flyte_playground"destination_dir="/root"tall-lock-23197
__init__.pybrash-autumn-99506
07/09/2024, 7:56 AMparent.flyte_playground.hello_world_dir.hello_world.hello_world_workflowModuleNotFoundError: No module named 'parent'tall-lock-23197
brash-autumn-99506
07/09/2024, 8:19 AMx hello_world_dir/
x hello_world_dir/__init__.py
x hello_world_dir/hello_world.py
x __init__.pyNo output path provided, using a temporary directory at /var/folders/... insteadtall-lock-23197
flyte_playgroundtall-lock-23197
remote.fast_package(root="flyte-playground")brash-autumn-99506
07/09/2024, 8:23 AMtall-lock-23197
parentbrash-autumn-99506
07/09/2024, 8:25 AMparenttall-lock-23197
brash-autumn-99506
07/09/2024, 1:08 PM.flyteignoretall-lock-23197
so the gist is that in the root dir where we run the registration file there has not to be any init file, right?that's right. that's how the task path is determined.
I didn't find any documentation aboutwe'll need to document this but it's available: https://github.com/flyteorg/flytekit/blob/5b3e7256c8cb14f19dd727e964b26be346d491b5/flytekit/tools/ignore.py#L90, is there any?.flyteignore
brash-autumn-99506
07/09/2024, 2:26 PMroottall-lock-23197
__init__.py