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

Stability Matrix v.2.11.1 | Forge ] cannot import name 'packaging' from 'pkg_resources' #700

Closed
JimM47 opened this issue Jun 19, 2024 · 3 comments · Fixed by #710
Closed
Labels
area: packages Issues in running packages or python errors bug Something isn't working

Comments

@JimM47
Copy link

JimM47 commented Jun 19, 2024

Upon updating Stability Matrix and Forge UI today (6/19/2024), Forge will no longer launch, giving the following error:

Traceback (most recent call last):
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\launch.py", line 51, in
main()
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\launch.py", line 47, in main
start()
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\launch_utils.py", line 541, in start
import webui
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\webui.py", line 19, in
initialize.imports()
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\initialize.py", line 53, in imports
from modules import processing, gradio_extensons, ui # noqa: F401
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 18, in
import modules.sd_hijack
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\sd_hijack.py", line 5, in
from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\sd_hijack_optimizations.py", line 13, in
from modules.hypernetworks import hypernetwork
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\hypernetworks\hypernetwork.py", line 13, in
from modules import devices, sd_models, shared, sd_samplers, hashes, sd_hijack_checkpoint, errors
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\sd_samplers.py", line 1, in
from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\sd_samplers_kdiffusion.py", line 3, in
import k_diffusion.sampling
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\repositories\k-diffusion\k_diffusion_init_.py", line 1, in
from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\repositories\k-diffusion\k_diffusion\evaluation.py", line 6, in
import clip
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\clip_init_.py", line 1, in
from .clip import *
File "C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\clip\clip.py", line 6, in
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (C:\AI\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\pkg_resources_init_.py)

Automatic1111 is working still.

Any ideas?

@ionite34
Copy link
Member

ionite34 commented Jun 19, 2024

Should be able to fix by downgrading the setuptools python package to version 69.5.1, A1111 recently did this fix in their requirements AUTOMATIC1111/stable-diffusion-webui#15882, forge might need to do the same.

Can use this interface:
image
Search for setuptools, select 69.5.1, then click downgrade icon.

@ionite34 ionite34 added area: packages Issues in running packages or python errors bug Something isn't working labels Jun 19, 2024
@boudywho
Copy link

Should be able to fix by downgrading the setuptools python package to version 69.5.1, A1111 recently did this fix in their requirements AUTOMATIC1111/stable-diffusion-webui#15882, forge might need to do the same.

Can use this interface: image Search for setuptools, select 69.5.1, then click downgrade icon.

this fixed it, thanks

@JimM47
Copy link
Author

JimM47 commented Jun 19, 2024

Many thanks!

@mohnjiles mohnjiles mentioned this issue Jun 22, 2024
mohnjiles pushed a commit to LykosAI/StabilityMatrix-Dev that referenced this issue Jun 25, 2024
Fix pip / torchsde conflicts for base python and fooocus

(cherry picked from commit a167ddc)

# Conflicts:
#	CHANGELOG.md
mohnjiles pushed a commit to LykosAI/StabilityMatrix-Dev that referenced this issue Sep 18, 2024
Fix pip / torchsde conflicts for base python and fooocus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: packages Issues in running packages or python errors bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants