deluge-gtk crashes on startup with AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
deluge (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The problem started after the upgrade to lunar.
Output on console is:
Unable to initialize gettext/locale!
module 'gettext' has no attribute 'bind_textdomai
Traceback (most recent call last):
File "/usr/lib/
gettext.
^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomai
20:13:16 [ERROR ][deluge.i18n.util :146 ] Unable to initialize gettext/locale!
20:13:16 [ERROR ][deluge.i18n.util :147 ] module 'gettext' has no attribute 'bind_textdomai
Traceback (most recent call last):
File "/usr/lib/
gettext.
^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomai
20:13:16 [ERROR ][deluge.i18n.util :146 ] Unable to initialize gettext/locale!
20:13:16 [ERROR ][deluge.i18n.util :147 ] module 'gettext' has no attribute 'bind_textdomai
Traceback (most recent call last):
File "/usr/lib/
gettext.
^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomai
**
GLib-GObject:
Bail out! GLib-GObject:
Aborted (core dumped)
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: deluge-gtk 2.0.3-4
ProcVersionSign
Uname: Linux 6.2.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Sat Apr 29 20:22:06 2023
InstallationDate: Installed on 2020-01-20 (1194 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200118)
PackageArchitec
SourcePackage: deluge
UpgradeStatus: Upgraded to lunar on 2023-04-29 (0 days ago)
I was able to get past this error by editing /usr/lib/ python3/ dist-packages/ deluge/ i18n/util. py:111 to change `gettext. bind_textdomain _codeset( I18N_DOMAIN, 'UTF-8')` to wrap it with a try/except of AttributeError that passes if the error is thrown, but then it still fails to start with the following error:
``` ERROR:. ./../.. /gobject/ gobject. c:3616: toggle_ refs_notify: assertion failed: (tstack. n_toggle_ refs == 1) ERROR:. ./../.. /gobject/ gobject. c:3616: toggle_ refs_notify: assertion failed: (tstack. n_toggle_ refs == 1)
**
GLib-GObject:
Bail out! GLib-GObject:
'deluge' terminated by signal SIGABRT (Abort)
```