AzureML: While running the command "az ml run script....." in Azure DevOps pipeline fails with following error: ERROR: 'function' object has no attribute 'urlencode'. "

Samarjeet Patil 0 Reputation points
2023-09-05T15:15:34.09+00:00

I have a Azure Devops pipeline with a task for model training that has the following command "az ml run script....." , the task fails with the following error: ERROR: 'function' object has no attribute 'urlencode'." although I'm not using urlencode in my python script. This happens when I use Python version 3.10 or higher in UsePython task whereas it works fine with Python 3.8

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,024 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,296 Reputation points
    2023-09-06T03:39:56.17+00:00

    Hello @Samarjeet Patil , Thanks for using Microsoft Q&A Platform.

    Looks like the issue is similar to this https://github.com/Azure/azure-cli/issues/21377 . I would suggest trying the temporary workaround with another python version like 3.8

    Please raise this issue here by selecting create new issue button: https://github.com/Azure/azure-cli/issues/21377

    I hope this helps.

    Regards,
    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.