azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Cannot create directories in the azure storage in AML script

Open zhujiangang opened this issue 5 years ago • 5 comments

  • Package Name: azureml-sdk
  • Package Version: 1.17.0
  • Operating System: Ubuntu18.04
  • Python Version: 3.7.9

Describe the bug Cannot create the directory in the storage, with OSError: [Errno 5] Input/output error:

To Reproduce Steps to reproduce the behavior:

  1. Create the container for output output_datastore = Datastore.register_azure_blob_container(XXX)
  2. Specify the output directory output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX"))
  3. Create a script run config src = ScriptRunConfig(source_directory=tmp_src_dir.name, script='run.py', arguments=[output_dir], compute_target='XXX', environment=env)
  4. The code in run.py is: import sys, os from pathlib import Path save_dir = Path(sys.argv[1]) / "A" / "B" os.mkdir(str(save_dir))

Here, subfolder "A" already exists in the output_dir, while subfolder B doesn't exist.

Expected behavior I expect the subfolder "B" can be created under "A".

zhujiangang avatar Jan 12 '21 03:01 zhujiangang

Can anyone help on this?

zhujiangang avatar Jan 29 '21 02:01 zhujiangang

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

Issue Details
  • Package Name: azureml-sdk
  • Package Version: 1.17.0
  • Operating System: Ubuntu18.04
  • Python Version: 3.7.9

Describe the bug Cannot create the directory in the storage, with OSError: [Errno 5] Input/output error:

To Reproduce Steps to reproduce the behavior:

  1. Create the container for output output_datastore = Datastore.register_azure_blob_container(XXX)
  2. Specify the output directory output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX"))
  3. Create a script run config src = ScriptRunConfig(source_directory=tmp_src_dir.name, script='run.py', arguments=[output_dir], compute_target='XXX', environment=env)
  4. The code in run.py is: import sys, os from pathlib import Path save_dir = Path(sys.argv[1]) / "A" / "B" os.mkdir(str(save_dir))

Here, subfolder "A" already exists in the output_dir, while subfolder B doesn't exist.

Expected behavior I expect the subfolder "B" can be created under "A".

Author: zhujiangang
Assignees: -
Labels:

Client, Machine Learning, Service Attention, bug, customer-reported, needs-triage, question

Milestone: -

ghost avatar Feb 09 '21 00:02 ghost

@zhujiangang did you register this blob datastore with access key?

ChunyuMSFT avatar Feb 19 '21 00:02 ChunyuMSFT

@zhujiangang please reach out and reopen this issue if you are still having problems. For now, we will close this issue #please-close

meyetman avatar Mar 05 '21 19:03 meyetman

Hi, I used .as_upload() e.g. output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX")).as_upload(), and it works. Thank you!

zhujiangang avatar Mar 10 '21 14:03 zhujiangang