Line 558: virtualenv: command not found


#1

I am trying to renew my certificate and keep getting the error line 558: virtualenv: command not found when I run certbot-auto

Any help would be greatly appreciated!

Please fill out the fields below so we can help you better.

My domain is:
greatconjunction.org
I ran this command:
/opt/letsencrypt/certbot-auto --debug
It produced this output:
Bootstrapping dependencies via Amazon Linux…
yum is /usr/bin/yum
Loaded plugins: priorities, update-motd, upgrade-helper
970 packages excluded due to repository priority protections
Package gcc-4.8.3-3.20.amzn1.noarch already installed and latest version
Package dialog-1.1-9.20080819.1.5.amzn1.x86_64 already installed and latest version
Package augeas-libs-1.0.0-5.7.amzn1.x86_64 already installed and latest version
Package 1:openssl-1.0.1k-15.93.amzn1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.1k-15.93.amzn1.x86_64 already installed and latest version
Package libffi-devel-3.0.13-11.4.amzn1.x86_64 already installed and latest version
Package system-rpm-config-9.0.3-42.27.amzn1.noarch already installed and latest version
Package ca-certificates-2015.2.6-65.0.1.15.amzn1.noarch already installed and latest version
Package python27-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-devel-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-virtualenv-12.0.7-1.12.amzn1.noarch already installed and latest version
Package python27-tools-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-pip-6.1.1-1.21.amzn1.noarch already installed and latest version
Nothing to do
Creating virtual environment…
/opt/letsencrypt/certbot-auto: line 558: virtualenv: command not found
My operating system is (include version):
Linux ip-172-31-9-87 4.4.15-25.57.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
My web server is (include version):

My hosting provider, if applicable, is:
Amazon AWS
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):


#2

Based on this comment, try the following commands:

rm -rf ${XDG_DATA_HOME:-~/.local/share}/letsencrypt
yum install python-devel python-pip python-tools python-virtualenv
/opt/letsencrypt/certbot-auto --debug

Hope this helps!


#3

Thanks, but I’m still getting the same response. When I ran the second command I got this response:

Loaded plugins: priorities, update-motd, upgrade-helper
970 packages excluded due to repository priority protections
Package python26-devel-2.6.9-2.88.amzn1.x86_64 already installed and latest version
Package python-pip-7.1.0-1.el6.noarch already installed and latest version
No package python-tools available.
Package python-virtualenv-1.10.1-1.el6.noarch is obsoleted by python26-virtualenv-12.0.7-1.12.amzn1.noarch which is already installed
Nothing to do

and after the final command:

Bootstrapping dependencies via Amazon Linux…
yum is /usr/bin/yum
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
970 packages excluded due to repository priority protections
Package gcc-4.8.3-3.20.amzn1.noarch already installed and latest version
Package dialog-1.1-9.20080819.1.5.amzn1.x86_64 already installed and latest version
Package augeas-libs-1.0.0-5.7.amzn1.x86_64 already installed and latest version
Package 1:openssl-1.0.1k-15.93.amzn1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.1k-15.93.amzn1.x86_64 already installed and latest version
Package libffi-devel-3.0.13-11.4.amzn1.x86_64 already installed and latest version
Package system-rpm-config-9.0.3-42.27.amzn1.noarch already installed and latest version
Package ca-certificates-2015.2.6-65.0.1.15.amzn1.noarch already installed and latest version
Package python27-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-devel-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-virtualenv-12.0.7-1.12.amzn1.noarch already installed and latest version
Package python27-tools-2.7.12-2.120.amzn1.x86_64 already installed and latest version
Package python27-pip-6.1.1-1.21.amzn1.noarch already installed and latest version
Nothing to do
Creating virtual environment…
/opt/letsencrypt/certbot-auto: line 558: virtualenv: command not found

Thank you for your help!


#4

Check on the shell if there is a virtualenv command, which may be called virtualenv2 or virtualenv2.6 or similiar. Take care NOT to use a virtualenv3 command (there is python 2.x and 3.x available, we need the 2.x series). If there is, you could fix the certbot-auto script to use this command (replace the name at line 558) and file a bug against the cerbot repo.


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.