-
Notifications
You must be signed in to change notification settings - Fork 28.3k
[Bug]: ImportError: cannot import name 'packaging' from 'pkg_resources' (/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py) #15863
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
Comments
Occurs when |
Confirmed, When I downgrade setuptools to <70, it works again. |
Could it be possible to elaborate on how this should be done? |
pip install
|
Issue still persists for me after downgrading. Any ideas? |
assume your python venv folder name is windows
mac, linux
|
It works. Thank you so much both! |
I did setuptools==69 not <70
…On Thu, 23 May 2024 at 8:21 AM Charles Riggins ***@***.***> wrote:
pip install
Occurs when setuptools version is 70.0.0.
Confirmed, When I downgrade setuptools to <70, it works again.
Could it be possible to elaborate on how this should be done?
python -m pip install setuptools==69.5.1
Issue still persists for me after downgrading. Any ideas?
Me too. Still doesn't work.
—
Reply to this email directly, view it on GitHub
<#15863 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFY5BL2DUYNK7WZ7V5UTVTZDV4HPAVCNFSM6AAAAABIDFGIXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWGI2TMNRRHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
If you're using the first windows install method, then python is installed by webui under
edit: update the path for your installation in the command above |
Make sure you are using the right python command Do this by writing This will show you where your python is located. You want to be downgrading setuptools for the python in your stable diffusion environment To do that locate python in the sd.webui folder Finally write |
It works. Thank you guys. Downgrading setuptools to version 69 resolved the issue. The reason I failed on the first try was due to my project setup, which automatically re-installed the latest (version 70) setuptools during the build process. After I disabled this automatic installation, the error no longer occurred. |
Just rename my folder "env" to "venv" then it works! Thank you so much! |
I am also seeing this error. Local and global setuptools rolled back to 69.5.1 and 68x don't make a difference for me. Is there not a way to roll back to a previous build of easydiffusion? Ubuntu x64 Haswell i5 w 3060 12GB |
Hey there! I am very new to all of this and I have installed SD on my desktop and it does work, but I also wanted to install the Stability Matrix and I get this error from above *ImportError: cannot import name 'packaging' from 'pkg_resources'". The thing is that I have 3 versions of python when I write "where python" and none of them look like the screenshot from @joel122002. Can I have both a normal Automatic1111 SD installed and Stability Matrix? Where should I downgrade the tools (which folder) etc. Any help would be greatly appreciated, real newbie here. Thank you! |
-m : The term '-m' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
-m : The term '-m' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
|
.\python -m !!!!!!!
commands are |
What version of Python you running on your host machine? I think it doesn't matter but I'm unsure. Often times apps get updated but docs don't. I ran into the same error running python I do get error messages exactly like another issue though(however they're not fatal). no module 'xformers'. Processing without... Anyway a few seconds later, I run into this error which stops the bat file. Thanks for answering in advance(your host machine python version). |
This solution worked for me. Thanks for sharing! |
Hey and thanks for the reply! I am still very lost since I am trying to install this on Stability Matrix which is located at "C:\Users---\AppData\Roaming\StabilityMatrix\Packages\Stable Diffusion WebUI" as far as I can tell. And I am not sure if I should run the cmd here or somewhere esle? Thanks! |
You can also just find clip.py and fix the incorrect line. I have yet to see any bugs caused by this |
Hey guys/gals |
fix has bee pushed to 1.9.4 so update to make it work |
Checklist
What happened?
Unable to start
Steps to reproduce the problem
run stable-diffusion
What should have happened?
stable-diffusion should be start
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
--share --xformers --enable-insecure-extension-access --gradio-queue --no-half-vae --opt-channelslast --theme dark
xformers==0.0.20
torch==2.0.1+cu118
torchvision==0.15.2+cu118
torchaudio==2.0.2+cu118
Console logs
Additional information
I use paperspace, I hope can provide a solution for paperspace, thank you
The text was updated successfully, but these errors were encountered: