Interpause / Interpause/auto-sd-paint-ext

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

Open
#144 6 comments 0 reactions 0 assignees View on GitHub
bug-compat
Dominant language
Python
Stars
482
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**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](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](https://user-images.githubusercontent.com/69261029/235213365-150c6279-fb5e-46ca-91c5-f1eb9430aac7.png)

![image](https://user-images.githubusercontent.com/69261029/235213309-9e3c251c-1b6c-495d-a423-cabe19ed95ea.png)

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](https://user-images.githubusercontent.com/69261029/235213667-ce088421-45a3-411b-9561-e4bf23bb0bca.png)
```
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 (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 =
script.status_changed =
script.status_changed.connect =
s = 'Cannot reach backend!'
self =
self.status_bar =
self.status_bar.set_status = >

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.