Skip to content

Missing-dependency error suggests pip install pytorch_retinaface, which is not a PyPI package #14666

Description

@shmulc8

Bug

src/diffusers/utils/import_utils.py tells users to install the optional RetinaFace dependency with:

{0} requires the pytorch_retinaface library but it was not found in your environment. You can install it with pip: pip install pytorch_retinaface

pip install pytorch_retinaface cannot succeed: neither pytorch_retinaface nor its normalized form pytorch-retinaface exists on PyPI (both return HTTP 404 from https://pypi.org/pypi/<name>/json). The suggested command fails, and the name is currently unregistered on PyPI.

Version

Present in v0.40.0 (import_utils.py, line 567).

Reproduce

curl -s -o /dev/null -w '%{http_code}\n' https://pypi.org/pypi/pytorch_retinaface/json   # 404
curl -s -o /dev/null -w '%{http_code}\n' https://pypi.org/pypi/pytorch-retinaface/json   # 404

Suggested fix

Point the message at the actual distribution of the pytorch_retinaface import (the intended project/source or the correct PyPI name), or drop the pip install hint if there is no canonical PyPI package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions