Page 1 of 1

Deluge from repository crashes on start-up

Posted: Wed Oct 14, 2020 9:56 pm
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.

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 2:57 am
by Flash
It helps a lot if you tell us which version of Puppy you're using.

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 10:53 am
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.

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 11:45 am
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.

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 1:35 pm
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

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 5:23 pm
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 :).

Re: Deluge from repository crashes on start-up

Posted: Thu Oct 15, 2020 6:55 pm
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