gray-magician-44602
09/30/2022, 11:27 AMpyflyte --config config.yaml register test1.py --version 1.0.1
I have created the code as mentioned in the doc, https://docs.flyte.org/projects/cookbook/en/latest/auto/core/containerization/multi_images.html#
The config.yaml is,
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///##############-16##<http://26454.us-west-1.elb.amazonaws.com:80|26454.us-west-1.elb.amazonaws.com:80>
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
images:
trainer: <http://ghcr.io/flyteorg/flytecookbook:core-latest|ghcr.io/flyteorg/flytecookbook:core-latest>
predictor: moulee31/sample:1.0
The error is,
Traceback (most recent call last):
File "/home/sanjaychouhan/.local/bin/pyflyte", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/clis/sdk_in_container/register.py", line 174, in register
registerable_entities = load_packages_and_modules(
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/repo.py", line 225, in load_packages_and_modules
registrable_entities = serialize(pkgs_and_modules, ss, str(project_root), options)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/repo.py", line 54, in serialize
registrable_entities = get_registrable_entities(ctx, options=options)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/serialize_helpers.py", line 75, in get_registrable_entities
get_serializable(new_api_serializable_entities, ctx.serialization_settings, entity, options=options)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/translator.py", line 578, in get_serializable
cp_entity = get_serializable_task(entity_mapping, settings, entity)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/translator.py", line 173, in get_serializable_task
container = entity.get_container(settings)
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/core/python_auto_container.py", line 164, in get_container
image=get_registerable_container_image(self.container_image, settings.image_config),
File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/core/python_auto_container.py", line 235, in get_registerable_container_image
raise AssertionError(f"Image Config with name {name} not found in the configuration")
AssertionError: Image Config with name trainer not found in the configuration
It was working with pyflyte run command,
pyflyte --config config.yaml run --remote test1.py test_workflow
freezing-airport-6809
high-accountant-32689
09/30/2022, 3:54 PMvictorious-park-53030
09/30/2022, 4:59 PMsanjaychouhan@prod-ml-jenkins:~/sanjay/proj1$ flytectl version
{
"App": "flytectl",
"Build": "5a331a4",
"Version": "0.6.14",
"BuildTime": "2022-09-30 06:42:16.470336591 -0700 PDT m=+0.025348873"
}{
"App": "controlPlane",
"Build": "f10a7f2",
"Version": "v1.1.28-2-gf10a7f2",
"BuildTime": "2022-09-26 05:04:50.640235744 +0000 UTC m=+0.175387530"
high-accountant-32689
09/30/2022, 5:01 PMflytekit==1.1.*
is running