Broadlink problème de dépendances - résolu

Bonjour,

Pour ceux qui comme moi on attendu Mars 2020 avant d’installer la dernière version du plugin Broadlink (ajout de la compatibilité Jeedom V4), et pour qui le lancement des dépendances sortent en erreur (sur un Jeedom V3.3.39 et une Debian 9 - Stretch) :

Symptomes :

********************************************************
*             Installation des dépendances             *
********************************************************
...
python-serial is already the newest version (3.2.1-1).
python-dev is already the newest version (2.7.13-2).
python-pip is already the newest version (9.0.1-2+deb9u1).
python-pyudev is already the newest version (0.21.0-1).
python-requests is already the newest version (2.12.4-1).
libudev-dev is already the newest version (232-25+deb9u12).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Collecting pycrypto
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py): started
Building wheel for pycrypto (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9664ltxd/pycrypto/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9664ltxd/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-m5e2gwh5
cwd: /tmp/pip-install-9664ltxd/pycrypto/
Complete output (189 lines):
...
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/tmp/pip-install-9664ltxd/pycrypto':
configure: error: cannot run C compiled programs.
...

Bref : install du module python pycrypto qui sort en erreur.

Relancer l’install en ligne de commande ( pip3 install pycrypto) donnait bien sur la même erreur.

Diagnostique après quelques recherches/essais :
pip ne peut lancer d’executables à partir de /tmp (dir temporaire par défaut) car il est monté en noexec par sécurité.
Bref… un classique…

SOLUTION :
pip3 install --build /var/tmp pycrypto

Et hop… install & donc dépendances OK.
Module relancé OK

Pour info pour les devs : le module python pycrypto est indiqué comme dead et sans mise à jour depuis 2013 (pour du cryptage ?!) recommandation de remplacer par ‹ pycryptodome › ?

3 « J'aime »