https://bugs.kde.org/show_bug.cgi?id=456824
--- Comment #3 from Emily Grace Seville <emilyseville...@gmail.com> --- > That's strange -- that is code that only should be executed if Krita is built > to use Python 2. Does the appimage work for you? No, I obtained the same error with appimage (5.0.6 version): TypeError Python 3.8.1: /usr/bin/python3 Thu Aug 4 19:31:22 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. /tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/ui_scripter/actions/debugaction/debugaction.py in debug(self=<scripter.ui_scripter.actions.debugaction.debugaction.DebugAction object>) 31 if self.scripter.uicontroller.invokeAction('save'): 32 self.scripter.uicontroller.setActiveWidget(i18n('Debugger')) 33 self.scripter.debugcontroller.start(self.scripter.documentcontroller.activeDocument) 34 widget = self.scripter.uicontroller.findTabWidget(i18n('Debugger')) 35 widget.startDebugger() self = <scripter.ui_scripter.actions.debugaction.debugaction.DebugAction object> self.scripter = <scripter.scripter.ScripterExtension object> self.scripter.debugcontroller = <scripter.debugcontroller.DebugController object> self.scripter.debugcontroller.start = <bound method DebugController.start of <scripter.debugcontroller.DebugController object>> self.scripter.documentcontroller = <scripter.documentcontroller.DocumentController object> self.scripter.documentcontroller.activeDocument = <scripter.document_scripter.document.Document object> /tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugcontroller.py in start(self=<scripter.debugcontroller.DebugController object>, document=<scripter.document_scripter.document.Document object>) 25 self._debugger.debugprocess.start() 26 loop = asyncio.get_event_loop() 27 loop.run_until_complete(self._debugger.start()) 28 self.updateUIDebugger() 29 loop = <_UnixSelectorEventLoop running=False closed=False debug=False> loop.run_until_complete = <bound method BaseEventLoop.run_until_complete o...ventLoop running=False closed=False debug=False>> self = <scripter.debugcontroller.DebugController object> self._debugger = <scripter.debugger_scripter.debugger.Debugger object> self._debugger.start = <bound method Debugger.start of <scripter.debugger_scripter.debugger.Debugger object>> /tmp/.mount_krita-isMnvT/usr/lib/python3.8/asyncio/base_events.py in run_until_complete(self=<_UnixSelectorEventLoop running=False closed=False debug=False>, future=<Task finished name='Task-1' coro=<Debugger.star...=TypeError("'coroutine' object is not iterable")>) 610 raise RuntimeError('Event loop stopped before Future completed.') 611 612 return future.result() 613 614 def stop(self): future = <Task finished name='Task-1' coro=<Debugger.star...=TypeError("'coroutine' object is not iterable")> future.result = <built-in method result of _asyncio.Task object> /tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugger_scripter/debugger.py in start(self=<scripter.debugger_scripter.debugger.Debugger object>) 101 @asyncio.coroutine 102 def start(self): 103 yield from self.display() 104 105 @asyncio.coroutine self = <scripter.debugger_scripter.debugger.Debugger object> self.display = <bound method Debugger.display of <scripter.debugger_scripter.debugger.Debugger object>> /tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugger_scripter/debugger.py in display(self=<scripter.debugger_scripter.debugger.Debugger object>) 91 if self.applicationq.empty(): 92 # 'yield from' is not available in Python 2. 93 for i in asyncio.sleep(0.3): 94 yield i 95 else: i undefined global asyncio = <module 'asyncio' from '/tmp/.mount_krita-isMnvT/usr/lib/python3.8/asyncio/__init__.py'> asyncio.sleep = <function sleep> TypeError: 'coroutine' object is not iterable __cause__ = None __class__ = <class 'TypeError'> __context__ = None __delattr__ = <method-wrapper '__delattr__' of TypeError object> __dict__ = {} __dir__ = <built-in method __dir__ of TypeError object> __doc__ = 'Inappropriate argument type.' __eq__ = <method-wrapper '__eq__' of TypeError object> __format__ = <built-in method __format__ of TypeError object> __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__ = <built-in method __init_subclass__ of type object> __le__ = <method-wrapper '__le__' of TypeError object> __lt__ = <method-wrapper '__lt__' of TypeError object> __ne__ = <method-wrapper '__ne__' of TypeError object> __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of TypeError object> __reduce_ex__ = <built-in method __reduce_ex__ of TypeError object> __repr__ = <method-wrapper '__repr__' of TypeError object> __setattr__ = <method-wrapper '__setattr__' of TypeError object> __setstate__ = <built-in method __setstate__ of TypeError object> __sizeof__ = <built-in method __sizeof__ of TypeError object> __str__ = <method-wrapper '__str__' of TypeError object> __subclasshook__ = <built-in method __subclasshook__ of type object> __suppress_context__ = False __traceback__ = <traceback object> args = ("'coroutine' object is not iterable",) with_traceback = <built-in method with_traceback of TypeError object> The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/ui_scripter/actions/debugaction/debugaction.py", line 33, in debug self.scripter.debugcontroller.start(self.scripter.documentcontroller.activeDocument) File "/tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugcontroller.py", line 27, in start loop.run_until_complete(self._debugger.start()) File "/tmp/.mount_krita-isMnvT/usr/lib/python3.8/asyncio/base_events.py", line 612, in run_until_complete return future.result() File "/tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugger_scripter/debugger.py", line 103, in start yield from self.display() File "/tmp/.mount_krita-isMnvT/usr/share/krita/pykrita/scripter/debugger_scripter/debugger.py", line 93, in display for i in asyncio.sleep(0.3): TypeError: 'coroutine' object is not iterable Also GUI in appimage is very small. -- You are receiving this mail because: You are watching all bug changes.