Share via

Debugging the Execute Python Scripts model in Azure–ML: Where can I find the print statements?

Sampat, Varun 236 Reputation points
2021-05-18T14:52:09.943+00:00

Hi,

I am using Azure Machine Learning – Designer (drag-n-drop) – to train an ML model. While doing so, I require to execute some Python code & hence decided to use the Execute Python Script module available.

While writing the script, I added print statements because it would allow for easier debugging. However, I have had no luck in finding a file where the print statements are stored.

I have tried the following solution. On failure of the script, this method (opening 70_driver_log.txt and searching for messages) only shows me the error returned by the Python Interpreter, but it doesn't show me any print statements at all. For example:

97526-screenshot-2021-05-18-at-64950-pm.png

Similarly, on success, no print statements are displayed.

Additionally, logs > azureml > stdoutlogs .txt is completely empty.

What clue am I missing? Any help is appreciated!

Azure Machine Learning

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.