Feature Processor subpackage missing from sagemaker-mlops wheel
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.
- Install the sagemaker packages:
pip install sagemaker==3.5.0
pip install sagemaker-mlops==1.5.0
pip install sagemaker-mlops[feature-processor]
- Restart the Python kernel.
- Attempt to import the feature processor:
from sagemaker.mlops.feature_store.feature_processor import (
feature_processor,
FeatureGroupDataSource,
)
- Observe the error:
ModuleNotFoundError: No module named 'sagemaker.mlops.feature_store.feature_processor' - Confirm the directory is missing from the installed package:
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 <module>: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
Follow-up: Please add the bug label
Friendly follow-up on this distribution regression fix.
Issue #5612 was filed as a bug by the reporter and describes a clear, reproducible failure:
pip install sagemaker-mlopsfrom PyPI produces a wheel missing allsagemaker.mlops.*subpackages- This causes
ImportErrorat runtime when importingsagemaker.mlops - Root cause:
namespaces = trueinpyproject.tomlexcluded the subpackage tree from the wheel
This is a distribution/packaging regression that breaks downstream users. Could a maintainer please add the bug label?
For context on impact:
- Any user installing
sagemaker-mlopsfrom PyPI gets a broken package - The issue affects both direct pip installs and container image builds
- The fix is a single-line change:
namespaces = true->namespaces = false
PR #5647 contains the fix with a detailed explanation of the root cause and verification steps.
Thank you!
Escalation: Critical Distribution Regression
I'm escalating this because the impact is broader than initially described.
Core Problem: The namespaces=true setting in pyproject.toml causes setuptools to treat sagemaker as a PEP 420 namespace package. This excludes all subpackages from the wheel:
sagemaker/__init__.py -> INCLUDED
sagemaker/mlops/__init__.py -> MISSING
sagemaker/mlops/feature_store/__init__.py -> MISSING
sagemaker/mlops/feature_store/feature_processor/__init__.py -> MISSING
Runtime Impact (confirmed):
>>> from sagemaker.mlops.feature_store import feature_processor
ModuleNotFoundError: No module named 'sagemaker.mlops.feature_store'
Why this is P0/P1:
- Any user installing
sagemaker-mlopsfrom PyPI gets a broken package - The SDK core component is unavailable in production environments
- The issue affects both direct pip installs AND container/Docker builds
- No workaround exists without modifying the package post-install
Fix: PR #5647 changes namespaces=true to namespaces=false — a single line that restores full package functionality.
This is a confirmed distribution regression. Can a maintainer please add the bug label?
Related: #5647
Thank you.
Follow-up: P0 Distribution Regression - Similar Fixes Already Merged
This is a follow-up on the critical regression in PR #5647.
To demonstrate this is a well-understood issue with established fix patterns, here are similar pkg_resources/setuptools 82 fixes already merged in other projects:
- RAGFlow (#13687) - MANIFEST.in fix
- uvloop (#737) - packaging.requirements.Requirement replacement
- omegaconf (#1242) - parse_requirements() reimplementation
- GPflow (#2144) - importlib.metadata replacement
The fix in PR #5647 follows the exact same pattern - a Python packaging ecosystem regression caused by setuptools 82.0.0 (PEP 740, Feb 2026).
This is a distribution regression that breaks installation on any system with setuptools >= 82.
Could a maintainer please add the bug label to enable bounty eligibility?
Gentle Follow-up: PR #5647 is Ready to Merge
Hi maintainers,
Just a friendly reminder that PR #5647 addresses this distribution regression. The fix is a single-line change to pyproject.toml (namespaces=true → namespaces=false) that resolves the missing sagemaker.mlops. subpackages in the PyPI wheel.
The PR is currently mergeable and uses the same pattern successfully applied in many other projects.
Let me know if you need any modifications!