Le problème concerne l’installation de la dépendance python module cryptography.
Il peut y avoir ce problème en fonction de l’architecture du matériel (x86_64/amd64, aarch64/arm64, armv7l/armhf (32 bits) …), de l’OS, et de sa version installé.
D’après le log l’archi est armv7l, et il n’a pas été publié de version pré compilé wheel (.whl) de cryptography 42.0.8 pour le système qui a été installé (sur orange pi).
A titre de comparaison, cryptography est correctement installé avec l’image officielle jeedom x86-64 debian 12 :
+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade cryptography==42.0.8
Collecting cryptography==42.0.8
Downloading cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.3 kB)
Collecting cffi>=1.12 (from cryptography==42.0.8)
Downloading cffi-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography==42.0.8)
Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Downloading cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl (3.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 48.1 MB/s eta 0:00:00
Downloading cffi-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (467 kB)
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pycparser, cffi, cryptography
Successfully installed cffi-1.17.1 cryptography-42.0.8 pycparser-2.22
L’installation des dépendances est défini par :
/var/www/html/plugins/broadlink/plugin_info/packages.json :
{
"apt": {
"libudev-dev": {},
"libffi-dev": {},
"libssl-dev": {}
},
"pip3": {
"wheel": {},
"requests": {},
"cryptography": {
"version": "42.0.8"
}
}
}
Il est possible de tenter d’installer une version différente de cryptography (qui disposerait d’une version pré compilée wheel pour le système installé).
Ce serait moi je tenterais à la place de 42.0.8, différentes versions, par exemple : 2.6.1 ou 3.4.8 ou 35.0.0 ou 40.0.2 ou 41.0.7 ou 44.0.3
Références :
- cryptography · PyPI
- Dependances NOK xiaomihome
- [RTEX] installation dépendances plugin-zigbee Raspberry Pi OS 32-bit armhf – Rust Cryptography
akenad