Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Fix for Deprecation Warning for Non Professionals #16046

Open
1 task done
drdancm opened this issue Jun 19, 2024 · 1 comment
Open
1 task done

[Feature Request]: Fix for Deprecation Warning for Non Professionals #16046

drdancm opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@drdancm
Copy link

drdancm commented Jun 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Instead of simply seeing the warning:
D:\STABLEDIFF\Data\Packages\Stable Diffusion WebUI\extensions\sd-webui-facefusion\install.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

Install the updates. Those of us who do not not python, etc. the resources page is Greek (and we don't know Greek), In other words I attempt to read the resource update information but fail to understand a good 80 percent of it. At times when I went ahead anyway and tried to install stuff, it either made no difference or totally screwed up the package.

Proposed workflow

When a piece of code, or routine will no longer work, the next update should install the needed resources. I don't understand why this is not already a routine part of all updates.
To the extent that A1111 is made easy to install, and to use, I would very much appreciate if such an important update was part of the routine update process.

Additional information

I run various stable diffusion packages under Stability Matrix, but I'm fairly sure that each package has to deal with these Deprecations. If my assumption is wrong please let me know and I will request help from Stability Matrix.

In the past, these unfixed Deprecations were followed by gradual accumulation of problems running each package. I was only able to resolve them by having to uninstall and then reinstall each package, which always leaves a ton of settings and downloads to get back to the former configuration of the package.

All of us appreciate the time and effort that goes into producing these wonderful programs, so in any case I want to thank everyone who has initiated and contributed to making these programs work so well.

@drdancm drdancm added the enhancement New feature or request label Jun 19, 2024
@w-e-w
Copy link
Collaborator

w-e-w commented Jun 19, 2024

you are right that pkg_resources does indeed and has cause issues

the issues is the issue is rather widespread so we can't really fix it without modification of lots of code

including in extensions to change their code
which is the case in your example sd-webui-facefusion\install.py
whats worst is that sometimes not extensions are no longer actively maintained and so they won't be updated

due to various consideration the easiest thing to do is to "suppress" the issue is by deliberately use a old version of a package
this the case for this particular issue we yse an old version of setuptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants