Cannot create directories in the azure storage in AML script
- 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:
- Create the container for output output_datastore = Datastore.register_azure_blob_container(XXX)
- Specify the output directory output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX"))
- Create a script run config src = ScriptRunConfig(source_directory=tmp_src_dir.name, script='run.py', arguments=[output_dir], compute_target='XXX', environment=env)
- 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".
Can anyone help on this?
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:
- Create the container for output output_datastore = Datastore.register_azure_blob_container(XXX)
- Specify the output directory output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX"))
- Create a script run config src = ScriptRunConfig(source_directory=tmp_src_dir.name, script='run.py', arguments=[output_dir], compute_target='XXX', environment=env)
- 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: |
|
| Milestone: | - |
@zhujiangang did you register this blob datastore with access key?
@zhujiangang please reach out and reopen this issue if you are still having problems. For now, we will close this issue #please-close
Hi, I used .as_upload() e.g. output_dir = OutputFileDatasetConfig(destination=(output_datastore, "XXX")).as_upload(), and it works. Thank you!