Error: importing module from jeedom folder (titre déjà utilisé)

Bonjour,

Merci pour la MAJ du plugin.
Je viens de tester la dernière beta (installé depuis Github sur une fresh install Debian 12) et j’ai la même erreur.
Cette erreur semble souvent causée par des dépendances Python manquantes ou mal installées mais j’avoue être un peu perdu avec les venv, il faut que je me mette à jour.
Est-ce que les dépendances nécessaires au module doivent être présentes dans le dossier python_venv ?

Page santé :


Debian à jour :
Capture d'écran 2024-08-15 191006
Preuve que j’ai la dernière version :


Log dépendances :

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_broadlink
0003|+ echo 1
0004|+ echo 2
0005|+ sudo killall apt apt-get unattended-upgr
0006|apt: no process found
0007|apt-get: no process found
0008|unattended-upgr: no process found
0009|+ sudo rm /var/lib/apt/lists/lock
0010|+ sudo rm /var/cache/apt/archives/lock
0011|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0012|+ sudo sudo dpkg --configure -a --force-confdef
0013|+ sudo apt update
0014|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0015|Hit:1 http://deb.debian.org/debian bookworm InRelease
0016|Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
0017|Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
0018|Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
0019|Reading package lists...
0020|Building dependency tree...
0021|Reading state information...
0022|All packages are up to date.
0023|+ echo 3
0024|+ sudo apt install -o Dpkg::Options::=--force-confdef -y libudev-dev
0025|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0026|Reading package lists...
0027|Building dependency tree...
0028|Reading state information...
0029|The following NEW packages will be installed:
0030|libudev-dev
0031|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0032|Need to get 52.5 kB of archives.
0033|After this operation, 144 kB of additional disk space will be used.
0034|Get:1 http://deb.debian.org/debian bookworm/main amd64 libudev-dev amd64 252.26-1~deb12u2 [52.5 kB]
0035|debconf: unable to initialize frontend: Dialog
0036|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0037|debconf: falling back to frontend: Readline
0038|debconf: unable to initialize frontend: Readline
0039|debconf: (This frontend requires a controlling tty.)
0040|debconf: falling back to frontend: Teletype
0041|dpkg-preconfigure: unable to re-open stdin:
0042|Fetched 52.5 kB in 0s (661 kB/s)
0043|Selecting previously unselected package libudev-dev:amd64.
0044|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 73371 files and directories currently installed.)
0045|Preparing to unpack .../libudev-dev_252.26-1~deb12u2_amd64.deb ...
0046|Unpacking libudev-dev:amd64 (252.26-1~deb12u2) ...
0047|Setting up libudev-dev:amd64 (252.26-1~deb12u2) ...
0048|Processing triggers for man-db (2.11.2-2) ...
0049|+ echo 4
0050|+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-serial
0051|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0052|Reading package lists...
0053|Building dependency tree...
0054|Reading state information...
0055|Suggested packages:
0056|python3-wxgtk3.0 | python3-wxgtk
0057|The following NEW packages will be installed:
0058|python3-serial
0059|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0060|Need to get 89.4 kB of archives.
0061|After this operation, 470 kB of additional disk space will be used.
0062|Get:1 http://deb.debian.org/debian bookworm/main amd64 python3-serial all 3.5-1.1 [89.4 kB]
0063|debconf: unable to initialize frontend: Dialog
0064|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0065|debconf: falling back to frontend: Readline
0066|debconf: unable to initialize frontend: Readline
0067|debconf: (This frontend requires a controlling tty.)
0068|debconf: falling back to frontend: Teletype
0069|dpkg-preconfigure: unable to re-open stdin:
0070|Fetched 89.4 kB in 0s (1035 kB/s)
0071|Selecting previously unselected package python3-serial.
0072|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 73447 files and directories currently installed.)
0073|Preparing to unpack .../python3-serial_3.5-1.1_all.deb ...
0074|Unpacking python3-serial (3.5-1.1) ...
0075|Setting up python3-serial (3.5-1.1) ...
0076|+ echo 5
0077|+ sudo apt install -o Dpkg::Options::=--force-confdef -y libffi-dev
0078|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0079|Reading package lists...
0080|Building dependency tree...
0081|Reading state information...
0082|The following NEW packages will be installed:
0083|libffi-dev
0084|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0085|Need to get 59.4 kB of archives.
0086|After this operation, 323 kB of additional disk space will be used.
0087|Get:1 http://deb.debian.org/debian bookworm/main amd64 libffi-dev amd64 3.4.4-1 [59.4 kB]
0088|debconf: unable to initialize frontend: Dialog
0089|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0090|debconf: falling back to frontend: Readline
0091|debconf: unable to initialize frontend: Readline
0092|debconf: (This frontend requires a controlling tty.)
0093|debconf: falling back to frontend: Teletype
0094|dpkg-preconfigure: unable to re-open stdin:
0095|Fetched 59.4 kB in 0s (769 kB/s)
0096|Selecting previously unselected package libffi-dev:amd64.
0097|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 73505 files and directories currently installed.)
0098|Preparing to unpack .../libffi-dev_3.4.4-1_amd64.deb ...
0099|Unpacking libffi-dev:amd64 (3.4.4-1) ...
0100|Setting up libffi-dev:amd64 (3.4.4-1) ...
0101|Processing triggers for man-db (2.11.2-2) ...
0102|+ echo 6
0103|+ sudo apt update
0104|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0105|Hit:1 http://deb.debian.org/debian bookworm InRelease
0106|Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
0107|Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
0108|Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
0109|Reading package lists...
0110|Building dependency tree...
0111|Reading state information...
0112|All packages are up to date.
0113|+ sudo apt-get install -y python3 python3-pip python3-dev python3-venv
0114|Reading package lists...
0115|Building dependency tree...
0116|Reading state information...
0117|python3 is already the newest version (3.11.2-1+b1).
0118|python3-pip is already the newest version (23.0.1+dfsg-1).
0119|python3-dev is already the newest version (3.11.2-1+b1).
0120|python3-dev set to manually installed.
0121|python3-venv is already the newest version (3.11.2-1+b1).
0122|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0123|+ echo 7
0124|+ sudo python3 -m venv --upgrade-deps /var/www/html/core/class/../../plugins/broadlink/resources/python_venv
0125|+ echo 8
0126|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --upgrade pip wheel
0127|Requirement already satisfied: pip in /var/www/html/plugins/broadlink/resources/python_venv/lib/python3.11/site-packages (24.2)
0128|Collecting wheel
0129|Downloading wheel-0.44.0-py3-none-any.whl.metadata (2.3 kB)
0130|Downloading wheel-0.44.0-py3-none-any.whl (67 kB)
0131|Installing collected packages: wheel
0132|Successfully installed wheel-0.44.0
0133|+ echo 9
0134|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade wheel
0135|Collecting wheel
0136|Using cached wheel-0.44.0-py3-none-any.whl.metadata (2.3 kB)
0137|Using cached wheel-0.44.0-py3-none-any.whl (67 kB)
0138|Installing collected packages: wheel
0139|Attempting uninstall: wheel
0140|Found existing installation: wheel 0.44.0
0141|Uninstalling wheel-0.44.0:
0142|Successfully uninstalled wheel-0.44.0
0143|Successfully installed wheel-0.44.0
0144|+ echo 10
0145|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade cryptography==2.6.1
0146|Collecting cryptography==2.6.1
0147|Downloading cryptography-2.6.1-cp34-abi3-manylinux1_x86_64.whl.metadata (5.1 kB)
0148|Collecting asn1crypto>=0.21.0 (from cryptography==2.6.1)
0149|Downloading asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
0150|Collecting six>=1.4.1 (from cryptography==2.6.1)
0151|Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
0152|Collecting cffi!=1.11.3,>=1.8 (from cryptography==2.6.1)
0153|Downloading cffi-1.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
0154|Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography==2.6.1)
0155|Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
0156|Downloading cryptography-2.6.1-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
0157|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 25.9 MB/s eta 0:00:00
0158|Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
0159|Downloading cffi-1.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (466 kB)
0160|Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
0161|Downloading pycparser-2.22-py3-none-any.whl (117 kB)
0162|Installing collected packages: asn1crypto, six, pycparser, cffi, cryptography
0163|Successfully installed asn1crypto-1.5.1 cffi-1.17.0 cryptography-2.6.1 pycparser-2.22 six-1.16.0
0164|+ echo 11
0165|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade pycrypto
0166|Collecting pycrypto
0167|Downloading pycrypto-2.6.1.tar.gz (446 kB)
0168|Preparing metadata (setup.py): started
0169|Preparing metadata (setup.py): finished with status 'done'
0170|Building wheels for collected packages: pycrypto
0171|Building wheel for pycrypto (setup.py): started
0172|Building wheel for pycrypto (setup.py): finished with status 'done'
0173|Created wheel for pycrypto: filename=pycrypto-2.6.1-cp311-cp311-linux_x86_64.whl size=494665 sha256=8967c39b1c259e717603597f532a3c38a86b7fadc759557dc80c6554b614afe1
0174|Stored in directory: /root/.cache/pip/wheels/88/0a/1a/35933feb1f6b635d5b661781fb1361a728fcde50f1cd164b7c
0175|Successfully built pycrypto
0176|Installing collected packages: pycrypto
0177|Successfully installed pycrypto-2.6.1
0178|+ echo 12
0179|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade pyudev
0180|Collecting pyudev
0181|Downloading pyudev-0.24.3-py3-none-any.whl.metadata (4.6 kB)
0182|Downloading pyudev-0.24.3-py3-none-any.whl (62 kB)
0183|Installing collected packages: pyudev
0184|Successfully installed pyudev-0.24.3
0185|+ echo 13
0186|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade asn1crypto
0187|Collecting asn1crypto
0188|Using cached asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
0189|Using cached asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
0190|Installing collected packages: asn1crypto
0191|Attempting uninstall: asn1crypto
0192|Found existing installation: asn1crypto 1.5.1
0193|Uninstalling asn1crypto-1.5.1:
0194|Successfully uninstalled asn1crypto-1.5.1
0195|Successfully installed asn1crypto-1.5.1
0196|+ echo 14
0197|+ sudo /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3 -m pip install --force-reinstall --upgrade requests
0198|Collecting requests
0199|Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
0200|Collecting charset-normalizer<4,>=2 (from requests)
0201|Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
0202|Collecting idna<4,>=2.5 (from requests)
0203|Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)
0204|Collecting urllib3<3,>=1.21.1 (from requests)
0205|Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
0206|Collecting certifi>=2017.4.17 (from requests)
0207|Downloading certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
0208|Downloading requests-2.32.3-py3-none-any.whl (64 kB)
0209|Downloading certifi-2024.7.4-py3-none-any.whl (162 kB)
0210|Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)
0211|Downloading idna-3.7-py3-none-any.whl (66 kB)
0212|Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)
0213|Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
0214|Successfully installed certifi-2024.7.4 charset-normalizer-3.3.2 idna-3.7 requests-2.32.3 urllib3-2.2.2
0215|+ echo 15
0216|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end broadlink
0217|+ echo 16
0218|+ rm /tmp/jeedom_install_in_progress_broadlink
0219|+ echo '*******************End of package installation******************'
0220|*******************End of package installation******************

