This bug appears also in bullseye.
According to AgNitrate on
<https://bugs.launchpad.net/ubuntu/+source/deluge/+bug/1876955> it has
to do with the python version:
"AgNitrate (agnitrate) wrote on 2020-05-27: #3
Ubuntu 20.04 ships with Python 3.8, which Deluge doesn't seem to play
well with. If you update python3 to point to Python 3.7, it should
start up fine."
jaap@jaap:~$ deluge-gtk
Unhandled error in Deferred:
17:13:33 [CRITICAL][twisted :154 ] Unhandled
error in Deferred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/deluge/log.py", line 87, in
exception yield LoggingLoggerClass.exception(self, msg, *args, **kwargs)
File "/usr/lib/python3.9/logging/__init__.py", line 1477, in exception
self.error(msg, *args, exc_info=exc_info, **kwargs)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
1613, in unwindGenerator return _cancellableInlineCallbacks(gen)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
1529, in _cancellableInlineCallbacks _inlineCallbacks(None, g, status)
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
1418, in _inlineCallbacks result = g.send(result)
File "/usr/lib/python3/dist-packages/deluge/log.py", line 79, in error
yield LoggingLoggerClass.error(self, msg, *args, **kwargs)
File "/usr/lib/python3.9/logging/__init__.py", line 1471, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python3.9/logging/__init__.py", line 1573, in _log
fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: findCaller() takes from 1 to 2 positional arguments
but 3 were given
Temporarily disabling observer LegacyLogObserverWrapper(<bound method
TwistedLoggingObserver.emit of <deluge.log.TwistedLoggingObserver
object at 0x7fe83db6fdc0>>) due to exception: [Failure instance:
Traceback: <class 'TypeError'>: findCaller() takes from 1 to 2
positional arguments but 3 were given
/usr/lib/python3/dist-packages/twisted/internet/defer.py:1418:_inlineCallbacks
/usr/lib/python3/dist-packages/twisted/internet/defer.py:962:__del__
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:190:failure
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:144:emit ---
<exception caught here> ---
/usr/lib/python3/dist-packages/twisted/logger/_observer.py:131:__call__
/usr/lib/python3/dist-packages/twisted/logger/_legacy.py:93:__call__
/usr/lib/python3/dist-packages/deluge/log.py:204:emit
/usr/lib/python3.9/logging/__init__.py:1489:critical
/usr/lib/python3.9/logging/__init__.py:1573:_log ] Traceback (most
recent call last): File
"/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418,
in _inlineCallbacks result = g.send(result) File
"/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 962,
in __del__ log.failure(format, File
"/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 190,
in failure self.emit(level, format, log_failure=failure, **kwargs) File
"/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 144,
in emit self.observer(event) --- <exception caught here> --- File
"/usr/lib/python3/dist-packages/twisted/logger/_observer.py", line 131,
in __call__ observer(event) File
"/usr/lib/python3/dist-packages/twisted/logger/_legacy.py", line 93, in
__call__ self.legacyObserver(event) File
"/usr/lib/python3/dist-packages/deluge/log.py", line 204, in emit
getattr(LoggingLoggerClass, event_dict['log_level'].name)( File
"/usr/lib/python3.9/logging/__init__.py", line 1489, in critical
self._log(CRITICAL, msg, args, **kwargs) File
"/usr/lib/python3.9/logging/__init__.py", line 1573, in _log fn, lno,
func, sinfo = self.findCaller(stack_info, stacklevel)
builtins.TypeError: findCaller() takes from 1 to 2 positional arguments
but 3 were given
jaap@jaap:~$