Hi there, I may have misssed it but I can’t find a...
# ask-the-community
g
Hi there, I may have misssed it but I can’t find a reference in the docs. How can I create a new launch plan for an existing workflow using flytekit (python)? I’ve tried using
@reference_workflow
Copy code
@reference_workflow(
    project="proj",
    domain="development",
    name="<http://myprod.wf|myprod.wf>",
    version="0.2.19",
)
def wf(
    param: str,
) -> str:
    ...


wf_lp = LaunchPlan.create(
    name="my_wf_lp",
    workflow=wf,
    fixed_inputs={"param": "yes"},
)
but I get the following kind of obvious error
Copy code
<...>/lib/python3.10/site-packages/flytekit/core/launch_plan.py:126 in create                                         │
│                                                                                                                                                                          │
│ ❱ 126 │   │   wf_signature_parameters = transform_inputs_to_parameters(ctx, workflow.python_in                                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'function' object has no attribute 'python_interface'
s
This should work. @Eduardo Apolinario (eapolinario) / @Kevin Su, is this a bug?
g
Should I open an issue @Samhita Alla?
s
yes, please create an issue. [flyte-bug]
g