Deluge from repository crashes on start-up

Moderator: Forum moderators

Post Reply
fcmircea
Posts: 2
Joined: Wed Oct 14, 2020 9:44 pm

Deluge from repository crashes on start-up

Post by fcmircea »

Hello,

As Deluge 2.x no longer has a windows client, I am trying to run the linux client inside a VirtualBox Machine.

I'm quite interested in puppy linux as it seems to fit the bill for this specific purpose.

However, after booting from the live media and installing deluge from the install application tab, I get the following errors when starting deluge from the terminal:

Code: Select all

root# deluge
Unable to initialize gettext/locale!
'ngettext'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/i18n/util.py", line 118, in setup_translation
    builtins.__dict__['_n'] = builtins.__dict__['ngettext']
KeyError: 'ngettext'
Traceback (most recent call last):
  File "/usr/bin/deluge", line 11, in <module>
    load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')()
  File "/usr/lib/python3/dist-packages/deluge/ui/ui_entry.py", line 143, in start_ui
    ui.start()
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/__init__.py", line 43, in start
    from .gtkui import GtkUI
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/gtkui.py", line 50, in <module>
    from deluge.ui.client import client
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 17, in <module>
    from twisted.internet import defer, reactor, ssl
  File "/usr/lib/python3/dist-packages/twisted/internet/ssl.py", line 59, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 12, in <module>
    from cryptography import x509
  File "/usr/lib/python3/dist-packages/cryptography/x509/__init__.py", line 8, in <module>
    from cryptography.x509.base import (
  File "/usr/lib/python3/dist-packages/cryptography/x509/base.py", line 18, in <module>
    from cryptography.x509.extensions import Extension, ExtensionType
  File "/usr/lib/python3/dist-packages/cryptography/x509/extensions.py", line 20, in <module>
    from cryptography.hazmat.primitives import constant_time, serialization
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
    from cryptography.hazmat.bindings._constant_time import lib
ModuleNotFoundError: No module named '_cffi_backend'
Any thoughts on how to fix this?

Thanks.
User avatar
Flash
Moderator
Posts: 974
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 51 times
Been thanked: 125 times

Re: Deluge from repository crashes on start-up

Post by Flash »

It helps a lot if you tell us which version of Puppy you're using.
Chaos coordinator :?
User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: Deluge from repository crashes on start-up

Post by OscarTalks »

I had not heard of Deluge before, but it seems it is a bittorrent client.
The error messages suggest missing python3 stuff. Many Puppies don't have python3 included. Some have python2. I am no expert when it comes to python, but there are options for installing python3 and python3 modules via the package manager or by compiling from source.
User avatar
bigpup
Moderator
Posts: 6974
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 901 times
Been thanked: 1520 times

Re: Deluge from repository crashes on start-up

Post by bigpup »

However, after booting from the live media and installing deluge from the install application tab,
What Puppy specific version??????
What install application tab????
What specific version of deluge????

At minimum the Puppy version is going to need Python 3 and GTK3.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
rockedge
Site Admin
Posts: 6525
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2736 times
Been thanked: 2616 times
Contact:

Re: Deluge from repository crashes on start-up

Post by rockedge »

There is a good solution for installing Python 3 into a Puppy Linux. Go to ActiveState and download a Python package. Run the installer to put the python package in /opt. Add the path to the Python 3 binaries into /etc/profile or for a quick test use "export" from the command line.

https://www.activestate.com/products/python/

I am using the ActiveState python 3 for object and face recognition plus running some X10 modules with small python 3 On/Off switches
It works really well! I also add symlinks to the python 3 binaries in /usr/bin from /opt/ActivePython-3.7/bin

Cool thing is one can place /ActivePython-3.7/ outside of the file system like the portable browsers
fcmircea
Posts: 2
Joined: Wed Oct 14, 2020 9:44 pm

Re: Deluge from repository crashes on start-up

Post by fcmircea »

I'm sorry, version is: FossaPup64 9.5.

It's the 2.x version of deluge on the official ubuntu repository from what I understand.

The tab I'm reffering to is the 2nd tab from the install app, the one that allows flash drive or hdd installation.

I'm not that familiar with installing outside of managers like apt, so I'm a bit clueless here :).
User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 149 times

Re: Deluge from repository crashes on start-up

Post by 666philb »

type python3-cffi into the find box of the package manager and install python3-cffi-backends

a nicer torrent client is quickpet>>>internet>>>tixati
Post Reply

Return to “Browsers and Internet”