Log démon :

0000|[2024-08-15 19:18:32] INFO  : Démarrage du démon Broadlink : /var/www/html/core/class/../../plugins/broadlink/resources/python_venv/bin/python3  /var/www/html/plugins/broadlink/resources/broadlinkd/broadlinkd.py --loglevel debug --socketport 55013 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/broadlink/core/php/jeeBroadlink.php --apikey SuiydyUz02pDELHODw1bXsMi8cmeoisdLxx1X16Vq80sQqNFHBbiI4P78c6GWU0m --cycle 0.3 --pid /tmp/jeedom/broadlink/deamon.pid
0001|Error: importing module from jeedom folder
0002|[2024-08-15 19:19:02] ERROR  : Impossible de démarrer le démon Broadlink, vérifiez les logs

Informations Jeedom

Core : 4.4.10 (master)
DNS Jeedom : non

Plugin : Broadlink
Version : 5fe1e6c61dd8258811367d680a8fa515c2ffae8d (beta)
Statut Démon : Stoppé - (2024-08-15 19:20:02)

Salut,

Et sur une machine vierge debian 11 ca passe?
Pcq là à mon avis non, il doit manquer une dépendances et c’est pour ca que le package jeedom se charge pas.
Mais du coup ca devait déjà être le cas avant

J’ai vérifié et il y avait du code inutile dans le démon qui empêchait le démarrage sur deb12, j’ai nettoyé
ca sera ok en beta demain; en tout cas le démon va démarrer mais je n’ai pas le matériel pour tester si ca fonctionne ensuite (mais je ne vois pas de raison que ca ne fonctionne pas)

