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

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.
2,088 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 7,081 Reputation points

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

    Looks like the issue is similar to this . 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:

    I hope this helps.


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

    0 comments No comments