[SOLVED] Cannot find any pythons

Hi all

I have an old Vm for testing Haproxy & Lets Encrypt running

  • Centos 6.9
  • Python 2.6
  • Python 3.4

We have not used this VM for a while and coming back to it today letsencrypt-auto has stopped working though because it cant find python anymore… I have run out of ideas on how to get this working. Running python on the command line for the same user (root) finds python fine. ANY help would be great. /usr/bin/python* for this broken VM and for the working live cluster look identical.

This is the output of letsencrypt-auto

Bootstrapping dependencies for RedHat-based OSes that will use Python3... (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
yum is hashed (/usr/bin/yum)
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.clustered.net
 * epel: www.mirrorservice.org
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.sov.uk.goscomb.net
Package gcc-4.4.7-18.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-1.0.1e-57.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.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 redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
Package python34-3.4.5-4.el6.x86_64 already installed and latest version
Package python34-devel-3.4.5-4.el6.x86_64 already installed and latest version
Package python34-tools-3.4.5-4.el6.x86_64 already installed and latest version
Nothing to do
WARNING: couldn't find Python 2.6+ to check for updates.
Creating virtual environment...
Cannot find any Pythons; please install one!
Mon 22 Jan 2018 12:55:18 GMT Error creating certificate with error code 0, exit script...

Ok fixed it.

I installed python 2.7 using scl

yum update
yum install centos-release-scl  
yum install python27 
yum install python27-python-pip

Why this used to work when I first set it up ages ago and then it didn’t, I dont know

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