Bug 256484 - net-p2p/deluge-cli: deluge_web fails to start after update to python38
Summary: net-p2p/deluge-cli: deluge_web fails to start after update to python38
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-08 17:03 UTC by jordy
Modified: 2021-06-16 08:16 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (rm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jordy 2021-06-08 17:03:05 UTC
Error:

Starting deluge_web.
Unable to initialize gettext/locale!
'ngettext'
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/deluge/i18n/util.py", line 118, in setup_translation
    builtins.__dict__['_n'] = builtins.__dict__['ngettext']
KeyError: 'ngettext'

Solution:
https://dev.deluge-torrent.org/ticket/3342

Patch:
https://dev.deluge-torrent.org/changeset/d6c96d629183e8bab

For some reason this patch is not in their latest release.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-06-16 08:15:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d799d45298dd6722721e8cd9a6ab66de3afa0ea7

commit d799d45298dd6722721e8cd9a6ab66de3afa0ea7
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2021-06-16 08:13:39 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2021-06-16 08:13:39 +0000

    net-p2p/deluge-cli: fix runtime of deluge-web

    Add upstream patch to fix runtime of deluge-web with python3.8

    PR:             256484
    Reported by:    jordy@jvwdev.nl

 net-p2p/deluge-cli/files/patch-deluge_i18n_util.py (new) | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2021-06-16 08:16:30 UTC
Committed, thank you!