LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-21-2020, 09:51 AM   #1
sse450
LQ Newbie
 
Registered: Feb 2010
Distribution: CentOS 8
Posts: 8

Rep: Reputation: 0
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'


Following an update on my CentOS 8, "certbot renew" cannot run and throws the following error:

Code:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==1.10.1', 'console_scripts', 'certbot')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
  File "/usr/lib/python3.6/site-packages/certbot/_internal/main.py", line 10, in <module>
    import josepy as jose
  File "/usr/lib/python3.6/site-packages/josepy/__init__.py", line 41, in <module>
    from josepy.interfaces import JSONDeSerializable
  File "/usr/lib/python3.6/site-packages/josepy/interfaces.py", line 7, in <module>
    from josepy import errors, util
  File "/usr/lib/python3.6/site-packages/josepy/util.py", line 7, in <module>
    import OpenSSL
  File "/usr/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3.6/site-packages/OpenSSL/SSL.py", line 669, in <module>
    _lib.Cryptography_HAS_TLSEXT_HOSTNAME, "SNI not available"
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'
I have no idea what the culprit is. Also, probably related with this issue, any dnf command gives a warning as first line:

Code:
Failed loading plugin "spacewalk": module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'
I would appreciate any help.

Thank you.
 
Old 12-21-2020, 12:15 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
I guess you need to upgrade that lib [python] module too. And probably others.
 
1 members found this post helpful.
Old 12-21-2020, 12:40 PM   #3
sse450
LQ Newbie
 
Registered: Feb 2010
Distribution: CentOS 8
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
I guess you need to upgrade that lib [python] module too. And probably others.
Could you please elaborate? Which module should I upgrade? "dnf update" says nothing to upgrade.

Thank you for replying.
 
Old 12-21-2020, 12:52 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
probably: pyOpenSSL is the name of the package.
but you can look for the error message on the net and you will see some alternatives, like:
pip3 install -U cryptography
 
1 members found this post helpful.
Old 12-21-2020, 12:59 PM   #5
sse450
LQ Newbie
 
Registered: Feb 2010
Distribution: CentOS 8
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
probably: pyOpenSSL is the name of the package.
but you can look for the error message on the net and you will see some alternatives, like:
pip3 install -U cryptography
Dear pan64, that was it. All fixed.

You saved my life. I am grateful.
 
Old 12-21-2020, 03:53 PM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
good to head that.
If your problem is solved please mark the thread solved.
Also if you wish to say thanks just click on yes.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python :: AttributeError: 'module' object has no attribute 'interfaces' golden_boy615 Programming 4 12-19-2014 09:22 AM
Python: AttributeError: 'module' object has no attribute 'main' mdooligan Linux - Software 1 09-29-2013 09:30 PM
AttributeError: 'module' object has no attribute 'error' cmnorton Programming 1 04-09-2009 05:45 PM
python: AttributeError: 'list' object has no attribute 'Append' browny_amiga Programming 3 01-12-2009 04:58 AM
gentoo env-update AttributeError: 'module' object has no attribute 'env_update' linux_mopper Linux - Newbie 2 08-06-2008 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration