Update: after switching from Chrome to Edge everything started working. I hope it helps you @shimshad
Permission denied: './outputs'
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'
2 answers
Sort by: Most helpful
-
-
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