# ask-the-community

Sanjay Chouhan

09/30/2022, 11:27 AM
How to use multiple images with a config file in `pyflyte register`command? I am running,
pyflyte --config config.yaml register --version 1.0.1
I have created the code as mentioned in the doc, The config.yaml is,
Copy code
  # For GRPC endpoints you might want to use dns:///
  endpoint: dns:///##############-16##<|>
  authType: Pkce
  insecure: true
  show-source: true
  level: 0
  trainer: <|>
  predictor: moulee31/sample:1.0
The error is,
Copy code
Traceback (most recent call last):
  File "/home/sanjaychouhan/.local/bin/pyflyte", line 8, in <module>
  File "/usr/lib/python3/dist-packages/click/", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", 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/", line 174, in register
    registerable_entities = load_packages_and_modules(
  File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/", 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/", line 54, in serialize
    registrable_entities = get_registrable_entities(ctx, options=options)
  File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/tools/", 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/", 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/", line 173, in get_serializable_task
    container = entity.get_container(settings)
  File "/home/sanjaychouhan/.local/lib/python3.8/site-packages/flytekit/core/", 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/", 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 test_workflow

Ketan (kumare3)

09/30/2022, 1:45 PM
Cc @Samhita Alla can you quickly try this one?

Eduardo Apolinario (eapolinario)

09/30/2022, 3:54 PM
@Sanjay Chouhan, can you confirm which version of flytekit you're running?

Shivay Lamba

09/30/2022, 4:59 PM
@Eduardo Apolinario (eapolinario) Sanjay had shared this:
Copy code
sanjaychouhan@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"

Eduardo Apolinario (eapolinario)

09/30/2022, 5:01 PM
ok, I meant the flytekit version installed in the venv. I just want to confirm that
is running