Coder Social home page Coder Social logo

internationaltd / defuser Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 2.0 1.75 MB

the Stable Diffusion Plugin for Photoshop and Krita

Home Page: https://internationaltd.github.io/defuser/

ai ai-art krita krita-plugin photoshop photoshop-plugin stable-diffusion stablediffusion

defuser's People

Contributors

internationaltd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rowndcat 5l1v3r1

defuser's Issues

when i reinstall stable-diffusion-webui gen images error

Traceback (most recent call last):
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\fastapi\applications.py", line 270, in call
await super().call(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\gzip.py", line 26, in call
await self.app(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\exceptions.py", line 75, in call raise exc
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\middleware\exceptions.py", line 64, in call await self.app(scope, receive, sender)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\routing.py", line 680, in call
await route.handle(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\routing.py", line 275, in handle
await self.app(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\routing.py", line 68, in app
await response(scope, receive, send)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\starlette\responses.py", line 334, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path I:\xStableDiffusion\v1.2 full\stable-diffusion-webui\null does not exist.

ip / url input

Rather than hardcode 127. So it can be done through the localnetwork or via a colab.

Photoshop installation issues

hi!
I haven't been able to get the plugin to load properly in Photoshop. I installed it manually by extracting the ccx.
Initially, it wasn't loading at all, so I checked the Photoshop UXP logs.

[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : [v4] Using Default Value for Icon species
[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : [v4] Using Default Value for Icon species
[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : Scaled Icon :  icons/[email protected]  not found
[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : Scaled Icon :  icons/[email protected]  not found
[2022-10-28_19-41-01][12592][Warn] [general] Plugin defuser : Expected the icon to have a 1X scaled file
[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : Scaled Icon :  icons/[email protected]  not found
[2022-10-28_19-41-01][12592][Info] [general] Plugin defuser : Scaled Icon :  icons/[email protected]  not found
[2022-10-28_19-41-01][12592][Warn] [general] Plugin defuser : Expected the icon to have a 1X scaled file
[2022-10-28_19-41-01][12592][Error] [general] Plugin defuser : Expected a string for the permission 'launchProcess'

I looked in manifest.json and but wasn't able to find anything obviously wrong, but I don't really know anything about Photoshop plugin development. I looked at the documentation for manifest.json at https://developer.adobe.com/photoshop/uxp/2022/guides/uxp_guide/uxp-misc/manifest-v5/ and saw that Photoshop version 23.3 is required for manifest v5. The manifest file specifies "minVersion": "22.0.0" currently.
I was using 23.0, so I updated it, and afterwards, the plugin did load, but it doesn't seem to be functioning properly.
image
The docker seems to be missing a lot of fields and only the img2img tab is present. img2img does work though, with the limited fields available, so it is communicating with webui.
Krita version is working properly.

After plugin install Krita don't start

Krita 5.1.1, Manjaro Linux.

After installing lastest version, of plugin, Krita don't start anymore. It's show up this error, then close:

TypeError
Python 3.10.7: /usr/bin/python3
Tue Nov 1 22:04:15 2022

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

/usr/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 'Defuser.MyDocker.MyDocker'>

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in init(self=<Defuser.MyDocker.MyDocker object>)
296 super().init()
297 # src/MyDocker.hx:28
298 host_App.init(self)
299 # src/MyDocker.hx:31
300 # src/MyDocker.hx:31
global host_App = <class 'Defuser.MyDocker.host_App'>
host_App.init =
self = <Defuser.MyDocker.MyDocker object>

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in init(v=<Defuser.MyDocker.MyDocker object>)
2602 req.onData = _hx_local_15
2603 # src/host/App.hx:140
2604 req.request(False)
2605 # src/host/App.hx:143
2606 v.setWindowTitle("Defuser")
req = <Defuser.MyDocker.sys_Http object>
req.request = <bound method sys_Http.request of <Defuser.MyDocker.sys_Http object>>

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in request(self=<Defuser.MyDocker.sys_Http object>, post=False)
5247 # C:\HaxeToolkit\haxe\std/sys/Http.hx:69
5248 if (not err):
5249 self.success(output.getBytes())
5250
5251 def customRequest(self,post,api,sock = None,method = None):
self = <Defuser.MyDocker.sys_Http object>
self.success = <bound method haxe_http_HttpBase.success of <Defuser.MyDocker.sys_Http object>>
output = <Defuser.MyDocker.haxe_io_BytesOutput object>
output.getBytes = <bound method haxe_io_BytesOutput.getBytes of <Defuser.MyDocker.haxe_io_BytesOutput object>>

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in success(self=<Defuser.MyDocker.sys_Http object>, data=<Defuser.MyDocker.haxe_io_Bytes object>)
2119 # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:235
2120 if self.hasOnData():
2121 self.onData(self.get_responseData())
2122 # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:238
2123 self.onBytes(self.responseBytes)
self = <Defuser.MyDocker.sys_Http object>
self.onData = <function host_App.init.._hx_local_15>
self.get_responseData = <bound method haxe_http_HttpBase.get_responseData of <Defuser.MyDocker.sys_Http object>>

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in _hx_local_15(data_out='\n<html lang="en" style="margin: 0....padding = "0";\n\t\t\t}\n\t\t</script>\n\t\n')
2599 print(str(host_UI.tags.h.get("img2img",None)))
2600 # src/host/App.hx:137
2601 host_UI.createInterface()
2602 req.onData = _hx_local_15
2603 # src/host/App.hx:140
global host_UI = <class 'Defuser.MyDocker.host_UI'>
host_UI.createInterface =

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in createInterface()
2772 host_UI.makeTab("txt2img")
2773 # src/host/UI.python.hx:66
2774 host_UI.makeTab("img2img")
2775 # src/host/UI.python.hx:69
2776 # src/host/UI.python.hx:69
global host_UI = <class 'Defuser.MyDocker.host_UI'>
host_UI.makeTab =

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in makeTab(mode='img2img')
2854 _g = (_g + 1)
2855 # src/host/UI.python.hx:116
2856 widget = host_UI.makeComponent(comp,mode)
2857 # src/host/UI.python.hx:117
2858 formlayout.addWidget(widget)
widget = <PyQt5.QtWidgets.QGroupBox object>
global host_UI = <class 'Defuser.MyDocker.host_UI'>
host_UI.makeComponent =
comp = {'id': 335, 'props': {'label': 'Mask precision',...param_name': 'mask_precision'}, 'type': 'slider'}
mode = 'img2img'

/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py in makeComponent(component={'id': 335, 'props': {'label': 'Mask precision',...param_name': 'mask_precision'}, 'type': 'slider'}, mode='img2img')
3250 raise "Class cast error"
3251 return _hx_local_21
3252 input3.setMinimum(_hx_local_22())
3253 # src/host/UI.python.hx:361
3254 def _hx_local_24():
input3 = <PyQt5.QtWidgets.QSpinBox object>
input3.setMinimum =
_hx_local_22 = <function host_UI.makeComponent.._hx_local_22>
TypeError: setMinimum(self, int): argument 1 has unexpected type 'float'
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 = ("setMinimum(self, int): argument 1 has unexpected type 'float'",)
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 "/usr/lib/krita-python-libs/krita/dockwidgetfactory.py", line 18, in createDockWidget
return self.klass()
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 298, in init
host_App.init(self)
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 2604, in init
req.request(False)
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 5249, in request
self.success(output.getBytes())
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 2121, in success
self.onData(self.get_responseData())
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 2601, in _hx_local_15
host_UI.createInterface()
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 2774, in createInterface
host_UI.makeTab("img2img")
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 2856, in makeTab
widget = host_UI.makeComponent(comp,mode)
File "/home/usersd/.local/share/krita/pykrita/Defuser/MyDocker.py", line 3252, in makeComponent
input3.setMinimum(_hx_local_22())
TypeError: setMinimum(self, int): argument 1 has unexpected type 'float'

MacOS ?

Hi, really excited to have a try on this in Photoshop but I'm on a mac m1.
I installed the plugin via Creative Cloud, the docker plugin is displayed in Photoshop but is empty :/
Is it even possible to make it works on a mac ?

can't gen image

Traceback (most recent call last):
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\gradio\routes.py", line 273, in run_predict
output = await app.blocks.process_api(
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\gradio\blocks.py", line 739, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\gradio\blocks.py", line 638, in preprocess_data
processed_input.append(block.preprocess(raw_input[i]))
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\gradio\components.py", line 2118, in preprocess
return process_single_file(x)
File "I:\xStableDiffusion\v1.2 full\python\Lib\site-packages\gradio\components.py", line 2088, in process_single_file
f["name"],
TypeError: 'int' object is not subscriptable

`AttributeError: 'NoneType' object has no attribute 'visible'` upon startup

Stable Diffusion details:

version: [v1.3.2](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/baf6946e06249c5af9851c60171692c44ef633e0)  •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: 0.0.21+c14be66.d20230619  •  gradio: 3.32.0  •  checkpoint: [ad2a33c361](https://google.com/search?q=ad2a33c361c1f593c4a1fb32ea81afce2b5bb7d1983c6b94793a26a3b54b08a0)

Note that no extensions were running.

Krita error log

AttributeError
Python 3.8.1: C:\Program Files\Krita (x64)\bin\krita.exe
Tue Jun 20 16:33:54 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 'Defuser.MyDocker.MyDocker'>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in __init__(self=<Defuser.MyDocker.MyDocker object>)
  296         super().__init__()
  297         # src/MyDocker.hx:28
  298         host_App.init(self)
  299         # src/MyDocker.hx:31
  300         # src/MyDocker.hx:31
global host_App = <class 'Defuser.MyDocker.host_App'>
host_App.init = <function host_App.init>
self = <Defuser.MyDocker.MyDocker object>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in init(v=<Defuser.MyDocker.MyDocker object>)
 2602         req.onData = _hx_local_15
 2603         # src/host/App.hx:140
 2604         req.request(False)
 2605         # src/host/App.hx:143
 2606         v.setWindowTitle("Defuser")
req = <Defuser.MyDocker.sys_Http object>
req.request = <bound method sys_Http.request of <Defuser.MyDocker.sys_Http object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in request(self=<Defuser.MyDocker.sys_Http object>, post=False)
 5247         # C:\HaxeToolkit\haxe\std/sys/Http.hx:69
 5248         if (not err):
 5249             self.success(output.getBytes())
 5250 
 5251     def customRequest(self,post,api,sock = None,method = None):
self = <Defuser.MyDocker.sys_Http object>
self.success = <bound method haxe_http_HttpBase.success of <Defuser.MyDocker.sys_Http object>>
output = <Defuser.MyDocker.haxe_io_BytesOutput object>
output.getBytes = <bound method haxe_io_BytesOutput.getBytes of <Defuser.MyDocker.haxe_io_BytesOutput object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in success(self=<Defuser.MyDocker.sys_Http object>, data=<Defuser.MyDocker.haxe_io_Bytes object>)
 2119         # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:235
 2120         if self.hasOnData():
 2121             self.onData(self.get_responseData())
 2122         # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:238
 2123         self.onBytes(self.responseBytes)
self = <Defuser.MyDocker.sys_Http object>
self.onData = <function host_App.init.<locals>._hx_local_15>
self.get_responseData = <bound method haxe_http_HttpBase.get_responseData of <Defuser.MyDocker.sys_Http object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in _hx_local_15(data_out='<!DOCTYPE html>\n<html\n\tlang="en"\n\tstyle="\n\t\tmarg...ile=style.css?1687222566.7404692"></body>\n</html>')
 2599             print(str(host_UI.tags.h.get("img2img",None)))
 2600             # src/host/App.hx:137
 2601             host_UI.createInterface()
 2602         req.onData = _hx_local_15
 2603         # src/host/App.hx:140
global host_UI = <class 'Defuser.MyDocker.host_UI'>
host_UI.createInterface = <function host_UI.createInterface>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in createInterface()
 2800         host_UI.makeTab("inpaint")
 2801         # src/host/UI.python.hx:77
 2802         host_UI.makeTab("outpainting_mk2")
 2803 
 2804     @staticmethod
global host_UI = <class 'Defuser.MyDocker.host_UI'>
host_UI.makeTab = <function host_UI.makeTab>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in makeTab(mode='outpainting_mk2')
 2974             req.onStatus = _hx_local_6
 2975             # src/host/UI.python.hx:203
 2976             req.request(True)
 2977 
 2978     @staticmethod
req = <Defuser.MyDocker.sys_Http object>
req.request = <bound method sys_Http.request of <Defuser.MyDocker.sys_Http object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in request(self=<Defuser.MyDocker.sys_Http object>, post=True)
 5247         # C:\HaxeToolkit\haxe\std/sys/Http.hx:69
 5248         if (not err):
 5249             self.success(output.getBytes())
 5250 
 5251     def customRequest(self,post,api,sock = None,method = None):
self = <Defuser.MyDocker.sys_Http object>
self.success = <bound method haxe_http_HttpBase.success of <Defuser.MyDocker.sys_Http object>>
output = <Defuser.MyDocker.haxe_io_BytesOutput object>
output.getBytes = <bound method haxe_io_BytesOutput.getBytes of <Defuser.MyDocker.haxe_io_BytesOutput object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in success(self=<Defuser.MyDocker.sys_Http object>, data=<Defuser.MyDocker.haxe_io_Bytes object>)
 2119         # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:235
 2120         if self.hasOnData():
 2121             self.onData(self.get_responseData())
 2122         # C:\HaxeToolkit\haxe\std/haxe/http/HttpBase.hx:238
 2123         self.onBytes(self.responseBytes)
self = <Defuser.MyDocker.sys_Http object>
self.onData = <function host_UI.makeTab.<locals>._hx_local_5>
self.get_responseData = <bound method haxe_http_HttpBase.get_responseData of <Defuser.MyDocker.sys_Http object>>

 C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py in _hx_local_5(data_out='{"data":[{"visible":false,"__type__":"update"},{...996094,"average_duration":0.00037860870361328125}')
 2959                     # src/host/UI.python.hx:187
 2960                     value = Reflect.field((data[i] if i >= 0 and i < len(data) else None),"visible")
 2961                     setattr(tag_props,(("_hx_" + "visible") if (("visible" in python_Boot.keywords)) else (("_hx_" + "visible") if (((((len("visible") > 2) and ((ord("visible"[0]) == 95))) and ((ord("visible"[1]) == 95))) and ((ord("visible"[(len("visible") - 1)]) != 95)))) else "visible")),value)
 2962                     # src/host/UI.python.hx:188
 2963                     if (Reflect.field((vismap[i] if i >= 0 and i < len(vismap) else None),"container") is not None):
builtinsetattr = <built-in function setattr>
tag_props = None
global python_Boot = <class 'Defuser.MyDocker.python_Boot'>
python_Boot.keywords = {'False', 'None', 'True', 'and', 'as', 'assert', ...}
builtinlen = <built-in function len>
builtinord = <built-in function ord>
value = False
AttributeError: 'NoneType' object has no attribute 'visible'
    __cause__ = None
    __class__ = <class 'AttributeError'>
    __context__ = None
    __delattr__ = <method-wrapper '__delattr__' of AttributeError object>
    __dict__ = {}
    __dir__ = <built-in method __dir__ of AttributeError object>
    __doc__ = 'Attribute not found.'
    __eq__ = <method-wrapper '__eq__' of AttributeError object>
    __format__ = <built-in method __format__ of AttributeError object>
    __ge__ = <method-wrapper '__ge__' of AttributeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of AttributeError object>
    __gt__ = <method-wrapper '__gt__' of AttributeError object>
    __hash__ = <method-wrapper '__hash__' of AttributeError object>
    __init__ = <method-wrapper '__init__' of AttributeError object>
    __init_subclass__ = <built-in method __init_subclass__ of type object>
    __le__ = <method-wrapper '__le__' of AttributeError object>
    __lt__ = <method-wrapper '__lt__' of AttributeError object>
    __ne__ = <method-wrapper '__ne__' of AttributeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of AttributeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of AttributeError object>
    __repr__ = <method-wrapper '__repr__' of AttributeError object>
    __setattr__ = <method-wrapper '__setattr__' of AttributeError object>
    __setstate__ = <built-in method __setstate__ of AttributeError object>
    __sizeof__ = <built-in method __sizeof__ of AttributeError object>
    __str__ = <method-wrapper '__str__' of AttributeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __suppress_context__ = False
    __traceback__ = <traceback object>
    args = ("'NoneType' object has no attribute 'visible'",)
    with_traceback = <built-in method with_traceback of AttributeError 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:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py", line 18, in createDockWidget
    return self.klass()
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 298, in __init__
    host_App.init(self)
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2604, in init
    req.request(False)
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 5249, in request
    self.success(output.getBytes())
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2121, in success
    self.onData(self.get_responseData())
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2601, in _hx_local_15
    host_UI.createInterface()
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2802, in createInterface
    host_UI.makeTab("outpainting_mk2")
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2976, in makeTab
    req.request(True)
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 5249, in request
    self.success(output.getBytes())
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2121, in success
    self.onData(self.get_responseData())
  File "C:\Users\theis\AppData\Roaming\krita\pykrita\Defuser\MyDocker.py", line 2961, in _hx_local_5
    setattr(tag_props,(("_hx_" + "visible") if (("visible" in python_Boot.keywords)) else (("_hx_" + "visible") if (((((len("visible") > 2) and ((ord("visible"[0]) == 95))) and ((ord("visible"[1]) == 95))) and ((ord("visible"[(len("visible") - 1)]) != 95)))) else "visible")),value)
AttributeError: 'NoneType' object has no attribute 'visible'

image

Better light theme support

Some parts are unreadable with the light theme, editing css and adding more classes to already existing code fixes it:

@media (prefers-color-scheme: light), (prefers-color-scheme: lightest) {
/* ... */
 .group > sp-label:not(.safe), .group > label:not(.safe), .toaster, .group > sp-button {
    background-color: #E8E8E8;
  }
}

Also in your preview file all UI elements look pretty evenly spaced, but in my case they are not like that

Plugin don't work after install, empty docker, showing this error...

Manjaro Linux, Krita 5.1.1

After install docker is empty. If try to "SD check requirements and fix" option, it show this error:

AttributeError
Python 3.10.7: /usr/bin/python3
Sun Oct 30 11:45:33 2022

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

/home/usersd/.local/share/krita/pykrita/Defuser/init.py in f()
31
32 docker = self.getDocker()
33 mode = docker.widget().findChildren(QTabWidget)[0].tabText( docker.widget().findChildren(QTabWidget)[0].currentIndex())
34 loop_max = 32
35 while not docker.checkReady(mode) and loop_max >0:
mode undefined
docker = <Defuser.MyDocker.MyDocker object>
docker.widget =
).findChildren undefined
global QTabWidget = <class 'PyQt5.QtWidgets.QTabWidget'>
].tabText =
].currentIndex =
AttributeError: 'NoneType' object has no attribute 'findChildren'
cause = None
class = <class 'AttributeError'>
context = None
delattr = <method-wrapper 'delattr' of AttributeError object>
dict = {}
dir =
doc = 'Attribute not found.'
eq = <method-wrapper 'eq' of AttributeError object>
format =
ge = <method-wrapper 'ge' of AttributeError object>
getattribute = <method-wrapper 'getattribute' of AttributeError object>
gt = <method-wrapper 'gt' of AttributeError object>
hash = <method-wrapper 'hash' of AttributeError object>
init = <method-wrapper 'init' of AttributeError object>
init_subclass =
le = <method-wrapper 'le' of AttributeError object>
lt = <method-wrapper 'lt' of AttributeError object>
ne = <method-wrapper 'ne' of AttributeError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper 'repr' of AttributeError object>
setattr = <method-wrapper 'setattr' of AttributeError object>
setstate =
sizeof =
str = <method-wrapper 'str' of AttributeError object>
subclasshook =
suppress_context = False
traceback =
args = ("'NoneType' object has no attribute 'findChildren'",)
name = 'findChildren'
obj = None
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 "/home/usersd/.local/share/krita/pykrita/Defuser/init.py", line 33, in f
mode = docker.widget().findChildren(QTabWidget)[0].tabText( docker.widget().findChildren(QTabWidget)[0].currentIndex())
AttributeError: 'NoneType' object has no attribute 'findChildren'

Docker is empty

Followed the installation exactly, docker is blank
Using Krita version 5.1.1

The interface is blank

Installed manually to PS as per instructions.
The plug-in interface shows up but it completely blank - no controls on it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.