Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2023 17:19:50 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        questions <questions@freebsd.org>
Subject:   Re: Broken: certbot after portupgrade
Message-ID:  <CAAdA2WM%2BnZccqnDCAEM0zTDWayg8=m5=uqufNjEGTK6VLsH_MA@mail.gmail.com>
In-Reply-To: <CAAdA2WNsAzZ=RNgD1m4v7_hHAbH0KKGe0sBLYovadSnHAHU-cA@mail.gmail.com>
References:  <E1pMy8Z-000MhC-2V@svr.fem-international.org> <CAAdA2WNsAzZ=RNgD1m4v7_hHAbH0KKGe0sBLYovadSnHAHU-cA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Feb 1, 2023 at 11:37 AM Odhiambo Washington <odhiambo@gmail.com>
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 <module>
>     sys.exit(load_entry_point('certbot==2.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 = 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 "<frozen importlib._bootstrap>", line 1030, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 986, in
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in
> _call_with_frames_removed
>   File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6,
> in <module>
>     from certbot._internal import main as internal_main
>   File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py",
> line 19, in <module>
>     import josepy as jose
>   File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line
> 40, in <module>
>     from josepy.json_util import (
>   File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line
> 14, in <module>
>     from OpenSSL import crypto
>   File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line
> 8, in <module>
>     from OpenSSL import SSL, crypto
>   File "/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 19,
> in <module>
>     from OpenSSL.crypto import (
>   File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py", line
> 3224, in <module>
>     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 :-)




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 1, 2023 at 11:37 AM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I did a &#39;portupgrade -a&#39; and certbott ended up getting broken.<div>My Google-fu doesn&#39;t seem to point me to a solution,</div><div><br></div><div>Any clues on how to fix this will be highly appreciated.</div><div><br><div class="gmail_quote"><br></div><div class="gmail_quote">Traceback (most recent call last):<br>
  File &quot;/usr/local/bin/certbot&quot;, line 33, in &lt;module&gt;<br>
    sys.exit(load_entry_point(&#39;certbot==2.2.0&#39;, &#39;console_scripts&#39;, &#39;certbot&#39;)())<br>
  File &quot;/usr/local/bin/certbot&quot;, line 25, in importlib_load_entry_point<br>
    return next(matches).load()<br>
  File &quot;/usr/local/lib/python3.9/importlib/metadata.py&quot;, line 86, in load<br>
    module = import_module(match.group(&#39;module&#39;))<br>
  File &quot;/usr/local/lib/python3.9/importlib/__init__.py&quot;, line 127, in import_module<br>
    return _bootstrap._gcd_import(name[level:], package, level)<br>
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1030, in _gcd_import<br>
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in _find_and_load<br>
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 986, in _find_and_load_unlocked<br>
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 680, in _load_unlocked<br>
  File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 850, in exec_module<br>
  File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 228, in _call_with_frames_removed<br>
  File &quot;/usr/local/lib/python3.9/site-packages/certbot/main.py&quot;, line 6, in &lt;module&gt;<br>
    from certbot._internal import main as internal_main<br>
  File &quot;/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py&quot;, line 19, in &lt;module&gt;<br>
    import josepy as jose<br>
  File &quot;/usr/local/lib/python3.9/site-packages/josepy/__init__.py&quot;, line 40, in &lt;module&gt;<br>
    from josepy.json_util import (<br>
  File &quot;/usr/local/lib/python3.9/site-packages/josepy/json_util.py&quot;, line 14, in &lt;module&gt;<br>
    from OpenSSL import crypto<br>
  File &quot;/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py&quot;, line 8, in &lt;module&gt;<br>
    from OpenSSL import SSL, crypto<br>
  File &quot;/usr/local/lib/python3.9/site-packages/OpenSSL/SSL.py&quot;, line 19, in &lt;module&gt;<br>
    from OpenSSL.crypto import (<br>
  File &quot;/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py&quot;, line 3224, in &lt;module&gt;<br>
    utils.deprecated(<br>
TypeError: deprecated() got an unexpected keyword argument &#39;name&#39;<br></div></div></div></blockquote><div></div></div><div><br></div>Answering myself.<div><br></div><div>I found this: <a href="https://github.com/pyca/pyopenssl/issues/1154#issuecomment-1269882738">https://github.com/pyca/pyopenssl/issues/1154#issuecomment-1269882738</a></div><div><br></div><div>&quot;<span style="background-color:rgb(13,17,23);color:rgb(201,209,217);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,&quot;Noto Sans&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;font-size:14px">pyOpenSSL installed, what automatically installs the right version of cryptography&quot;</span></div><div><div><br></div><div>Following the steps leads to a working certbot :-)</div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div></div></div></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WM%2BnZccqnDCAEM0zTDWayg8=m5=uqufNjEGTK6VLsH_MA>