Closed kengher closed 1 year ago
Well, this is quite unfortunate. There is a dependency hell problem coming along with many large python repositories (especially the ones extendable by plugins). I think that some plugin always installs the absolute latest numpy version. Please try to find out which plugin does it, then temporarily disable it and restore numpy 1.23.5 (or 1.24.4). Please let me know of the result and what is the plugin to blame (maybe an issue could be submitted).
Are you sure you are installing numpy=1.24 into the venv/conda and not as a system package?
Well, this is quite unfortunate. There is a dependency hell problem coming along with many large python repositories (especially the ones extendable by plugins). I think that some plugin always installs the absolute latest numpy version. Please try to find out which plugin does it, then temporarily disable it and restore numpy 1.23.5 (or 1.24.4). Please let me know of the result and what is the plugin to blame (maybe an issue could be submitted).
Great suggestion. I didn't think of this. I'll look into this and post what I find out.
Well, this is quite unfortunate. There is a dependency hell problem coming along with many large python repositories (especially the ones extendable by plugins). I think that some plugin always installs the absolute latest numpy version. Please try to find out which plugin does it, then temporarily disable it and restore numpy 1.23.5 (or 1.24.4). Please let me know of the result and what is the plugin to blame (maybe an issue could be submitted).
So instead of troubleshooting each plugin, I deleted Stable Diffusion's venv folder to force a fresh install of dependencies. It turned out SD installs numpy v1.25.0 by default. I'm not sure how to downgrade it. I even changed the requirements.txt and set numpy==1.24.0 but the install doesn't pull from that.
Ok. I downgraded Python 3.11 to SD webui's 3.10.6 recommended version and it fixed the numpy error, even though numpy 1.25.0 is still installed. It's working great now so i'm going to close it with this.
Glad it works now! But it is quite strange, because it technically should not. The most recent Numba does not claim to provide support for the most recent NumPy. Are you sure you have 1.25 installed? Could you please check out the output of pip list
(from the venv) again?
Glad it works now! But it is quite strange, because it technically should not. The most recent Numba does not claim to provide support for the most recent NumPy. Are you sure you have 1.25 installed? Could you please check out the output of
pip list
(from the venv) again?
Sorry. I double checked the venv folder and it's 1.23.5, not 1.25. I was in my backup venv folder when I wrote my previous comment face palm
Ehh, happens with everyone 🙂
Getting this error each time I start webui:
raise ImportError("Numba needs NumPy 1.24 or less") ImportError: Numba needs NumPy 1.24 or less
Full error stack:
I tried to manually downgrade Numpy in site-packages but it doesn't work. I tried pip install numpy==1.24 but it doesn't affect the site-packages folder. Conda didn't work either. I'm Running stable diffusion in Windows 10, cuda 11.8, gtx 3090ti.