Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 7 No module named contrib.pyopenssl #4540

Closed
plutext opened this issue Apr 23, 2017 · 8 comments
Closed

CentOS 7 No module named contrib.pyopenssl #4540

plutext opened this issue Apr 23, 2017 · 8 comments

Comments

@plutext
Copy link

plutext commented Apr 23, 2017

My operating system is (include version):

CentOS Linux release 7.0.1406

I installed Certbot with (certbot-auto, OS package manager, pip, etc):

following https://certbot.eff.org/#centosrhel7-nginx

sudo yum install certbot

I ran this command and it produced this output:

certbot certonly --webroot -w /opt/Foo -d www.foo.com
Traceback (most recent call last):
File "/usr/bin/certbot", line 9, in
load_entry_point('certbot==0.12.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 21, in
from certbot import client
File "/usr/lib/python2.7/site-packages/certbot/client.py", line 10, in
from acme import client as acme_client
File "/usr/lib/python2.7/site-packages/acme/client.py", line 33, in
import urllib3.contrib.pyopenssl # pylint: disable=import-error
ImportError: No module named contrib.pyopenssl

Certbot's behavior differed from what I expected because:

ImportError: No module named contrib.pyopenssl

Here is a Certbot log showing the issue (if available):

Logs are stored in /var/log/letsencrypt by default. Feel free to redact domains, e-mail and IP addresses as you see fit.

No log file

@plutext
Copy link
Author

plutext commented Apr 24, 2017

Workaround:

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto certonly --webroot -w /opt/Foo -d www.foo.com

@plutext
Copy link
Author

plutext commented Apr 24, 2017

This is an EC2 machine created from CentOS 7 x86_64 (2014_09_29) EBS HVM-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-d2a117ba.2 (ami-e4ff5c93)

@yan12125
Copy link
Collaborator

I guess CentOS 7 comes with older requests or urllib3. Could you check versions of the two?

Ref: #4537

@hogarthj
Copy link
Collaborator

That's an ancient version of centos and we only support the current version in EPEL.

If you could do a yum update that would be helpful... also enable epel-testing to get the current 0.13.0 package which hasn't reached stable yet.

@tisc0
Copy link

tisc0 commented Jun 12, 2017

Also having the problem.
context :
pyOpenSSL 0.13.1-3.el7 installed from @base
certbot 0.14.1-3.el7 from @epel
CentOS Linux release 7.3.1611 (Core) freshly updated
Really problematic to put certbot in production.
Thanks in advance, ask if you need anything like feedsback or tests.

@hogarthj
Copy link
Collaborator

@tisc0 "also having the problem" is not that helpful ...

The exact steps you carried out to reproduce this along with the exact error messages or stacktraces would be helpful.

@tisc0
Copy link

tisc0 commented Jun 15, 2017

Oh sorry, my mistake, I was sure I posted on the issue #4514 , and then got disturbed, and thought my comment disappeared from over there, and reposted, and lost the one here !
onz

@SwartzCr
Copy link
Contributor

I'm going to close this issue in favor of #4514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants