Share via

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
0 comments No comments

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,741 Reputation points Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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