Key Error: Samplers (Port Conflict?)
Closed this issue · 8 comments
Describe the bug
When opening Krita after copying the plugin files into pykrita folder, I get a script error (Key Error: Samplers)
To Reproduce
Video of how to reproduce bug
Steps to reproduce the behavior:
- Open Krita, works fine
- copy krita_diff folder and krita_diff.desktop
- paste to pykrita folder
- Reopen Krita, see error
Expected behavior
Krita should actually start without the script error
Screenshots
Video
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Firefox
Additional context
- I've tried two other krita SD plugins before this one, so that probably caused issues
- I've tried uninstalling Krita, uninstalling the previous plugins (only deleting from pykrita folder) and the video happened after that
update:
I can't use the previous plugin anymore after failing to install this one lol
(https://github.com/sddebz/stable-diffusion-krita-plugin)
Not really a problem if I can successfully install your plugin though, but for now I can't use any stable diffusion with Krita so I'll just wait
update 2:
deleting everything in AppData\Roaming\krita then reinstalling Krita allowed me to use the previous plugin again, since that's how to get a clean reinstall
So looks like the main issue i'm having isn't a conflict with other plugins since I started with a clean reinstall of Krita before installing your plugin
Did you make sure you are using https://github.com/Interpause/auto-sd-krita as the backend instead of https://github.com/sddebz/stable-diffusion-krita-plugin? Our APIs aren't compatible as I chose to unhardcode some of the options.
Sorry for the delay, somehow Github didn't notify me of new issues :/
Re-open the issue if following https://github.com/Interpause/auto-sd-krita/wiki/Install-Guide#installing-the-webuibackend doesn't work.
Sorry, I just noticed you indeed downloaded my repository. But I noticed you weren't running webui-user.bat
in the background. By right, the plugin shouldn't crash and only give a warning in the status bar that it could not connect to the backend. However, the fact that it reaches my assert checks hints you might have something already running on port 8000
locally that is responding to the plugin. If running webui-user.bat
gives a port other than 8000
, then that is likely your problem.
Also, try updating the code (since you did not use git
, that means downloading everything again and copying the plugin although you should be able to re-use the same venv).
yep that did it, thanks!
redownloading the repository and reinstalling the plugin pretty much worked right out of the box, awesome
No problem, if you like the plugin, star the repository & maybe share the demo video I made. Thanks!
Did both because I -really- like this plugin, it's pretty much everything I could ask for 👌