Matériel: VirtualBox sur un Macbook Version de YunoHost: 3.8.2+202004292117 J’ai accès à mon serveur : En SSH | Par la webadmin Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non Si oui, expliquer:
Description du problème
Erreur avec la lib pythonz?
KeyError: 'HOME'
raise KeyError(key)
File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
PATH_HOME = os.environ.get('PYTHONZ_HOME') or os.path.join(os.environ['HOME'], '.pythonz')
File "/var/www/reel2bits/.pythonz/pythonz/define.py", line 33, in
from pythonz.define import PATH_HOME_ETC, PATH_PYTHONS
File "/var/www/reel2bits/.pythonz/pythonz/__init__.py", line 8, in
from pythonz.installer import install_pythonz
File "/var/www/reel2bits/.pythonz/pythonz_install.py", line 32, in
Traceback (most recent call last):
I guess I don’t really get how those paths are deduced from PYTHONZ_ROOT, PATH_HOME_ETC, PATH_PYTHONS, PYTHONZ_HOME in
pythonz.define import PATH_HOME_ETC, PATH_PYTHONS
File “/var/www/reel2bits/.pythonz/pythonz/define.py”, line 33, in
PATH_HOME = os.environ.get(‘PYTHONZ_HOME’) or os.path.join(os.environ[‘HOME’], ‘.pythonz’)
Well I was thinking maybe that could be due to being on Yunohost 3.8 so I tried to reproduce on my side but nope …
That commit you mention could indeed look related but still, the original issue is pretty clear : export PYTHONZ_ROOT=/var/www/reel2bits/.pythonz means that the var should be available in child processes … yet it complains that it’s undefined … that makes no sense …
Anyway, maybe, can you try to install this from the CLI instead of the webadmin ?