auto-sd-paint-ext icon indicating copy to clipboard operation
auto-sd-paint-ext copied to clipboard

This plugin is not working in https://github.com/vladmandic/automatic

Open spreck opened this issue 1 year ago • 6 comments

Describe the bug The extension worked in automatic 1111, but that project hasn't seen any updates in a month and so it was recommended to switch to vladmandic's fork which is not abandoned.

However that fork has --api always on and it is not included as part of the webui.bat file or when calling the command as a command line argument. There have been issues with using openOutpaint due to this, https://github.com/vladmandic/automatic/issues/282, and I suspect something similar is going on with this.

This is a great extension and it would be awesome to be able to use it without needing to have to use a stale project to run it. I'm sure that vlad would like to see it work as well.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github.com/vladmandic/automatic'
  2. Install automatic from that fork
  3. Add, https://github.com/Interpause/auto-sd-paint-ext/ to extensions, extension installs, restart server and UI
  4. Tab is not displayed in automatic web ui. Krita plugin shows "Network error: Not Found", and then when I try to run a module it says "Cannot reach backend!". However

Screenshots This is the error in Krita, I started automatic and then waited for it to image

image

Then when I quit Krita I see this Script error window with a 'Cannot reach backed!' message that I have to close about 5 or 6 times: image

RuntimeError
Python 3.8.1: C:\Program Files\Krita (x64)\bin\krita.exe
Fri Apr 28 10:24:34 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:\Users\guy\AppData\Roaming\krita\pykrita\krita_diff\pages\upscale.py in <lambda>(s='Cannot reach backend!')
   56     def cfg_connect(self):
   57         self.upscaler_layout.cfg_connect()
   58         self.downscale_first.cfg_connect()
   59         self.btn.released.connect(lambda: script.action_simple_upscale())
   60         script.status_changed.connect(lambda s: self.status_bar.set_status(s))
global script = <krita_diff.script.Script object>
script.status_changed = <bound PYQT_SIGNAL status_changed of Script object>
script.status_changed.connect = <built-in method connect of PyQt5.QtCore.pyqtBoundSignal object>
s = 'Cannot reach backend!'
self = <krita_diff.pages.upscale.UpscalePage object>
self.status_bar = <krita_diff.widgets.status_bar.StatusBar object>
self.status_bar.set_status = <bound method StatusBar.set_status of <krita_diff.widgets.status_bar.StatusBar object>>

 C:\Users\guy\AppData\Roaming\krita\pykrita\krita_diff\widgets\status_bar.py in set_status(self=<krita_diff.widgets.status_bar.StatusBar object>, s='Cannot reach backend!')
   18             return
   19         if s == STATE_DONE and STATE_INTERRUPT == self.text():
   20             return
   21 
   22         self.setText(f"<b>Status:</b> {s}")
self = <krita_diff.widgets.status_bar.StatusBar object>
self.setText = <built-in method setText of StatusBar object>
RuntimeError: wrapped C/C++ object of type StatusBar has been deleted
    __cause__ = None
    __class__ = <class 'RuntimeError'>
    __context__ = None
    __delattr__ = <method-wrapper '__delattr__' of RuntimeError object>
    __dict__ = {}
    __dir__ = <built-in method __dir__ of RuntimeError object>
    __doc__ = 'Unspecified run-time error.'
    __eq__ = <method-wrapper '__eq__' of RuntimeError object>
    __format__ = <built-in method __format__ of RuntimeError object>
    __ge__ = <method-wrapper '__ge__' of RuntimeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of RuntimeError object>
    __gt__ = <method-wrapper '__gt__' of RuntimeError object>
    __hash__ = <method-wrapper '__hash__' of RuntimeError object>
    __init__ = <method-wrapper '__init__' of RuntimeError object>
    __init_subclass__ = <built-in method __init_subclass__ of type object>
    __le__ = <method-wrapper '__le__' of RuntimeError object>
    __lt__ = <method-wrapper '__lt__' of RuntimeError object>
    __ne__ = <method-wrapper '__ne__' of RuntimeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of RuntimeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of RuntimeError object>
    __repr__ = <method-wrapper '__repr__' of RuntimeError object>
    __setattr__ = <method-wrapper '__setattr__' of RuntimeError object>
    __setstate__ = <built-in method __setstate__ of RuntimeError object>
    __sizeof__ = <built-in method __sizeof__ of RuntimeError object>
    __str__ = <method-wrapper '__str__' of RuntimeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __suppress_context__ = False
    __traceback__ = <traceback object>
    args = ('wrapped C/C++ object of type StatusBar has been deleted',)
    with_traceback = <built-in method with_traceback of RuntimeError object>

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

Traceback (most recent call last):
  File "C:\Users\guy\AppData\Roaming\krita\pykrita\krita_diff\pages\upscale.py", line 60, in <lambda>
    script.status_changed.connect(lambda s: self.status_bar.set_status(s))
  File "C:\Users\guy\AppData\Roaming\krita\pykrita\krita_diff\widgets\status_bar.py", line 22, in set_status
    self.setText(f"<b>Status:</b> {s}")
RuntimeError: wrapped C/C++ object of type StatusBar has been deleted

Desktop (please complete the following information):

  • OS: Windows 10
  • WebUI commit revision: 10:10:41-705339 INFO Python 3.10.6 on Windows 10:10:43-073287 INFO Version: bfe62127 Thu Apr 27 15:47:13 2023 -0400 10:10:44-116322 INFO Latest published version: 99e3fceedb2b3ecc34951d3a86148e7e39b53745 2023-04-28T17:09:34Z
  • Extension commit revision (I can't see that, but it was updated this morning)

spreck avatar Apr 28 '23 17:04 spreck