azure-sdk-for-python
azure-sdk-for-python copied to clipboard
mldesigner: error: invalid choice: 'execute' (choose from 'generate')
Package Name: azure-ai-ml Package Version: 0.1.0b6 , mldesigner: 0.1.0b6 Operating System: ubuntu Python Version: 3.8.12
Describe the bug When launching a job it promptly fails with an mldesigner error in the std_log.txt, reading
" usage: mldesigner [-h] {generate} ... mldesigner: error: invalid choice: 'execute' (choose from 'generate') "
I was last able to launch the same pipelines this past Friday with no issue
Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Storage:0.17655122,Service Bus:0.13826701,Machine Learning:0.061742257'
Thank you for your feedback. This has been routed to the support team for assistance.
Hi @palmerss thanks for the feedback, we'll investigate asap. @azureml-github
Update on my part, reverting mldesigner back to 0.1.0b3 seems to allow me to launch pipelines again, however this also restricts me on the usage of optional arguments that mldesigner 0.1.0b6 addresses
Hi @palmerss, we have repro-ed this issue, it's very likely because your image used cache mldesigner package instead of the latest one. Please try to specify mldesigner version to be 0.1.0b6 in your environment yaml like this:
"pip": [
"mldesigner==0.1.0b6",
]
@0mza987 I'll give this a shot and report back within the next day
@0mza987 I'm unable to use the conda.yml with my environment, whenever try to launch the version of my environment that uses the conda.yml I get an error when launching that reads along the lines of
"Environment <environment_name> with version
However I did double check that the docker image for my job is updated with both mldesigner==0.1.0b6 AND azure-ai-ml==0.1.0b6
I am now getting a different error shortly after launching in the std_log.txt that looks to be in mldesigner/_utils.py line 223, in list_2_dict
key, value = item.split("=")
ValueError: too many values to unpack (expected 2)
keep in mind I'm using the python azure-ai-ml package and not the cli tool
Oh and of course let me know if I should just open this up as a separate issue and close this one out, because this may seem different enough.
@palmerss can I get a look at your component command of the failed component? This error looks like the command is not in correct format which should be like "--inputs a=1 b=2", if you are trying to use optional parameter, make sure you pass nothing at all instead of passing an empty string when consuming the component.
And can you please show us the interface of your component definition and how you consume it like below example?

@0mza987 Sorry for the delay in response, have been pretty busy, before getting these screenshots for you I went ahead and tried updating azure-ai-ml to 0.1.0b7 with mldesigner at version 0.1.0b6, still am getting the same error, as mentioned above, reverting mldesigner back to 0.1.0b3 allows me to launch jobs for the time being, but doesn't allow me to make use of optional inputs
pipeline

Command Component

This issue has been resolved with the latest version of azure-ai-ml and mldesigner, as of the date of this comment, not sure what version it was actually fixed.