GSTT-CSC / GSTT-CSC/MLOps-tutorial

Pin setuptools to avoid mlflow import failure (pkg_resources missing)

Aperta Adatta ai principianti
#13 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
devops
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
65/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.