Skip to content

DeOldify install.py fails with pkg_resources FileNotFoundError on missing NumPy metadata (tested in A1111 v1.9.3 and Forge v2.5) #79

Description

@palentir

Hi,

I’m getting a reproducible install failure when adding sd-webui-deoldify to both AUTOMATIC1111 v1.9.3 and Stable Diffusion Forge v2.5.
The extension crashes during install.py with the following traceback:

FileNotFoundError: [Errno 2] No such file or directory:
/home/user/miniconda3/envs/deoldify/lib/python3.10/site-packages/numpy-1.26.2.dist-info/METADATA

The full log shows multiple pkg_resources AttributeError / FileNotFoundError lines, ending in the missing METADATA for NumPy.

What I tested

Python 3.10 (Conda envs on Ubuntu 24.04)

Torch 2.0.1 + cu118 / Torch 2.3.1 + cu121

NumPy 1.26.4

xformers 0.0.19–0.0.27

Tried under both A1111 and Forge (fresh installs, clean envs)

What happens
The extension’s install.py script uses pkg_resources.require() to verify dependencies.
If any installed package’s .dist-info folder is missing or incomplete (common with modern pip / conda builds), pkg_resources raises FileNotFoundError, aborting the install.

Suggestion
Consider replacing pkg_resources checks with modern importlib.metadata (Python 3.8+) or simply relying on requirements.txt to avoid this crash on newer environments.

Thanks — aside from this issue, DeOldify works great once installed manually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions