Skip to content
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

Not working with Krita 5.2.1 #165

Open
suonnon opened this issue Nov 3, 2023 · 8 comments
Open

Not working with Krita 5.2.1 #165

suonnon opened this issue Nov 3, 2023 · 8 comments

Comments

@suonnon
Copy link

suonnon commented Nov 3, 2023

Describe the bug

  • I just upgraded Krita to 5.2.1 and the plugin does not work anymore.
  • There is no dock to show, even on the menus, they are just disappeared.

I've tried to fresh re-install the extension, also Krita. But no hope.

Screenshots
image
image

@pralium444
Copy link

fresh install.. i have sd options/config, but no txt2img...error :
``TypeError
Python 3.10.7: C:\Program Files\Krita (x64)\bin\krita.exe
Thu Dec 7 15:41:32 2023

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py in createDockWidget(self=<krita.dockwidgetfactory.DockWidgetFactory object>)
14 super(DockWidgetFactory, self).init(_id, _dockPosition)
15 self.klass = _klass
16
17 def createDockWidget(self):
18 return self.klass()
self = <krita.dockwidgetfactory.DockWidgetFactory object>
self.klass = <class 'krita_diff.docker.create_docker..Docker'>

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\docker.py in init(self=<krita_diff.docker.create_docker..Docker object>, *args=(), **kwargs={})
11 self.setWindowTitle(page.name)
12 self.create_interface()
13 self.update_interface()
14 self.connect_interface()
15 self.setWidget(self.widget)
self = <krita_diff.docker.create_docker..Docker object>
self.update_interface = <bound method create_docker..Docker.upda...iff.docker.create_docker..Docker object>>

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\docker.py in update_interface(self=<krita_diff.docker.create_docker..Docker object>)
23
24 def update_interface(self):
25 self.page_widget.cfg_init()
26
27 def connect_interface(self):
self = <krita_diff.docker.create_docker..Docker object>
self.page_widget = <krita_diff.pages.img2img.Img2ImgPage object>
self.page_widget.cfg_init = <bound method Img2ImgPage.cfg_init of <krita_diff.pages.img2img.Img2ImgPage object>>

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\img2img.py in cfg_init(self=<krita_diff.pages.img2img.Img2ImgPage object>)
23
24 def cfg_init(self):
25 super(Img2ImgPage, self).cfg_init()
26
27 self.tips.setVisible(not script.cfg("minimize_ui", bool))
builtinsuper = <class 'super'>
global Img2ImgPage = <class 'krita_diff.pages.img2img.Img2ImgPage'>
self = <krita_diff.pages.img2img.Img2ImgPage object>
).cfg_init = <bound method Img2ImgPage.cfg_init of <krita_diff.pages.img2img.Img2ImgPage object>>

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\img_base.py in cfg_init(self=<krita_diff.pages.img2img.Img2ImgPage object>)
71
72 def cfg_init(self):
73 self.ext_layout.cfg_init()
74 self.prompt_layout.cfg_init()
75 self.seed_layout.cfg_init()
self = <krita_diff.pages.img2img.Img2ImgPage object>
self.ext_layout = <krita_diff.pages.extension.ExtSectionLayout object>
self.ext_layout.cfg_init = <bound method ExtSectionLayout.cfg_init of <krita_diff.pages.extension.ExtSectionLayout object>>

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py in cfg_init(self=<krita_diff.pages.extension.ExtSectionLayout object>)
116 self.dropdown.cfg_init()
117 if set(self.ext_names()) != set(self.ext_widgets.keys()):
118 self._init_ext_widgets()
119 for widget in self.ext_widgets.values():
120 widget.cfg_init()
self = <krita_diff.pages.extension.ExtSectionLayout object>
self._init_ext_widgets = >

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py in _init_ext_widgets(self=<krita_diff.pages.extension.ExtSectionLayout object>)
107 self._clear_ext_widgets()
108 for ext_name in self.ext_names():
109 widget = ExtWidget(script.ext_cfg, self.ext_type, ext_name)
110 widget.setVisible(False)
111 self.addWidget(widget)
widget = <krita_diff.pages.extension.ExtWidget object>
global ExtWidget = <class 'krita_diff.pages.extension.ExtWidget'>
global script = <krita_diff.script.Script object>
script.ext_cfg = <krita_diff.config.Config object>
self = <krita_diff.pages.extension.ExtSectionLayout object>
self.ext_type = 'scripts_img2img'
ext_name = 'Outpainting mk2'

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py in init(self=<krita_diff.pages.extension.ExtWidget object>, ext_cfg=<krita_diff.config.Config object>, ext_type='scripts_img2img', ext_name='Outpainting mk2', *args=(), **kwargs={})
57 w = QCheckBox(ext_cfg, k, o["label"])
58 elif o["type"] == "multiselect":
59 w = QMultiCheckBoxLayout(ext_cfg, o["opts"], k, o["label"])
60 else:
61 continue
w = None
global QMultiCheckBoxLayout = <class 'krita_diff.widgets.checkbox.QMultiCheckBoxLayout'>
ext_cfg = <krita_diff.config.Config object>
o = {'is_index': False, 'label': 'Outpainting direction', 'opts': [['left', 'left'], ['right', 'right'], ['up', 'up'], ['down', 'down']], 'type': 'multiselect', 'val': ['left', 'right', 'up', 'down']}
k = 'scripts_img2img_outpaintingmk2_3'

