'Execution Python Script' version change

Waghbakriwala, Arif 16 Reputation points
2022-08-22T17:45:54.03+00:00

Hello all,

I coded some ML models using darts library on local desktop.
I am trying to build the pipeline in Azure ML Studio, using the in-built component 'Execute Python Script' in the designer tab.

What I am doing is, compressing the '.py' files of my code on local desktop into a zip file, and passing it into the 'Script bundle' argument of 'Execute Python Script' component of Azure ML, so that the code programmed on the local desktop could be reused in that component of pipeline.

What the issue is, the python version of 'Execute Python Script' component shows up as 3.6.8 and the darts library is suitable for python versions 3.8 and above. This version gap does not let the pipeline execute successfully and ends up throwing the following error:

azureml.studio.common.error.FailedToEvaluateScriptError: The following error occurred during script evaluation, please view the output log for more information:

----------
Start of error message from Python interpreter ----------
Got exception when invoking script at line 38 in function azureml_main: 'ImportError: cannot import name 'parse_version''.

----------
End of error message from Python interpreter ----------

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,573 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,616 Reputation points
    2022-08-24T02:22:57.34+00:00

    @Waghbakriwala, Arif Thanks for the details. Here is the troubleshooting guide for design error codes.
    https://learn.microsoft.com/en-us/azure/machine-learning/component-reference/designer-error-codes

    Here is the sample notebook for creating the custom components and document for component SDK.

    1 person found this answer helpful.
    0 comments No comments