aws / aws/sagemaker-python-sdk
ModelTrainer Local Mode PermissionError: [Errno 13] Permission denied: 'sm_drivers'
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 35
Description
**Describe the bug**
A clear and concise description of what the bug is.
When running local mode example for ModelTrainer from example notebook, see an error like `PermissionError: [Errno 13] Permission denied: 'sm_drivers'` that seems to be coming during the cleanup process after the training is complete.
**To reproduce**
A clear, step-by-step set of instructions to reproduce the bug.
The provided code need to be **complete** and **runnable**, if additional data is needed, please include them in the issue.
Run local mode example from here - https://github.com/aws/amazon-sagemaker-examples/tree/default/%20%20%20%20%20%20build_and_train_models/sm-model_trainer
**Expected behavior**
A clear and concise description of what you expected to happen.
* Running the local mode should not fail with permission denied, can have graceful exit with message or ensure the local cleanup happens successfully
**Screenshots or logs**
If applicable, add screenshots or logs to help explain your problem.
**System information**
A description of your system. Please provide:
- **SageMaker Python SDK version**: 2.240.0
- **Framework name (eg. PyTorch) or algorithm (eg. KMeans)**:
- **Framework version**:
- **Python version**:
- **CPU or GPU**:
- **Custom Docker image (Y/N)**:
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start with the local-mode example at build_and_train_models/sm-model_trainer and reproduce the cleanup-time PermissionError using SageMaker Python SDK 2.240.0. Trace the cleanup handling for 'sm_drivers' and verify that a normal completion exits without a permission error and cleans up successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100