Pin setuptools to avoid mlflow import failure (pkg_resources missing)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
Research direction
Start by opening requirements.txt and checking how dependencies are currently specified. Add the requested setuptools constraint, then verify that the environment can import mlflow==2.10.0 without the pkg_resources error. Done means the dependency resolution prevents the reported import failure.
Written by the indexing model from the issue text.
Description
mlflow==2.10.0 imports pkg_resources, but our environment currently resolves setuptools to latest, where pkg_resources may be unavailable. This causes:
ModuleNotFoundError: No module named 'pkg_resources'
Easy fix is to add setuptools<81 to requirements.txt
This triggers a deprecation warning:
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html.
The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources # noqa: TID251
But works fine
- Dominant language
- Python
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GSTT-CSC/MLOps-tutorial
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
GSTT-CSC/MLOps-tutorial#15 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
GSTT-CSC/MLOps-tutorial#14 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Add AIF360 example Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
add tune example Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in GSTT-CSC/MLOps-tutorial
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100