azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

mldesigner: error: invalid choice: 'execute' (choose from 'generate')

Open palmerss opened this issue 3 years ago • 8 comments

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

palmerss avatar Sep 19 '22 16:09 palmerss

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Storage:0.17655122,Service Bus:0.13826701,Machine Learning:0.061742257'

azure-sdk avatar Sep 19 '22 16:09 azure-sdk

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Sep 19 '22 16:09 ghost

Hi @palmerss thanks for the feedback, we'll investigate asap. @azureml-github

l0lawrence avatar Sep 19 '22 16:09 l0lawrence

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

palmerss avatar Sep 19 '22 17:09 palmerss

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 avatar Sep 20 '22 04:09 0mza987

@0mza987 I'll give this a shot and report back within the next day

palmerss avatar Sep 20 '22 17:09 palmerss

@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 is already registered and cannot be changed"

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

palmerss avatar Sep 23 '22 18:09 palmerss

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 avatar Sep 23 '22 18:09 palmerss

@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.

0mza987 avatar Sep 27 '22 03:09 0mza987

And can you please show us the interface of your component definition and how you consume it like below example?

image image

0mza987 avatar Sep 27 '22 03:09 0mza987

@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 image

Command Component image

palmerss avatar Oct 03 '22 20:10 palmerss

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.

palmerss avatar Feb 23 '23 04:02 palmerss