From nobody Mon Oct 10 17:37:18 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MmR1q1xy1z4frKL for ; Mon, 10 Oct 2022 17:37:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MmR1q049Xz4PGG for ; Mon, 10 Oct 2022 17:37:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MmR1p6FjqzhfV for ; Mon, 10 Oct 2022 17:37:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 29AHbIZU001128 for ; Mon, 10 Oct 2022 17:37:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29AHbIWt001126 for ports-bugs@FreeBSD.org; Mon, 10 Oct 2022 17:37:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266946] certbot ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' Date: Mon, 10 Oct 2022 17:37:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bagas1983@mail.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665423439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hzqpZZ5MOyy8q6fQgT9u6YY5kDOSeBA9ICBk/T0MDLw=; b=QwhssKVzBZaUGvtIbdcMV1XB/YEwqRUmJiAen3n3hJ7oPFPkERzyQ5PvL83f2sfXGMDIR5 eisOgqrpTQdLaA7LL0wGzLqhk4KL3UfOHG7IeMZAQu9fTALeHahVEVFO9OXOyRLhqZGSY9 3nICexYnaumKNQZuMJ7Vw1NKvlDCy2pOFMzvRXq4adPT3lqZmK7qBnW9oYZOiI7wu16e57 qzEwo2NvCrfV0VHojBVhDTebWdmxYCrM40T3r8yCHuatJVe4DZNdS2xWQc/9l3Vf/U2OKH LKXzFppmJobSs6ZMIpW+uYsh5KZpTKsnoJj/w5IPsOfbHjMrxMoMj39GHZIXHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665423439; a=rsa-sha256; cv=none; b=Il0WqeDrJunLXvlhhYAt+oFWmKx6edcRcWG+rWevgkZv7v7uBvTONQTJITu/eac6a90wbY fqfPg0qUNj2Y2j3EY3Ye60oj9PGNXKYVZxbwBw3t1vG4+La8fFeaARBA3fpPcFCWvbMGuS 9o6p0RbjRZNCpj9hg9EqVYjg5vfACx0fiyI38dte2Pjl8aDtdbUBIOlbpWaMZDt7zDDxP2 XcLevwbg6xX/zXN+ZcPlnZKVvyOrGco+I4be4N4+V8aF6Trcrlfa46sybsCUvYhaE7gAIo MLT19xjafNPw2D4nsUeLr2nHYqAzTEMPZnr2snvC7YJPUu7MJ4T2wA4VgQmpwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266946 Bug ID: 266946 Summary: certbot ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: bagas1983@mail.ru Hello. I'm trying to renew my current certificates. My system FreeBSD 12.3-RELEASE-p7 amd64. My version soft: rust-1.63.0 =3D up-to-date with index py39-certbot-1.31.0,1 =3D up-to-date with index py39-cryptography-38.0.1 =3D up-to-date with index py39-josepy-1.13.0 =3D up-to-date with index py39-openssl-20.0.1,1 =3D up-to-date with index I'm running certificate updates. # certbot -q renew --allow-subset-of-names Traceback (most recent call last): File "/usr/local/bin/certbot", line 33, in sys.exit(load_entry_point('certbot=3D=3D1.31.0', 'console_scripts', 'certbo= t')()) File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load module =3D import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_modu= le return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in from certbot._internal import main as internal_main File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", li= ne 19, in import josepy as jose File "/usr/local/lib/python3.9/site-packages/josepy/init.py", line 40, in from josepy.json_util import ( File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line 14,= in from OpenSSL import crypto File "/usr/local/lib/python3.9/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import crypto, SSL File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py", line 14, in from cryptography import utils, x509 File "/usr/local/lib/python3.9/site-packages/cryptography/x509/init.py", li= ne 6, in from cryptography.x509 import certificate_transparency File "/usr/local/lib/python3.9/site-packages/cryptography/x509/certificate_trans= parency.py", line 10, in from cryptography.hazmat.bindings._rust import x509 as rust_x509 ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location) Same error on the system, FreeBSD 13.1-RELEASE-p2 amd64. How to fix? --=20 You are receiving this mail because: You are the assignee for the bug.=