KeyError: 'upscalers' when opening Krita
Closed this issue · 3 comments
Describe the bug
When I try to run krita, an error occur, saying "KeyError: 'upscalers'".
To Reproduce
Steps to reproduce the behavior:
- Run
webui.bat
. - Open Krita, and an error message appears.
Expected behavior
At least I should be able to open krita...
Desktop (please complete the following information):
- OS: Windows
- Browser chrome
- Krita 5.1.1
- Commit revision 2d5b3c2
Additional context
Traceback (most recent call last):
File "C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py", line 18, in createDockWidget
return self.klass()
File "C:\Users\shisan\AppData\Roaming\krita\pykrita\krita_diff\docker.py", line 28, in __init__
self.update_remote_config()
File "C:\Users\shisan\AppData\Roaming\krita\pykrita\krita_diff\docker.py", line 91, in update_remote_config
if script.update_config():
File "C:\Users\shisan\AppData\Roaming\krita\pykrita\krita_diff\script.py", line 121, in update_config
assert len(self.opt["upscalers"]) > 0
KeyError: 'upscalers'
My self.opt
looks like this.
self.opt = {'components': [{'id': 525, 'props': {'elem_id': 'quicksettings', 'style': {}, 'type': 'row', 'visible': True}, 'type': 'row'}, {'id': 526, 'props': {'choices': [r'animefull-final-pruned\model.ckpt [925997e9]', r'animefull-latest\model.ckpt [e6e8e1fc]', r'original\sd-v1-4.ckpt [7460a6fa]'], 'label': 'Stable Diffusion checkpoint', 'name': 'dropdown', 'show_label': True, 'style': {}, 'value': r'animefull-latest\model.ckpt [e6e8e1fc]', 'visible': True}, 'type': 'dropdown'}, {'id': 527, 'props': {'style': {}, 'type': 'form', 'visible': True}, 'type': 'form'}, {'id': 528, 'props': {'style': {}, 'visible': True}, 'type': 'tabs'}, {'id': 529, 'props': {'id': 'txt2img', 'label': 'txt2img', 'style': {}, 'visible': True}, 'type': 'tabitem'}, {'id': 1, 'props': {'elem_id': 'toprow', 'style': {}, 'type': 'row', 'visible': True}, 'type': 'row'}, {'id': 2, 'props': {'min_width': 320, 'scale': 4, 'style': {}, 'type': 'column', 'variant': 'default', 'visible': True}, 'type': 'column'}, {'id': 3, 'props': {'style': {}, 'type': 'row', 'visible': True}, 'type': 'row'}, {'id': 4, 'props': {'min_width': 320, 'scale': 80, 'style': {}, 'type': 'column', 'variant': 'default', 'visible': True}, 'type': 'column'}, {'id': 5, 'props': {'style': {}, 'type': 'row', 'visible': True}, 'type': 'row'}, {'id': 6, 'props': {'elem_id': 'txt2img_prompt', 'label': 'Prompt', 'lines': 2, 'max_lines': 20, 'name': 'textbox', 'placeholder': 'Prompt', 'show_label': False, 'style': {}, 'value': '', 'visible': True}, 'type': 'textbox'}, {'id': 7, 'props': {'style': {}, 'type': 'form', 'visible': True}, 'type': 'form'}, {'id': 8, 'props': {'elem_id': 'roll_col', 'min_width': 320, 'scale': 1, 'style': {}, 'type': 'column', 'variant': 'default', 'visible': True}, 'type': 'column'}, {'id': 9, 'props': {'elem_id': 'roll', 'name': 'button', 'style': {}, 'value': '🎨', 'variant': 'secondary', 'visible': True}, 'type': 'button'}, {'id': 10, 'props': {'elem_id': 'paste', 'name': 'button', 'style': {}, 'value': '
Pretty strange, I tried on another PC, switched from original webui
to auto-sd-krita
, and it ran perfectly.
Turned out I had another krita stable diffusion plugin, which caused this error.