Bonjour,

Merci pour le retour.
J’ai testé sur une fresh install Debian 11 et c’est OK.

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_broadlink
0003|+ echo 1
0004|+ echo 2
0005|+ sudo killall apt apt-get unattended-upgr
0006|apt: no process found
0007|apt-get: no process found
0008|+ sudo rm /var/lib/apt/lists/lock
0009|+ sudo rm /var/cache/apt/archives/lock
0010|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0011|+ sudo sudo dpkg --configure -a --force-confdef
0012|+ sudo apt update
0013|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0014|Hit:1 http://deb.debian.org/debian bullseye InRelease
0015|Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
0016|Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
0017|Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
0018|Reading package lists...
0019|Building dependency tree...
0020|Reading state information...
0021|All packages are up to date.
0022|+ echo 3
0023|+ sudo apt install -o Dpkg::Options::=--force-confdef -y libudev-dev
0024|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0025|Reading package lists...
0026|Building dependency tree...
0027|Reading state information...
0028|The following NEW packages will be installed:
0029|libudev-dev
0030|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0031|Need to get 124 kB of archives.
0032|After this operation, 213 kB of additional disk space will be used.
0033|Get:1 http://deb.debian.org/debian bullseye/main amd64 libudev-dev amd64 247.3-7+deb11u5 [124 kB]
0034|debconf: unable to initialize frontend: Dialog
0035|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0036|debconf: falling back to frontend: Readline
0037|debconf: unable to initialize frontend: Readline
0038|debconf: (This frontend requires a controlling tty.)
0039|debconf: falling back to frontend: Teletype
0040|dpkg-preconfigure: unable to re-open stdin:
0041|Fetched 124 kB in 0s (1274 kB/s)
0042|Selecting previously unselected package libudev-dev:amd64.
0043|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70816 files and directories currently installed.)
0044|Preparing to unpack .../libudev-dev_247.3-7+deb11u5_amd64.deb ...
0045|Unpacking libudev-dev:amd64 (247.3-7+deb11u5) ...
0046|Setting up libudev-dev:amd64 (247.3-7+deb11u5) ...
0047|Processing triggers for man-db (2.9.4-2) ...
0048|+ echo 4
0049|+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-serial
0050|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0051|Reading package lists...
0052|Building dependency tree...
0053|Reading state information...
0054|Suggested packages:
0055|python3-wxgtk3.0 | python3-wxgtk
0056|The following NEW packages will be installed:
0057|python3-serial
0058|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0059|Need to get 88.8 kB of archives.
0060|After this operation, 469 kB of additional disk space will be used.
0061|Get:1 http://deb.debian.org/debian bullseye/main amd64 python3-serial all 3.5~b0-1 [88.8 kB]
0062|debconf: unable to initialize frontend: Dialog
0063|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0064|debconf: falling back to frontend: Readline
0065|debconf: unable to initialize frontend: Readline
0066|debconf: (This frontend requires a controlling tty.)
0067|debconf: falling back to frontend: Teletype
0068|dpkg-preconfigure: unable to re-open stdin:
0069|Fetched 88.8 kB in 0s (941 kB/s)
0070|Selecting previously unselected package python3-serial.
0071|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70891 files and directories currently installed.)
0072|Preparing to unpack .../python3-serial_3.5~b0-1_all.deb ...
0073|Unpacking python3-serial (3.5~b0-1) ...
0074|Setting up python3-serial (3.5~b0-1) ...
0075|+ echo 5
0076|+ sudo apt install -o Dpkg::Options::=--force-confdef -y libffi-dev
0077|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0078|Reading package lists...
0079|Building dependency tree...
0080|Reading state information...
0081|The following NEW packages will be installed:
0082|libffi-dev
0083|0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
0084|Need to get 56.5 kB of archives.
0085|After this operation, 308 kB of additional disk space will be used.
0086|Get:1 http://deb.debian.org/debian bullseye/main amd64 libffi-dev amd64 3.3-6 [56.5 kB]
0087|debconf: unable to initialize frontend: Dialog
0088|debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
0089|debconf: falling back to frontend: Readline
0090|debconf: unable to initialize frontend: Readline
0091|debconf: (This frontend requires a controlling tty.)
0092|debconf: falling back to frontend: Teletype
0093|dpkg-preconfigure: unable to re-open stdin:
0094|Fetched 56.5 kB in 0s (763 kB/s)
0095|Selecting previously unselected package libffi-dev:amd64.
0096|(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70949 files and directories currently installed.)
0097|Preparing to unpack .../libffi-dev_3.3-6_amd64.deb ...
0098|Unpacking libffi-dev:amd64 (3.3-6) ...
0099|Setting up libffi-dev:amd64 (3.3-6) ...
0100|Processing triggers for man-db (2.9.4-2) ...
0101|+ echo 6
0102|++ cut -f 2-
0103|++ awk '$1 <= 4'
0104|++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
0105|+ RESULTTODELETE=
0106|++ sed 's, ,\ ,g'
0107|++ echo ''
0108|+ RESULTTODELETE2=
0109|+ xargs rm -rf
0110|+ echo ''
0111|+ echo 7
0112|+ sudo pip3 cache purge
0113|ERROR: No matching packages
0114|+ echo 8
0115|+ sudo pip3 install --upgrade pip
0116|Requirement already satisfied: pip in /usr/lib/python3/dist-packages (20.3.4)
0117|Collecting pip
0118|Downloading pip-24.2-py3-none-any.whl (1.8 MB)
0119|Installing collected packages: pip
0120|Attempting uninstall: pip
0121|Found existing installation: pip 20.3.4
0122|Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
0123|Can't uninstall 'pip'. No files were found to uninstall.
0124|Successfully installed pip-24.2
0125|+ echo 9
0126|+ sudo python3 -m pip install --force-reinstall --upgrade cryptography==2.6.1
0127|Collecting cryptography==2.6.1
0128|Downloading cryptography-2.6.1-cp34-abi3-manylinux1_x86_64.whl.metadata (5.1 kB)
0129|Collecting asn1crypto>=0.21.0 (from cryptography==2.6.1)
0130|Downloading asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
0131|Collecting six>=1.4.1 (from cryptography==2.6.1)
0132|Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
0133|Collecting cffi!=1.11.3,>=1.8 (from cryptography==2.6.1)
0134|Downloading cffi-1.17.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
0135|Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography==2.6.1)
0136|Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
0137|Downloading cryptography-2.6.1-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
0138|━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 23.8 MB/s eta 0:00:00
0139|Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
0140|Downloading cffi-1.17.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (444 kB)
0141|Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
0142|Downloading pycparser-2.22-py3-none-any.whl (117 kB)
0143|WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
0144|Installing collected packages: asn1crypto, six, pycparser, cffi, cryptography
0145|Attempting uninstall: six
0146|Found existing installation: six 1.16.0
0147|Uninstalling six-1.16.0:
0148|Successfully uninstalled six-1.16.0
0149|Successfully installed asn1crypto-1.5.1 cffi-1.17.0 cryptography-2.6.1 pycparser-2.22 six-1.16.0
0150|WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
0151|+ echo 10
0152|+ sudo python3 -m pip install --force-reinstall --upgrade pycrypto
0153|Collecting pycrypto
0154|Downloading pycrypto-2.6.1.tar.gz (446 kB)
0155|Preparing metadata (setup.py): started
0156|Preparing metadata (setup.py): finished with status 'done'
0157|Building wheels for collected packages: pycrypto
0158|Building wheel for pycrypto (setup.py): started
0159|Building wheel for pycrypto (setup.py): finished with status 'done'
0160|Created wheel for pycrypto: filename=pycrypto-2.6.1-cp39-cp39-linux_x86_64.whl size=496317 sha256=3c3a875b32f187f0557db51946dcb305456a550ed49cb275e9e252b92619fd9f
0161|Stored in directory: /root/.cache/pip/wheels/9d/29/32/8b8f22481bec8b0fbe7087927336ec167faff2ed9db849448f
0162|Successfully built pycrypto
0163|WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
0164|Installing collected packages: pycrypto
0165|Successfully installed pycrypto-2.6.1
0166|WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
0167|+ echo 11
0168|+ sudo python3 -m pip install --force-reinstall --upgrade pyudev
0169|Collecting pyudev
0170|Downloading pyudev-0.24.3-py3-none-any.whl.metadata (4.6 kB)
0171|Downloading pyudev-0.24.3-py3-none-any.whl (62 kB)
0172|WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
0173|Installing collected packages: pyudev
0174|Successfully installed pyudev-0.24.3
0175|WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
0176|+ echo 12
0177|+ sudo python3 -m pip install --force-reinstall --upgrade asn1crypto
0178|Collecting asn1crypto
0179|Using cached asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
0180|Using cached asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
0181|WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
0182|Installing collected packages: asn1crypto
0183|Attempting uninstall: asn1crypto
0184|Found existing installation: asn1crypto 1.5.1
0185|Uninstalling asn1crypto-1.5.1:
0186|Successfully uninstalled asn1crypto-1.5.1
0187|Successfully installed asn1crypto-1.5.1
0188|WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
0189|+ echo 13
0190|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end broadlink
0191|+ echo 14
0192|+ rm /tmp/jeedom_install_in_progress_broadlink
0193|+ echo '*******************End of package installation******************'
0194|*******************End of package installation******************
0000|[2024-08-16 11:51:14] INFO  : Démarrage du démon Broadlink : python3  /var/www/html/plugins/broadlink/resources/broadlinkd/broadlinkd.py --loglevel debug --socketport 55013 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/broadlink/core/php/jeeBroadlink.php --apikey nn5vSYd5htyt4SuGfEiPsI9DCXfrfjdmbjedyjWx6cIG7Jm8af7XJX4KOpWo7N5q --cycle 0.3 --pid /tmp/jeedom/broadlink/deamon.pid
0001|[2024-08-16 11:51:14.712] INFO  : Start broadlinkd
0002|[2024-08-16 11:51:14.712] INFO  : Log level : debug
0003|[2024-08-16 11:51:14.712] INFO  : Socket port : 55013
0004|[2024-08-16 11:51:14.712] INFO  : Socket host : 127.0.0.1
0005|[2024-08-16 11:51:14.712] INFO  : PID file : /tmp/jeedom/broadlink/deamon.pid
0006|[2024-08-16 11:51:14.712] INFO  : Apikey : nn5vSYd5htyt4SuGfEiPsI9DCXfrfjdmbjedyjWx6cIG7Jm8af7XJX4KOpWo7N5q
0007|[2024-08-16 11:51:14.712] INFO  : Callback : http://127.0.0.1:80/plugins/broadlink/core/php/jeeBroadlink.php
0008|[2024-08-16 11:51:14.712] INFO  : Cycle : 0.3
0009|[2024-08-16 11:51:14.712] DEBUG  : Writing PID 3327 to /tmp/jeedom/broadlink/deamon.pid
0010|[2024-08-16 11:51:14.712] DEBUG  : Init request module v2.25.1
0011|[2024-08-16 11:51:14.713] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
0012|[2024-08-16 11:51:14.717] DEBUG  : http://127.0.0.1:80 "GET /plugins/broadlink/core/php/jeeBroadlink.php?apikey=nn5vSYd5htyt4SuGfEiPsI9DCXfrfjdmbjedyjWx6cIG7Jm8af7XJX4KOpWo7N5q HTTP/1.1" 200 0
0013|[2024-08-16 11:51:14.717] DEBUG  : Start listening...
0014|[2024-08-16 11:51:14.717] DEBUG  : Socket interface started
0015|[2024-08-16 11:51:14.721] DEBUG  : LoopNetServer Thread started
0016|[2024-08-16 11:51:14.722] DEBUG  : Listening on: [127.0.0.1:55013]

Je reteste sur Debian 12 avec le matériel cet aprem du coup.

Donc démon OK sur Debian 12.
L’inclusion automatique ne fonctionne pas dans mon cas mais il me semble que c’était déjà le cas avant.
L’apprentissage d’une commande IR génère cette erreur :

module 'collections' has no attribute 'Mapping'

J’ai corrigé avec :
Capture d'écran 2024-08-16 134323
Trouvé ici :

Avec cette correction l’apprentissage des commandes IR et leurs exécutions sont OK.
Je n’ai pas de quoi tester la partie RF par contre.
Merci beaucoup.

J’ai remis à jour la beta en conséquence.

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.