[Bug 267162] security/py-openssl: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust'

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 Oct 2022 23:31:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267162

            Bug ID: 267162
           Summary: security/py-openssl: cannot import name 'x509' from
                    'cryptography.hazmat.bindings._rust'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sbz@FreeBSD.org
          Reporter: yuri@freebsd.org
          Assignee: sbz@FreeBSD.org
             Flags: maintainer-feedback?(sbz@FreeBSD.org)

misc/veles fails with this message:
```
Traceback (most recent call last):
  File "/usr/local/bin/veles-server", line 23, in <module>
    from veles.server.proto import (create_unix_server, create_tcp_server,
  File "/usr/local/lib/python3.9/site-packages/veles/server/proto.py", line 27,
in <module>
    from OpenSSL import crypto
  File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in
<module>
    from OpenSSL import crypto, SSL
  File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py", line 14, in
<module>
    from cryptography import utils, x509
  File "/usr/local/lib/python3.9/site-packages/cryptography/x509/__init__.py",
line 6, in <module>
    from cryptography.x509 import certificate_transparency
  File
"/usr/local/lib/python3.9/site-packages/cryptography/x509/certificate_transparency.py",
line 10, in <module>
    from cryptography.hazmat.bindings._rust import x509 as rust_x509
ImportError: cannot import name 'x509' from
'cryptography.hazmat.bindings._rust' (unknown location)
Process of locally created server finished. Exit code: 1.
NetworkClient: Disconnect.
```


This makes me think that security/py-openssl is broken.

-- 
You are receiving this mail because:
You are the assignee for the bug.