aws / aws/sagemaker-python-sdk
ModelBuilder import issues in a SageMaker Studio Notebook
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 1.3k
- Merge medio
- 1g 22h
- PR unite (30g)
- 35
Descrizione
## Issue
Hello,
I'm trying to update from SageMaker v2 --> v3, and have had issues with importing the `ModelBuilder` module. I'm trying to follow this documentation: https://github.com/aws/sagemaker-python-sdk/blob/master/v3-examples/ml-ops-examples/v3-pipeline-train-create-registry.ipynb
The error received when importing the `ModelBuilder` module:
```
ModuleNotFoundError: No module named 'sagemaker.serve.spec'
```
## Repro steps
1. Start a SageMaker Studio Jupyter Notebook
2. Install the latest SageMaker v3.1.0 from github directly: `!pip install git+https://github.com/aws/sagemaker-python-sdk.git@v3.1.0`
3. Import the module: `from sagemaker.serve.model_builder import ModelBuilder`
## Screenshot
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’esempio v3-examples/ml-ops-examples/v3-pipeline-train-create-registry.ipynb e riproduci l’importazione in un SageMaker Studio Jupyter Notebook utilizzando il comando di installazione indicato. Verifica l’entry point `from sagemaker.serve.model_builder import ModelBuilder` e l’errore relativo all’assenza di `sagemaker.serve.spec`; il lavoro è completato quando l’importazione documentata funziona senza ModuleNotFoundError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, jupyter-notebook, python
- Ambito
- cloud, machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100