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

letsencrypt-auto Error "virtualenv: command not found" On Fresh Installed CentOS 6 #1204

Closed
ghost opened this Issue Oct 29, 2015 · 7 comments

Comments

Projects
None yet
5 participants
@ghost

ghost commented Oct 29, 2015

Logs:

# ./letsencrypt-auto -v
Bootstrapping dependencies for RedHat-based OSes...
yum is /usr/bin/yum
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.muzzy.org.uk
 * extras: mirrors.vooservers.com
 * updates: mirrors.ukfast.co.uk
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package python-2.6.6-64.el6.x86_64 already installed and latest version
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
No package python-virtualenv available.
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
Package gcc-4.4.7-16.el6.x86_64 already installed and latest version
Package dialog-1.1-9.20080819.1.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-42.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package ca-certificates-2015.2.4-65.0.1.el6_6.noarch already installed and latest version
Nothing to do
Creating virtual environment...
./letsencrypt-auto: line 67: virtualenv: command not found
@TheNavigat

This comment has been minimized.

Show comment
Hide comment
@TheNavigat

TheNavigat Oct 30, 2015

Contributor

Reminds me with the problems we had with installing development dependencies for HTTPS Everywhere.

As far as I know, pip can install virtualenv correctly. I believe what should be done is to move virtualenv to a requirements list and then use pip to install that, analogous to what's done in HTTPS Everywhere, https://github.com/EFForg/https-everywhere/blob/master/install-dev-dependencies.sh.

Contributor

TheNavigat commented Oct 30, 2015

Reminds me with the problems we had with installing development dependencies for HTTPS Everywhere.

As far as I know, pip can install virtualenv correctly. I believe what should be done is to move virtualenv to a requirements list and then use pip to install that, analogous to what's done in HTTPS Everywhere, https://github.com/EFForg/https-everywhere/blob/master/install-dev-dependencies.sh.

@TheNavigat

This comment has been minimized.

Show comment
Hide comment
@TheNavigat

TheNavigat Oct 30, 2015

Contributor

@centminmod I don't think so.

No package python-virtualenv available.
Contributor

TheNavigat commented Oct 30, 2015

@centminmod I don't think so.

No package python-virtualenv available.
@centminmod

This comment has been minimized.

Show comment
Hide comment
@centminmod

centminmod Oct 30, 2015

well partially related #1232 as python-virtualenv is not available in CentOS 6 base repo unless you install EPEL yum repo which probably needs to be in required software requirements in manual/documentation

EPEL required for python-virtualenv package not that it matters as that is python 2.6 based not python 2.7 based

centminmod commented Oct 30, 2015

well partially related #1232 as python-virtualenv is not available in CentOS 6 base repo unless you install EPEL yum repo which probably needs to be in required software requirements in manual/documentation

EPEL required for python-virtualenv package not that it matters as that is python 2.6 based not python 2.7 based

@TheNavigat

This comment has been minimized.

Show comment
Hide comment
@TheNavigat

TheNavigat Oct 30, 2015

Contributor

In that sense I believe you are correct.

Contributor

TheNavigat commented Oct 30, 2015

In that sense I believe you are correct.

@trialuser

This comment has been minimized.

Show comment
Hide comment
@trialuser

trialuser Jul 28, 2017

My "solution" - there was a package python27-virtualenv installed, I've just only created the link for virtualenv:

[root@ip-10-0-0-171 ~]# which virtualenv-2.7
/usr/bin/virtualenv-2.7
[root@ip-10-0-0-171 ~]# ln -s /usr/bin/virtualenv-2.7 /usr/bin/virtualenv

trialuser commented Jul 28, 2017

My "solution" - there was a package python27-virtualenv installed, I've just only created the link for virtualenv:

[root@ip-10-0-0-171 ~]# which virtualenv-2.7
/usr/bin/virtualenv-2.7
[root@ip-10-0-0-171 ~]# ln -s /usr/bin/virtualenv-2.7 /usr/bin/virtualenv

@scionGbh

This comment has been minimized.

Show comment
Hide comment
@scionGbh

scionGbh Jun 3, 2018

I had the same issue and I solved by removing epel-release and reinstalled
sudo yum remove epel-release
sudo yum install epel-release

Then run
./certbot-auto
It will install all dependencies it needs.

in my case I did run
./certbot-auto --nginx --redirect

that command create my SSL cert based on nginx and add the proper redirect rule to my nginx.conf

if ($scheme = http) {
return 301 https://$server_name$request_uri;
}

now its working good.

scionGbh commented Jun 3, 2018

I had the same issue and I solved by removing epel-release and reinstalled
sudo yum remove epel-release
sudo yum install epel-release

Then run
./certbot-auto
It will install all dependencies it needs.

in my case I did run
./certbot-auto --nginx --redirect

that command create my SSL cert based on nginx and add the proper redirect rule to my nginx.conf

if ($scheme = http) {
return 301 https://$server_name$request_uri;
}

now its working good.

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