stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Entry Point Not Found

Open Desuka-art opened this issue 2 years ago • 15 comments

Is there an existing issue for this?

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

What happened?

After installing xformers using a rentry guide, suddenly I get two errors, one as a popup, and another on the command line.

DiscordCanary_yhhBgyCRf6

cmd_iaumiZ31Ds

Please help!

Steps to reproduce the problem

Hard to say, I did a lot in order to get xformers to be recognized, so... I don't know.

What should have happened?

The UI should have launched normally, with xformers.

Commit where the problem happens

Launching Web UI with arguments: [WinError 127] The specified procedure could not be found WARNING: [WinError 127] The specified procedure could not be found Need to compile C++ extensions to get sparse attention support. Please run python setup.py build develop

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

No response

Command Line Arguments

No response

Additional information, context and logs

No response

Desuka-art avatar Dec 04 '22 17:12 Desuka-art

I'm running into the same error on TheLastBen colab

CJohnDesign avatar Dec 07 '22 20:12 CJohnDesign

Having the same issue in colab.

EDIT: @CJohnDesign Try deleting (or renaming to be safe) the SD folder in your Google Drive and then running all the batches of code in the Colab notebook to set up the folder again. Worked for me a moment ago.

StiffPvtParts avatar Dec 07 '22 20:12 StiffPvtParts

I'm having the same issue. Just installed xformers. Happens when I run launch.py locally on my windows 10 machine

EvaSamuelCodes avatar Dec 07 '22 23:12 EvaSamuelCodes

image windows 11 dev

albertotrunk avatar Dec 13 '22 20:12 albertotrunk

I tried reinstalling xformers using the .whl file, and the --force-reinstall argument... This completely broke my installation of the UI and now I get this error whenever I try generating images, even without xformers. error.txt

The first error I can see appear is

A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'

So don't try doing that... I'll try solving by myself but if anyone has a solution it would be appreciated!

Edit: Uninstalling xformers from venv solves the problems for now, but obviously doesn't help for the installation of xformers. At least the UI can run without it.

asimard1 avatar Dec 14 '22 04:12 asimard1

@asimard1 Try installing the nighty build for triton. That fixed your error message for me

pip install triton==2.0.0.dev20221120

kabachuha avatar Dec 18 '22 15:12 kabachuha

If xformers is not compiled against the exact same version of Pytorch you are running, you have to recompile it or install the correct pytorch version.

aliencaocao avatar Dec 19 '22 02:12 aliencaocao

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

rasamaya avatar Mar 10 '23 22:03 rasamaya

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

This worked for me too, automatically went to installing pytorch without faffing with gitbash/python cmd. Also make sure to keep it in the webui-user.bat after installation because it'll just toss up the error again.

Just gained almost 2x speed on my RTX 3060 laptop, feels great.

acoolrocket avatar Mar 27 '23 11:03 acoolrocket

I got a very similar error message after renaming config.json from the Web-UI root dir to config.json.bak as I was trying to force Web-UI to write a new default config file... From that specific moment on every successive boot I would get the "Entry Point Not Found" error,

In the end, renaming "config.json.bak" to "config.json" reverted the situation to normal, without no further errorsa...

illtellyoulater avatar Mar 28 '23 08:03 illtellyoulater

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

Yes, perfect, this worked.

matichek avatar May 08 '23 17:05 matichek

This worked great for me. Anyone know if its reinstalling or adding a new torch and pytorch download? Dont want to have multiple installs of this.

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

dtrevithick avatar May 15 '23 01:05 dtrevithick

Tried it but does not work for me. Here is the issue I get : Unable to create venv in directory ""C:\Ai\stable-diffusion-webui\venv\pyvenv.cfg"" any idea ?

MSire avatar Jun 16 '23 14:06 MSire

Tried it but does not work for me. Here is the issue I get : Unable to create venv in directory ""C:\Ai\stable-diffusion-webui\venv\pyvenv.cfg"" any idea ?

please replace pyvenv.cfg with pyenv.cfg

shancf avatar Jun 19 '23 06:06 shancf

Capture d'écran 2023-06-19 104032 Just tried it but I now get another error when runing my webui-user.bat

MSire avatar Jun 19 '23 08:06 MSire

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

For those people who are copying and pasting this exact line.... This is an example of the what line is needed. Copy the line of the location of the file in the error message you are receiving.

CaptainKokomo avatar Jul 29 '23 22:07 CaptainKokomo

SOLVED

Yesterday I suddenly ran into the NaN error problem. I have a pull request in my webui-user.bat and I think it has something to do with pulling something broken. I then installed X-Formers and had the entry point problem:

image

adding a line to my webui-user.bat for example... set VENV_DIR=E:\Projects\AI_art\Automatic1111\stable-diffusion-webui\venv\pyenv.cfg Fixed for me, it reinstalled pytorch again, so look for folder venv in your install directory.

This worked for me but not completley. I can only create text2img, controlnet tiles doesn't work. After also activacting full precision and no half, so basically trying out all arguments, controlnet img2img with tiles don't work. When using x-formers it just freezes and without it just gets a NaN error.

Now I wanted to get rid of x-formers etc. I see this: image

I updated PyTorch 2 times yesterday, it doesn't seem to work with pip somehow, even when it says it installed it. Is there a way to maybe fix the PyTorch issue first without pip? I'm just a UX-designer and i'm very unfamiliar with python.

When I want to update PyTorch now it says this: image

Upon further trying things out I did: pip3 install numpy --pre torch --force-reinstall --index-url https://download.pytorch.org/whl/nightly/cu117 image

apparently I need cuda 18 so: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 image

jesus christ... the download from pytorch says it's version 2.0.1 image

After starting webui again, I saw it still doesn't recognize any of the updates. I updated python to 3.10.11 and I DELETED the venv folder. Upon starting webui again, it downloaded the neccessary stuff automatically. After using --xformers it installed xformers again and now it seems to be working!

BlueLovagSD avatar Jul 30 '23 05:07 BlueLovagSD