C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\widgets\checkbox.py in init(self=<krita_diff.widgets.checkbox.QMultiCheckBoxLayout object>, cfg=<krita_diff.config.Config object>, options_cfg=[['left', 'left'], ['right', 'right'], ['up', 'up'], ['down', 'down']], selected_cfg='scripts_img2img_outpaintingmk2_3', label='Outpainting direction', *args=(), **kwargs={})
61 self.qcheckboxes = []
62 for opt in self.options_cfg:
63 checkbox = _QCheckBox(opt)
64 self.qcheckboxes.append(checkbox)
65 self.row.addWidget(checkbox)
checkbox undefined
global _QCheckBox = <class 'PyQt5.QtWidgets.QCheckBox'>
opt = ['left', 'left']
TypeError: arguments did not match any overloaded call:
QCheckBox(parent: QWidget = None): argument 1 has unexpected type 'list'
QCheckBox(str, parent: QWidget = None): argument 1 has unexpected type 'list'
cause = None
class = <class 'TypeError'>
context = None
delattr = <method-wrapper 'delattr' of TypeError object>
dict = {}
dir =
doc = 'Inappropriate argument type.'
eq = <method-wrapper 'eq' of TypeError object>
format =
ge = <method-wrapper 'ge' of TypeError object>
getattribute = <method-wrapper 'getattribute' of TypeError object>
gt = <method-wrapper 'gt' of TypeError object>
hash = <method-wrapper 'hash' of TypeError object>
init = <method-wrapper 'init' of TypeError object>
init_subclass =
le = <method-wrapper 'le' of TypeError object>
lt = <method-wrapper 'lt' of TypeError object>
ne = <method-wrapper 'ne' of TypeError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper 'repr' of TypeError object>
setattr = <method-wrapper 'setattr' of TypeError object>
setstate =
sizeof =
str = <method-wrapper 'str' of TypeError object>
subclasshook =
suppress_context = False
traceback =
args = ("arguments did not match any overloaded call:\n Q...et = None): argument 1 has unexpected type 'list'",)
with_traceback =

The above is a description of an error in a Python program. Here is
the original traceback:

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\AI\AppData\Roaming\krita\pykrita\krita_diff\docker.py", line 13, in init
self.update_interface()
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\docker.py", line 25, in update_interface
self.page_widget.cfg_init()
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\img2img.py", line 25, in cfg_init
super(Img2ImgPage, self).cfg_init()
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\img_base.py", line 73, in cfg_init
self.ext_layout.cfg_init()
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py", line 118, in cfg_init
self._init_ext_widgets()
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py", line 109, in _init_ext_widgets
widget = ExtWidget(script.ext_cfg, self.ext_type, ext_name)
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\pages\extension.py", line 59, in init
w = QMultiCheckBoxLayout(ext_cfg, o["opts"], k, o["label"])
File "C:\Users\AI\AppData\Roaming\krita\pykrita\krita_diff\widgets\checkbox.py", line 63, in init
checkbox = _QCheckBox(opt)
TypeError: arguments did not match any overloaded call:
QCheckBox(parent: QWidget = None): argument 1 has unexpected type 'list'
QCheckBox(str, parent: QWidget = None): argument 1 has unexpected type 'list'

``

@Adzido
Copy link

Adzido commented Dec 18, 2023

Any1 know how to fix it?

@shasheene
Copy link

I had the same issue with Krita 5.1.5, and was able to get it working using the actively maintained fork: https://github.com/poipoi300/auto-sd-krita-ext-xl

A1111 doesn't support uninstalling extensions cleanly, simply deleting the current extension can easily lead to a broken A1111 environment. Careful use of git commands can avoid needing to reinstall A1111 completely

@Miraihi
Copy link

Miraihi commented Dec 26, 2023

Heads up for the alternatives for this plugin:

  1. Acly's ComfyAI based complex solution. Love it a lot
  2. DrCyanide's robust solution that works much better than auto-sd-paint ever did

@nyukers
Copy link

nyukers commented Jan 2, 2024

I had the same issue with Krita 5.1.5, and was able to get it working using the actively maintained fork: https://github.com/poipoi300/auto-sd-krita-ext-xl

A1111 doesn't support uninstalling extensions cleanly, simply deleting the current extension can easily lead to a broken A1111 environment. Careful use of git commands can avoid needing to reinstall A1111 completely

Good idea, and bad implementation, with v5.2.2 the same(.

@peterpernhofer
Copy link

Same issue here. I tried with this plugin and the poipoi fork. No chance.
Krita v. 5.2.2
Auto1111 v.1.7.0

@poipoi300
Copy link

Likely a krita issue as I have been using it with A1111 1.7.0 since release no issues. I'll look for a fix tomorrow.

@poipoi300
Copy link

Unable to recreate the issue on my fork currently. Only thing I can do right now is recommend people to delete their config files as instructed in the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants