0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_blitzortung
0003|+ echo 1
0004|+ echo 2
0005|++ awk '$1 <= 4'
0006|++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
0007|++ cut -f 2-
0008|+ RESULTTODELETE=
0009|++ echo ''
0010|++ sed 's, ,\ ,g'
0011|+ RESULTTODELETE2=
0012|+ echo ''
0013|+ xargs rm -rf
0014|+ echo 3
0015|+ sudo pip3 cache purge
0016|Files removed: 5
0017|+ echo 4
0018|+ sudo pip3 install --upgrade pip
0019|Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
0020|Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (23.2.1)
0021|DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
0022|WARNING Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
0023|+ echo 5
0024|+ sudo pip3 install --force-reinstall --upgrade websockets
0025|Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
0026|Collecting websockets
0027|Downloading websockets-11.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (130 kB)
0028|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.4/130.4 kB 920.2 kB/s eta 0:00:00
0029|DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
0030|Installing collected packages: websockets
0031|Attempting uninstall: websockets
0032|Found existing installation: websockets 11.0.3
0033|Uninstalling websockets-11.0.3:
0034|Successfully uninstalled websockets-11.0.3
0035|Successfully installed websockets-11.0.3
0036|WARNING Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
0037|+ echo 6
0038|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end blitzortung
0039|+ rm /tmp/jeedom_install_in_progress_blitzortung
0040|+ echo '*******************End of package installation******************'
0041|*******************End of package installation******************
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_blitzortung
+ echo 1
+ echo 2
++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ cut -f 2-
++ awk '$1 <= 4'
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ xargs rm -rf
+ echo ''
+ echo 3
+ sudo pip3 cache purge
Files removed: 49
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (23.1.2)
Collecting pip
Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 16.9 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.1.2
Uninstalling pip-23.1.2:
Successfully uninstalled pip-23.1.2
Successfully installed pip-23.2.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade websockets
Collecting websockets
Downloading websockets-11.0.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.7/129.7 kB 2.6 MB/s eta 0:00:00
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: websockets
Successfully installed websockets-11.0.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 6
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end blitzortung
+ rm /tmp/jeedom_install_in_progress_blitzortung
+ echo '*******************End of package installation******************'
*******************End of package installation******************
J’ai été surpris aussi de voir ça. C’est la partie packages.json qui gère. J’aurais imaginé qu’il ne ferait pas d’installation si le package existait déjà, d’autant plus dans la même version. Sûrement un truc à remonter à Loïc.
Dans un premier temps tu devrais faire un venv pour tes dépendances (il y a plusieurs posts dans la section dev où on en parle) et tu peux forcer une version de websocket du coup pour ton plugin, cela devrait fonctionner sur debian 11
Plus tard quand tu auras le temps, tu/on cherchera/s pourquoi.
J’ai vu pas mal de truc sur les venv mais pas trop penché sur la question. Je pensais que la gestion avec package.json allait m’aider à régler les difficultés des dépendances. Mais non .
C est egalement étonnant que dans ton fichier info tu aies "hasDependency": false mais qu il y ait quand meme une install qui de lance sur les dependances, non …!?
Je n’ai pas vu dans les posts de Loic qu’il fallait aussi indiquer qu’il y avait des dépendances, cette info doit justement être pour l’ancienne méthode d’installation des dépendances.
Je viens de monter une installation from scratch depuis l’image Jeedom jeedom-debian-bullseye-amd64-4.3.17.iso
Lors de l’activation du package, les éléments manquant s’installent :
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_blitzortung
+ echo 1
+ echo 2
++ cut -f 2-
++ awk '$1 <= 4'
++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
+ RESULTTODELETE=
++ sed 's, ,\ ,g'
++ echo ''
+ RESULTTODELETE2=
+ xargs rm -rf
+ echo ''
+ echo 3
+ sudo pip3 cache purge
ERROR: No matching packages
+ echo 4
+ sudo pip3 install --upgrade pip
Collecting pip
Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.3.4
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-23.2.1
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade websockets
Collecting websockets
Downloading websockets-11.0.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.7/129.7 kB 892.9 kB/s eta 0:00:00
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: websockets
Successfully installed websockets-11.0.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 6
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end blitzortung
+ rm /tmp/jeedom_install_in_progress_blitzortung
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Dans les logs j’ai une autre erreur : Error: importing module from jeedom folder
Surement un truc foireux dans l’image et un problème de communication réseau de mon coté durant l’installation.
Du coup je suis encore plus paumé pour trouver le soucis. Me faudrait du support de personnes qui maitrise python et les méandres de python2 / python3 / pip / pip2 / pip3 / venv et j’en passe surement
Tu peux deja faire un peu de menage dans le dossier/fichier jeedom pour ne garder que ce dont tu as besoin, et donc supprimer les import modules inutiles dans le fichier (et donc potentiellement dans l install)
EDIT :
Ah, vu il est dans le jeedom.py !
Pas contre le pyudev est bien nécessaire car importé dans le jeedom.py (je présume) et chez moi il ne s’était pas installé