Calculate Forum

Deluge, python и последнее обновление

столкнулся, собственно, с данным:

[I] net-p2p/deluge
Доступные версии: 2.0.3-r8{tbz2} **9999*l {console geoip gtk libnotify sound webinterface PYTHON_SINGLE_TARGET=“python3_8 python3_9”}
Установленные версии: 2.0.3-r8{tbz2}(01:31:07 11.06.2021)(gtk libnotify -console -geoip -sound -webinterface PYTHON_SINGLE_TARGET=“python3_9 -python3_8”)
Домашняя страница: https://deluge-torrent.org/
Описание: BitTorrent client with a client/server model

Найдено 3 совпадение.
ad@ad ~ $ htop
ad@ad ~ $ su
Пароль:
ad ad # deluge
Traceback (most recent call last):
File “/usr/bin/deluge”, line 33, in
sys.exit(load_entry_point(‘deluge==2.0.3’, ‘gui_scripts’, ‘deluge’)())
File “/usr/lib/python3.9/site-packages/deluge/ui/ui_entry.py”, line 143, in start_ui
ui.start()
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/init.py”, line 43, in start
from .gtkui import GtkUI
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/gtkui.py”, line 50, in
from deluge.ui.client import client
File “/usr/lib/python3.9/site-packages/deluge/ui/client.py”, line 17, in
from twisted.internet import defer, reactor, ssl
File “/usr/lib/python3.9/site-packages/twisted/internet/ssl.py”, line 58, in
from OpenSSL import SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/crypto.py”, line 17, in
from OpenSSL._util import (
File “/usr/lib/python3.9/site-packages/OpenSSL/_util.py”, line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding
File “/usr/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 14, in
from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named ‘cryptography.hazmat.bindings._openssl’
ad ad #

куда рыть - пока мыслей нет.
кто сталкивался?

deluge перестал работать еще до обновления на python 3.9. переустановил - ничего.

Проверьте, установлены ли пакеты dev-python/pyopenssl и dev-python/cryptography.

да, все данные пакеты установлены.

Попробовать переустановить.

клиент-торрент от рута запускаете? супер!

от не рута ситуация та же самая.

ad@ad ~ $ deluge
Traceback (most recent call last):
File “/usr/bin/deluge”, line 33, in
sys.exit(load_entry_point(‘deluge==2.0.3’, ‘gui_scripts’, ‘deluge’)())
File “/usr/lib/python3.9/site-packages/deluge/ui/ui_entry.py”, line 143, in start_ui
ui.start()
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/init.py”, line 43, in start
from .gtkui import GtkUI
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/gtkui.py”, line 50, in
from deluge.ui.client import client
File “/usr/lib/python3.9/site-packages/deluge/ui/client.py”, line 17, in
from twisted.internet import defer, reactor, ssl
File “/usr/lib/python3.9/site-packages/twisted/internet/ssl.py”, line 58, in
from OpenSSL import SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/crypto.py”, line 17, in
from OpenSSL._util import (
File “/usr/lib/python3.9/site-packages/OpenSSL/_util.py”, line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding
File “/usr/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 14, in
from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named ‘cryptography.hazmat.bindings._openssl’
ad@ad ~ $

у меня аналогичная ситуация

$ deluge
Traceback (most recent call last):
File “/usr/bin/deluge”, line 33, in
sys.exit(load_entry_point(‘deluge==2.0.3’, ‘gui_scripts’, ‘deluge’)())
File “/usr/lib/python3.9/site-packages/deluge/ui/ui_entry.py”, line 143, in start_ui
ui.start()
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/init.py”, line 43, in start
from .gtkui import GtkUI
File “/usr/lib/python3.9/site-packages/deluge/ui/gtk3/gtkui.py”, line 50, in
from deluge.ui.client import client
File “/usr/lib/python3.9/site-packages/deluge/ui/client.py”, line 17, in
from twisted.internet import defer, reactor, ssl
File “/usr/lib/python3.9/site-packages/twisted/internet/ssl.py”, line 58, in
from OpenSSL import SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL
File “/usr/lib/python3.9/site-packages/OpenSSL/crypto.py”, line 17, in
from OpenSSL._util import (
File “/usr/lib/python3.9/site-packages/OpenSSL/_util.py”, line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding
File “/usr/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 14, in
from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named ‘cryptography.hazmat.bindings._openssl’

на python-3.8.10_p2 работает

emerge =dev-lang/python-3.8.10_p2
USE=“python_targets_python3_8” PYTHON_SINGLE_TARGET=“python3_8” emerge deluge

Ошибка пропала после ( запускать от рута)

emerge dev-python/pip
pip install --user deluge pyopenssl
pip install --user deluge cryptography

После этого запускаем deluged от рута и проверяем, что deluged слушает порт 58846

deluged
netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:58846         0.0.0.0:*               LISTEN
© 2007-2020 Calculate Ltd.
Mastodon Mastodon