From nobody Wed Feb 01 14:19:50 2023 X-Original-To: questions@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 4P6PG63vqjz3cLDb for ; Wed, 1 Feb 2023 14:20:30 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P6PG54qPVz4Gk3 for ; Wed, 1 Feb 2023 14:20:29 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=XfRqjP6Q; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::12d as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x12d.google.com with SMTP id u12so18943877lfq.0 for ; Wed, 01 Feb 2023 06:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=lohwFB5SMERdGupiL7nxNyt3E+UDdq92mb8Rr4X8iYI=; b=XfRqjP6QMnuz3o1xXNxyZT5YxOd+y9bOtQFXeyi+mtQhzH/8t+GWR+1pRWAva0Pjwk QE8E/P9PWgnb/ndnqjRj2nKQy7cDsa5ah8y6V1yxIuFvCEVWY/hIMlOlBvsPk3DH5Lfw F68S57JDM2DCdamYsWoLzX+B6DlAI3Xl3LNzb6GMDcXY3DWwOgP1ctzcfyAOuXSfgjJV DsOP9cov5fJQJBdxK6cF5qgxj7ACwW8UVj7RuWPg1/Qu3ZWC0yrco94cB5Ink2DGuNbP tszzO55ApSP6zLq8GCLXmdo1QaQRvW/e9kuidTKWCskTV3j0xSxpdZCz4QtJXik1WgvI p99g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lohwFB5SMERdGupiL7nxNyt3E+UDdq92mb8Rr4X8iYI=; b=bajKe7MbptmO3G0gHsdDodvCmA+mOTZyvy5zWptma4NkPYh0ZcWT3LIVgBaW/feQxF BpqunFATOxxfGnzvTz89DD9ATcFsFbXRlTgx9cavBwMPNCew1W53BSvBDzqVWbvK9dwF HDvlefgG6ZHFH+cw+9oLuej2OLvpEWLetgqn5dgVLz5cyhgrR83HFL+glqY+RXs5DK0L MQ0cItGeeaNygNFeM4tW7V9u53V12TWE64eLskxLCaltEohQKB8X1kTZwFR38JqddOVn ApIvGMvgzBCetKXAzVYqZJPyLYRUIztpztGedwxhpHTOB6x7ix8pY9icJCh/LjiZdxF8 ev2Q== X-Gm-Message-State: AO0yUKV0z+mI4DS7fJdNIK2TIdBSF7zL7jGR2fJyHtQTSjfaDvrzUdUt 4d2nJkpLMxAmlUjctNvjGT7zyX5yqSEBNvkcelqdG2xdK7noA5tp X-Google-Smtp-Source: AK7set9QlLlAJ7EqmfyQilMN6v9nBEP+JClV7Sid7Bxs2eGlp4Zr2IwkzwlfWyGa4G/6heBd5I81K46BFhNI+G8KBNw= X-Received: by 2002:a05:6512:214b:b0:494:842e:3f6 with SMTP id s11-20020a056512214b00b00494842e03f6mr375778lfr.225.1675261227707; Wed, 01 Feb 2023 06:20:27 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Odhiambo Washington Date: Wed, 1 Feb 2023 17:19:50 +0300 Message-ID: Subject: Re: Broken: certbot after portupgrade To: questions Content-Type: multipart/alternative; boundary="0000000000006231d305f3a426e1" X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.961]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12d:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4P6PG54qPVz4Gk3 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --0000000000006231d305f3a426e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 1, 2023 at 11:37 AM Odhiambo Washington wrote: > I did a 'portupgrade -a' and certbott ended up getting broken. > My Google-fu doesn't seem to point me to a solution, > > Any clues on how to fix this will be highly appreciated. > > > Traceback (most recent call last): > File "/usr/local/bin/certbot", line 33, in > sys.exit(load_entry_point('certbot=3D=3D2.2.0', 'console_scripts', > 'certbot')()) > 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_module > 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"= , > line 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 SSL, crypto > File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 19, > in > from OpenSSL.crypto import ( > File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py", line > 3224, in > utils.deprecated( > TypeError: deprecated() got an unexpected keyword argument 'name' > Answering myself. I found this: https://github.com/pyca/pyopenssl/issues/1154#issuecomment-1269882738 "pyOpenSSL installed, what automatically installs the right version of cryptography" Following the steps leads to a working certbot :-) --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) --0000000000006231d305f3a426e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Feb 1, 2023 at 11:37 AM Odhia= mbo Washington <= odhiambo@gmail.com> wrote:
I did a 'portupgrade -a' and cer= tbott ended up getting broken.
My Google-fu doesn't seem to point m= e to a solution,

Any clues on how to fix this will= be highly appreciated.


=
Traceback (most recent call last):
=C2=A0 File "/usr/local/bin/certbot", line 33, in <module><= br> =C2=A0 =C2=A0 sys.exit(load_entry_point('certbot=3D=3D2.2.0', '= console_scripts', 'certbot')())
=C2=A0 File "/usr/local/bin/certbot", line 25, in importlib_load_= entry_point
=C2=A0 =C2=A0 return next(matches).load()
=C2=A0 File "/usr/local/lib/python3.9/importlib/metadata.py", lin= e 86, in load
=C2=A0 =C2=A0 module =3D import_module(match.group('module'))
=C2=A0 File "/usr/local/lib/python3.9/importlib/__init__.py", lin= e 127, in import_module
=C2=A0 =C2=A0 return _bootstrap._gcd_import(name[level:], package, level) =C2=A0 File "<frozen importlib._bootstrap>", line 1030, in = _gcd_import
=C2=A0 File "<frozen importlib._bootstrap>", line 1007, in = _find_and_load
=C2=A0 File "<frozen importlib._bootstrap>", line 986, in _= find_and_load_unlocked
=C2=A0 File "<frozen importlib._bootstrap>", line 680, in _= load_unlocked
=C2=A0 File "<frozen importlib._bootstrap_external>", line = 850, in exec_module
=C2=A0 File "<frozen importlib._bootstrap>", line 228, in _= call_with_frames_removed
=C2=A0 File "/usr/local/lib/python3.9/site-packages/certbot/main.py&qu= ot;, line 6, in <module>
=C2=A0 =C2=A0 from certbot._internal import main as internal_main
=C2=A0 File "/usr/local/lib/python3.9/site-packages/certbot/_internal/= main.py", line 19, in <module>
=C2=A0 =C2=A0 import josepy as jose
=C2=A0 File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py= ", line 40, in <module>
=C2=A0 =C2=A0 from josepy.json_util import (
=C2=A0 File "/usr/local/lib/python3.9/site-packages/josepy/json_util.p= y", line 14, in <module>
=C2=A0 =C2=A0 from OpenSSL import crypto
=C2=A0 File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.p= y", line 8, in <module>
=C2=A0 =C2=A0 from OpenSSL import SSL, crypto
=C2=A0 File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py&quo= t;, line 19, in <module>
=C2=A0 =C2=A0 from OpenSSL.crypto import (
=C2=A0 File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py&= quot;, line 3224, in <module>
=C2=A0 =C2=A0 utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Answering = myself.


"pyOpenSSL installed, what automatic= ally installs the right version of cryptography"

Following the steps leads to a working certbot :-)




--
Best regards,
Odhiambo WASH= INGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.",=C2=A0egrep -v '^$|= ^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF= =C2=A0:-)
--0000000000006231d305f3a426e1--