Permission denied: './outputs'

shimshad 21 Reputation points

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/ in start_logging(self, *args, **kwargs)
259 """
260 from import Run
--> 261 return Run._start_logging(self, *args, _parent_logger=self._logger, **kwargs)
263 @_check_for_experiment_id

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/ 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/ 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)
710 @property

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/ 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)
202 @classmethod

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

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/_run_impl/ 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/ 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.
1,844 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anton Malarev 6 Reputation points

    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 11,756 Reputation points

    @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.