Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803887 - net-p2p/deluge-2.0.3-r8: Python 3.9 error: No module named 'cryptography.hazmat.bindings._openssl'
Summary: net-p2p/deluge-2.0.3-r8: Python 3.9 error: No module named 'cryptography.hazm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords:
: 789450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-24 20:07 UTC by Alexander Kurakin
Modified: 2021-07-26 14:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kurakin 2021-07-24 20:07:24 UTC
On Calculate Linux, Python 3.9:


$ deluge

(deluge:28445): Gtk-WARNING **: 22:52:44.923: Theme parsing error: gtk.css:251:333: Not using units is deprecated. Assuming 'px'.

(deluge:28445): Gtk-WARNING **: 22:52:44.923: Theme parsing error: gtk.css:252:277: Not using units is deprecated. Assuming 'px'.

(deluge:28445): dbind-WARNING **: 22:52:44.961: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/bin/deluge", line 33, in <module>
    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 <module>
    from deluge.ui.client import client
  File "/usr/lib/python3.9/site-packages/deluge/ui/client.py", line 17, in <module>
    from twisted.internet import defer, reactor, ssl
  File "/usr/lib/python3.9/site-packages/twisted/internet/ssl.py", line 58, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3.9/site-packages/OpenSSL/crypto.py", line 17, in <module>
    from OpenSSL._util import (
  File "/usr/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/usr/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._openssl'
Comment 1 Craig Andrews gentoo-dev 2021-07-25 16:16:41 UTC
Do you have dev-python/cryptography[python3_9] installed?
Comment 2 Larry the Git Cow gentoo-dev 2021-07-26 14:23:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a394d84a43ea75211b12edb7f57e1cb8377401b8

commit a394d84a43ea75211b12edb7f57e1cb8377401b8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-07-26 14:23:21 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-07-26 14:23:51 +0000

    dev-python/cryptography: Force-disable SSLv3 to avoid ABI breakage
    
    Force-disable SSLv3 even if OpenSSL is built with SSLv3.  Otherwise
    disabling sslv3 flag on dev-libs/openssl causes ABI breakage that
    requires manual intervention.
    
    Closes: https://bugs.gentoo.org/803887
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../{cryptography-3.4.7-r1.ebuild => cryptography-3.4.7-r2.ebuild}    | 4 ++++
 1 file changed, 4 insertions(+)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-07-26 14:25:42 UTC
*** Bug 789450 has been marked as a duplicate of this bug. ***