hello, just noticed that on my plesk 12.5.30 runnin on centos-release-6-8.el6.centos.12.3.x86_64, trying to issue a certificate on a domain via the let’s encrypt extension that once worked fine, now refers the following:
Errore: Installazione del certificato SSL
Let's Encrypt non riuscita: Failed letsencrypt execution: Could not find
platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/usr/local/psa/var/modules/letsencrypt/venv/bin/certbot", line 7, in <module>
from certbot.main import main
File
"/usr/local/psa/var/modules/letsencrypt/venv.LrOn7/lib/python2.7/site-packages/certbot/main.py",
line 2, in <module>
from __future__ import print_function
ImportError: No module named __future__
The extension was originally installed via plesk extension installer, since I want to avoid any extra mess installing from external repos or sources to maximize stability.
If I understand correctly, the plesk extension includes a python2.7 copy, is it possible that this pack lacks the support for the required module it refers to?
unfortunately parallels also obfuscates their PHP code (which is fine) so it can be quite hard to figure out errors however i don’t believe the issue is with PHP code rather a broken python on your system
the python actually available seems to be 2.6.6
# python --version
Python 2.6.6
and it’s available here:
# whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/bin/python2.6-config /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gz
so the questions are:
the extension need 2.7 or also 2.6 is ok? cause if it’s ok 2.6, probably it’s true that python setup is not working well
why I also have what seems to be a 2.7 pack under
/usr/local/psa/var/modules/letsencrypt/venv/bin
/usr/local/psa/var/modules/letsencrypt/venv/lib
Do I need to configure the script telling it to use that specific pack?