Machine learning Python Runbook dependencies issue (Distro)

Ceiling Steps 50 Reputation points
2023-10-27T12:34:26.48+00:00

I'm trying to run a Automation Account Python Runbook to transform uploaded csv files in MLTables with a blob event, my idea is to trigger everything automatically when a file is uploaded, I tried the python script in my machine learning resource and it works, but when running as a Runbook I'm struggling a lot with module dependencies, no matter how many I install it always asks for more, and some are not available in pip so I need to download it and upload it manually, just to be asked for another one, the last one, "distro", is refusing to be installed, it does not matter if I use pip commands or upload the whl file manually it always fails, any idea of if there is an easier way to install all these machine learning dependencies at once? I installed mltable, azure.ai, and azure.identity successfully following these instructions.

I see that the same error triggered by this Distro module was mentioned here on a different module and the fix (based on the solution provided by @tbgangav-MSFT) seems to be on Azure's side rather than on user's side (as mentioned there it installs in 3.10 but not 3.8).

User's image

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
{count} votes

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.