aws / aws/sagemaker-python-sdk

Feature Processor subpackage missing from sagemaker-mlops wheel

Đang mở
#5,612 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
2.3k
Fork
1.3k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
35

Mô tả

**PySDK Version**
- [ ] PySDK V2 (2.x)
- [x] PySDK V3 (3.x)

**Describe the bug**
The `feature_processor` subpackage is missing from the published `sagemaker-mlops` wheel on PyPI. The source code exists in the repository under `sagemaker-mlops/src/sagemaker/mlops/feature_store/feature_processor/`, but the built wheel does not include this directory. This makes it impossible to import `feature_processor` after installing `sagemaker-mlops[feature-processor]`.

**To reproduce**
Note, all of these steps were tested on a JupyterLab space in SageMaker AI Studio.
1. Install the sagemaker packages:
```bash
pip install sagemaker==3.5.0
pip install sagemaker-mlops==1.5.0
pip install sagemaker-mlops[feature-processor]
```
2. Restart the Python kernel.
3. Attempt to import the feature processor:
```python
from sagemaker.mlops.feature_store.feature_processor import (
feature_processor,
FeatureGroupDataSource,
)
```
4. Observe the error:
``ModuleNotFoundError: No module named 'sagemaker.mlops.feature_store.feature_processor'``
5. Confirm the directory is missing from the installed package:
```bash
ls /opt/conda/lib/python3.12/site-packages/sagemaker/mlops/feature_store/
```
Output shows no feature_processor directory:
```
__init__.py dataset_builder.py ingestion_manager_pandas.py
__pycache__ feature_definition.py inputs.py
athena_query.py feature_utils.py
```

**Expected behavior**
The `feature_processor` subpackage should be included in the published `sagemaker-mlops` wheel, and the import should work after installing `sagemaker-mlops[feature-processor]`.

**Screenshots or logs**
```
╭──────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in :1 │
│ │
│ ❱ 1 from sagemaker.mlops.feature_store.feature_processor import ( │
│ 2 │ feature_processor, │
│ 3 │ FeatureGroupDataSource, │
│ 4 │ CSVDataSource, │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'sagemaker.mlops.feature_store.feature_processor'
```

**System information**
- **SageMaker Python SDK version**: 3.5.0 (sagemaker-mlops 1.5.0)
- **Framework name (eg. PyTorch) or algorithm (eg. KMeans)**: N/A
- **Framework version**: N/A
- **Python version**: 3.12
- **CPU or GPU**: CPU
- **Custom Docker image (Y/N)**: N

**Additional context**
N/A

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra metadata của package và quy trình build của sagemaker-mlops, sau đó so sánh thư mục mã nguồn sagemaker-mlops/src/sagemaker/mlops/feature_store/feature_processor/ với nội dung của một wheel đã được build. Build wheel và xác minh rằng việc cài đặt sagemaker-mlops[feature-processor] cho phép thực hiện import feature_processor như được ghi trong tài liệu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
build-system, machine-learning
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
62/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.