Hello,
Iβm trying to run the Getting Started
wine classification example on my Flyte setup, but have faced several errors.
My setup is consisted of: Jupyter Hub + Flyte on the same K8S cluster. The codes are
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config, PlatformConfig, ImageConfig, SerializationSettings
remote = FlyteRemote(
config=Config(
platform=PlatformConfig(
endpoint="dns:///flyte-backend-flyte-binary-grpc.namespace.svc.cluster.local:8089",
insecure=True,
insecure_skip_verify=True,
)
),
default_project="flytesnacks",
default_domain="development",
data_upload_location="<s3a://flyte-storage/>"
)
HYPERPARAMS = {
"hyperparameters": {"C": 0.1}
}
flyte_entity = training_workflow
flyte_workflow = remote.register_workflow(
entity=flyte_entity,
serialization_settings=SerializationSettings(image_config=ImageConfig.auto_default_image()),
version="v1"
)
launch_plan = LaunchPlan.get_or_create(
workflow=flyte_workflow,
name="wine_classification_lp",
default_inputs=HYPERPARAMS,
)
remote.register_launch_plan(launch_plan, "v1", project="flytesnacks", domain="development")
And the workflow failed right at the first task
get_data
, here is the error Iβve got
[1/1] currentAttempt done. Last Error: USER::rapped(*args, **kwargs) β
β β
β /usr/local/lib/python3.8/site-packages/flytekit/bin/entrypoint.py:347 in β
β _execute_task β
β β
β β± 347 β β _task_def = resolver_obj.load_task(loader_args=resolver_args) β
β β
β /usr/local/lib/python3.8/site-packages/flytekit/core/utils.py:295 in wrapper β
β β
β β± 295 β β β β return func(*args, **kwargs) β
β β
β /usr/local/lib/python3.8/site-packages/flytekit/core/python_auto_container.p β
β y:235 in load_task β
β β
β β± 235 β β task_module = importlib.import_module(name=task_module) # typ β
β β
β /usr/local/lib/python3.8/importlib/__init__.py:127 in import_module β
β β
β β± 127 β return _bootstrap._gcd_import(name[level:], package, level) β
β in _gcd_import:1011 β
β in _sanity_check:950 β
β°βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ―
ValueError: Empty module name
Any suggestion on which might have caused this error and how to fix it? Iβm suspecting that I havenβt registered the workflow or the launch plan properly.