Permission denied: './outputs'

shimshad 21 Reputation points
2021-09-26T13:52:14.123+00:00

When I tried to run experiments in azure ml notebook using azure ml python SDK it giving an error message as permission denied.
I am also facing the same issue when I am trying to save CSV files in the same folder as the notebook saved.

compute instance using : STANDARD_DS3_V2
code -
experi = Experiment(workspace=ws,name="newsampleexperiment12")
run = experi.start_logging()

error message :

PermissionError Traceback (most recent call last)
<ipython-input-7-8946b6d7df18> in <module>
----> 1 run = experi.start_logging()

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/experiment.py in start_logging(self, *args, **kwargs)
259 """
260 from azureml.core.run import Run
--> 261 return Run._start_logging(self, *args, _parent_logger=self._logger, **kwargs)
262
263 @_check_for_experiment_id

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _start_logging(experiment, name, run_id, outputs, snapshot_directory, **kwargs)
586 typev2 = RunTypeV2(orchestrator="External", traits=['unspecified'])
587 run = Run._create(experiment, name=name, run_id=run_id, outputs=outputs,
--> 588 properties=properties, typev2=typev2, **kwargs)
589 run._client.start()
590 if snapshot_directory:

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _create(experiment, name, run_id, outputs, properties, tags, typev2, display_name, **kwargs)
706 properties=properties, tags=tags, typev2=typev2,
707 display_name=display_name)
--> 708 return Run._dto_to_run(experiment, run_dto, outputs=outputs, **kwargs)
709
710 @property

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in _dto_to_run(experiment, run_dto, outputs, **kwargs)
198 :rtype: Run
199 """
--> 200 return Run(experiment, run_dto.run_id, outputs=outputs, _run_dto=run_dto, **kwargs)
201
202 @classmethod

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/run.py in init(self, experiment, run_id, outputs, **kwargs)
171
172 """
--> 173 super(Run, self).init(experiment, run_id, outputs=outputs, **kwargs)
174 self._parent_run = None
175

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/_run_impl/run_base.py in init(self, experiment, run_id, outputs, logs, _run_dto, _worker_pool, _user_agent, _ident, _batch_upload_metrics, py_wd, deny_list, flush_eager, redirect_output_stream, **kwargs)
76 for output in outputs:
77 try:
---> 78 os.makedirs(output)
79 except OSError as exception:
80 if exception.errno != errno.EEXIST:

/anaconda/envs/azureml_py36/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
218 return
219 try:
--> 220 mkdir(name, mode)
221 except OSError:
222 # Cannot rely on checking for EEXIST, since the operating system

PermissionError: [Errno 13] Permission denied: './outputs'

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

2 answers

Sort by: Most helpful
  1. Anton Malarev 6 Reputation points
    2021-09-28T12:56:23.69+00:00

    Update: after switching from Chrome to Edge everything started working. I hope it helps you @shimshad

    1 person found this answer helpful.
    0 comments No comments

  2. Ramr-msft 17,741 Reputation points
    2021-09-28T04:13:24.643+00:00

    @shimshad Thanks for the question. Please follow the document/sample for creating the workspace and experiment logging. We are able to successfully execute and see the outputs+ logs and snapshots.
    https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-1st-experiment-hello-world#create-and-run-a-python-script

    https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/track-and-monitor-experiments/logging-api/logging-api.ipynb


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.