RFXcom - démon ne démarre plus - emmc neuve - version jeedom à jour

Bonjour,
Suite aux problèmes rencontrés dans ce post https://community.jeedom.com/t/rfxcom-dependances-ne-sinstallent-plus-changement-de-box/63842, j’ai finalement du changer ma carte eMMC.

J’ai maintenant la config suivante :

  • jeedom smart avec eMMC neuve
  • V4 installée
  • ma config restaurée

Pour autant le démon du plugin RFXcom ne démarre toujours pas. J’ai aussi mis à jour le module RFXcom.

Ci après copie de la page santé :

Ci après copie du log RFXcom.update

********************************************************
*             Installation des dépendances             *
********************************************************
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://www.deb-multimedia.org buster InRelease
Hit:4 http://ftp.uk.debian.org/debian buster InRelease
Hit:5 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Err:2 https://repo.jeedom.com/odroid stable InRelease
  502  Bad Gateway [IP: 51.178.69.128 443]
Reading package lists...
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  502  Bad Gateway [IP: 51.178.69.128 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip._internal import main
  File "/usr/lib/python3/dist-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 12, in <module>
    from pip._internal.commands import (
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 23, in <module>
    from pip._internal.index import PackageFinder
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 31, in <module>
    from pip._internal.models.link import Link
  File "/usr/lib/python3/dist-packages/pip/_internal/models/link.py", line 9, in <module>
    from pip._internal.wheel import wheel_ext
  File "/usr/lib/python3/dist-packages/pip/_internal/wheel.py", line 7, in <module>
    import compileall
  File "/usr/lib/python3.7/compileall.py", line 16, in <module>
    import py_compile
ModuleNotFoundError: No module named 'py_compile'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package 'python3-serial' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libgd3 php7.3-gd
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3 is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
The following packages were automatically installed and are no longer required:
  libgd3 php7.3-gd
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/pip/__main__.py", line 16, in <module>
    from pip._internal import main as _main  # isort:skip # noqa
  File "/usr/lib/python3/dist-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 12, in <module>
    from pip._internal.commands import (
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 23, in <module>
    from pip._internal.index import PackageFinder
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 31, in <module>
    from pip._internal.models.link import Link
  File "/usr/lib/python3/dist-packages/pip/_internal/models/link.py", line 9, in <module>
    from pip._internal.wheel import wheel_ext
  File "/usr/lib/python3/dist-packages/pip/_internal/wheel.py", line 7, in <module>
    import compileall
  File "/usr/lib/python3.7/compileall.py", line 16, in <module>
    import py_compile
ModuleNotFoundError: No module named 'py_compile'
********************************************************
*             Installation terminée                    *
********************************************************

Je vois bien des choses qui paraissent pas bonnes mais je ne comprends rien.

Voici aussi le log RFXcom :

[2021-07-08 16:30:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-08 16:30:05][INFO] : Lancement démon rfxcomd : /usr/bin/python3 /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 12,13,18,20,21,22,23 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey mnxbFpApjvGHeUAQfEJxLb8EbmTWQM5e --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
Error: importing module jeedom.jeedom
[2021-07-08 16:30:36][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd

avec « Error: importing module jeedom.jeedom » que j’ai trouvé dans plein de sujets, mais qui ne m’ont pas permis de trouver la solution.
Le log rfxcmd n’est pas dans la liste des logs.

A votre disposition pour donner d’autres renseignements qui vous permettraient de m’aider.

Merci d’avance

Osdur

Bonjour,

Je suspecte que les erreurs avec py_compile viennent d’une inconsistance dans les versions de python installées; avez-vous dû intervenir pour un autre plugin et avez-vous exécuté certaines commandes?

Pouvez-vous donner le résultat des commandes suivantes à exécuter en ssh?:

python --version
pip --version
python3 --version
pip3 --version

@Mips merci,

Comme la carte emmc était morte je l’ai changée. J’ai restauré ma sauvegarde et je suis passé en V4 .
Je n’ai rien fait de plus.
Voila le résultat des commandes demandées :

root@Jeedom:~# python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> pip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined
>>> python3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python3' is not defined
>>> pip3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pip3' is not defined
>>>
KeyboardInterrupt
>>>

Ce ne sont pas les commandes que j’ai donné.
La première vous n’avez tapez que python alors que j’ai donné python --version et ainsi de suite

voila, mais je ne suis pas sur d’avoir bien compris…

>>> python --version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python' is not defined
>>>
>>> pip --version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined
>>> python3 --version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python3' is not defined
>>> pip3 --version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pip3' is not defined

Non, vous cherchez à faire plus compliqué que ce que je demande…
pourquoi avoir lancé python? ce n’est pas demandé.

Sur une ligne de commande shell ou ssh, tapez les 4 commandes, cela va donner ceci:

njeedom@jeedomBuster:~$ python --version
Python 2.7.16
njeedom@jeedomBuster:~$ pip --version
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
njeedom@jeedomBuster:~$ python3 --version
Python 3.7.3
njeedom@jeedomBuster:~$ pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
njeedom@jeedomBuster:~$

c’est bien ce que je fais, je ne vois pas ce qui ne va pas.
J’ai ouvert putty
je me suis connecté root
je tape « python --version » et ça donne ce que j’ai copié
idem pour les 3 commandes suivantes

Non, vous avez d’abord tapé python comme dit 2 messages plus haut, ce qui a donc lancé python: le prompte est >>> et pas root@Jeedom:~#

Recommencez

ok, j’ai déconnecté putty et recommencé

root@Jeedom:~# python --version
Python 2.7.16
root@Jeedom:~# pip --version
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
root@Jeedom:~# python3 --version
Python 3.7.3
root@Jeedom:~# pip3 --version
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip._internal import main
  File "/usr/lib/python3/dist-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 12, in <module>
    from pip._internal.commands import (
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 23, in <module>
    from pip._internal.index import PackageFinder
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 31, in <module>
    from pip._internal.models.link import Link
  File "/usr/lib/python3/dist-packages/pip/_internal/models/link.py", line 9, in <module>
    from pip._internal.wheel import wheel_ext
  File "/usr/lib/python3/dist-packages/pip/_internal/wheel.py", line 7, in <module>
    import compileall
  File "/usr/lib/python3.7/compileall.py", line 16, in <module>
    import py_compile
ModuleNotFoundError: No module named 'py_compile'

ce qui est évident pour vous ne l’était pas pour moi, et je n’avais pas compris

Pouvez-vous essayer d’installer pip3 avec la commande suivante

sudo apt install python3-pip

et donner le résultat?

ou même de d’abord désinstaller la version actuelle si elle existe et réinstaller ensuite:

sudo apt-get remove python3-pip; sudo apt-get install python3-pip
root@Jeedom:~# sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (18.1-5).
The following packages were automatically installed and are no longer required:
  libgd3 php7.3-gd
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
8 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

Désinstallez la version actuelle et réinstallez ensuite:

sudo apt-get remove python3-pip; sudo apt-get install python3-pip

s’il demande de continuer comme au message précédent, répondez oui (Y)

vous pouvez aussi executer la commande suivante pour nettoyer comme suggérer:

sudo apt autoremove
root@Jeedom:~# sudo apt-get remove python3-pip; sudo apt-get install python3-pip                       Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgd3 php7.3-gd python3-distutils python3-lib2to3
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  python3-pip
0 upgraded, 0 newly installed, 1 to remove and 149 not upgraded.
8 not fully installed or removed.
After this operation, 707 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'librsync1:arm64' missing; assuming package has no files currently installed
(Reading database ... 75386 files and directories currently installed.)
Removing python3-pip (18.1-5) ...
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgd3 php7.3-gd
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  python3-dev python3-setuptools python3-wheel
The following NEW packages will be installed:
  python3-pip
0 upgraded, 1 newly installed, 0 to remove and 149 not upgraded.
8 not fully installed or removed.
Need to get 171 kB of archives.
After this operation, 707 kB of additional disk space will be used.
Get:1 http://ftp.uk.debian.org/debian buster/main arm64 python3-pip all 18.1-5 [171 kB]
Fetched 171 kB in 0s (766 kB/s)
Selecting previously unselected package python3-pip.
dpkg: warning: files list file for package 'librsync1:arm64' missing; assuming package has no files currently installed
(Reading database ... 75282 files and directories currently installed.)
Preparing to unpack .../python3-pip_18.1-5_all.deb ...
Unpacking python3-pip (18.1-5) ...
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
Setting up python3-pip (18.1-5) ...
/usr/bin/python3.7: No module named py_compile
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in <module>
    main()
  File "/usr/bin/py3compile", line 270, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/py3compile", line 187, in compile
    pipe.send(fn)
  File "/usr/bin/py3compile", line 138, in py_compile
    stdin.write(filename.encode('utf-8') + b'\n')
BrokenPipeError: [Errno 32] Broken pipe
dpkg: error processing package python3-pip (--configure):
 installed python3-pip package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-pip
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Jeedom:~#

Ca commence a être compliqué à distance… je ne sais pas ce qu’il s’est passé avec votre install ni comment cela a pu être corrompu à ce point en ne faisant rien d’autres que d’installer jeedom…

Essayer ceci pour vérifier qu’il n’y a pas de rupture de dépendances (ce qui semble être le cas)

sudo apt-get check
root@Jeedom:~# sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done

je comprends que cela soit compliqué, et je ne vois pas non plus ce qu’il a pu se passer car tout s’est passé bien et vite

faut il envisager de tout réinstaller, finalement comme prévu au départ, sauf que maintenant la carte emmc est neuve

je n’avais pas fait autoremove, voila les messages

root@Jeedom:~# sudo apt autoremove
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libgd3 php7.3-gd
0 upgraded, 0 newly installed, 2 to remove and 148 not upgraded.
9 not fully installed or removed.
After this operation, 587 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package ‹ librsync1:arm64 › missing; assuming package has no files currently installed
(Reading database … 75386 files and directories currently installed.)
Removing php7.3-gd (7.3.19-1~deb10u1) …
Removing libgd3:arm64 (2.2.5-5.2) …
Setting up python3-pkg-resources (40.8.0-1) …
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (–configure):
installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) …
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (–configure):
installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
python3-chardet depends on python3-pkg-resources; however:
Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (–configure):
dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) …
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (–configure):
installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
python3-requests depends on python3-certifi; however:
Package python3-certifi is not configured yet.
python3-requests depends on python3-chardet (<< 3.1.0); however:
Package python3-chardet is not configured yet.
python3-requests depends on python3-chardet (>= 3.0.2); however:
Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (–configure):
dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) …
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (–configure):
installed python3-idna package post-installation script subprocess returned error exit status 1
Setting up python3-pip (18.1-5) …
/usr/bin/python3.7: No module named py_compile
Traceback (most recent call last):
File « /usr/bin/py3compile », line 290, in
main()
File « /usr/bin/py3compile », line 270, in main
options.force, options.optimize, e_patterns)
File « /usr/bin/py3compile », line 187, in compile
pipe.send(fn)
File « /usr/bin/py3compile », line 138, in py_compile
stdin.write(filename.encode(‹ utf-8 ›) + b’\n’)
BrokenPipeError: [Errno 32] Broken pipe
dpkg: error processing package python3-pip (–configure):
installed python3-pip package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
python3-urllib3 depends on python3-six; however:
Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libapache2-mod-php7.3 (7.3.19-1~deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-pip
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Jeedom:~# sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libgd3 php7.3-gd
0 upgraded, 0 newly installed, 2 to remove and 148 not upgraded.
9 not fully installed or removed.
After this operation, 587 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'librsync1:arm64' missing; assuming package has no files currently installed
(Reading database ... 75386 files and directories currently installed.)
Removing php7.3-gd (7.3.19-1~deb10u1) ...
Removing libgd3:arm64 (2.2.5-5.2) ...
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
Setting up python3-pip (18.1-5) ...
/usr/bin/python3.7: No module named py_compile
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in <module>
    main()
  File "/usr/bin/py3compile", line 270, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/py3compile", line 187, in compile
    pipe.send(fn)
  File "/usr/bin/py3compile", line 138, in py_compile
    stdin.write(filename.encode('utf-8') + b'\n')
BrokenPipeError: [Errno 32] Broken pipe
dpkg: error processing package python3-pip (--configure):
 installed python3-pip package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libapache2-mod-php7.3 (7.3.19-1~deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-pip
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)

Essayer ceci dans l’ordre, ce sont toutes des commandes qui vont tenter de réparer ce qui serait cassé

sudo apt update
sudo apt update --fix-missing
sudo apt install -f
sudo dpkg --configure -a

apparemment encore beaucoup d’erreurs :

root@Jeedom:~# sudo apt update
Hit:1 http://ftp.uk.debian.org/debian buster InRelease
Hit:2 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://www.deb-multimedia.org buster InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Err:4 https://repo.jeedom.com/odroid stable InRelease
  502  Bad Gateway [IP: 51.210.253.116 443]
Reading package lists... Done
Building dependency tree
Reading state information... Done
147 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  502  Bad Gateway [IP: 51.210.253.116 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@Jeedom:~# sudo apt update --fix-missing
Hit:1 http://www.deb-multimedia.org buster InRelease
Hit:2 http://ftp.uk.debian.org/debian buster InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Err:4 https://repo.jeedom.com/odroid stable InRelease
  502  Bad Gateway [IP: 51.210.253.116 443]
Reading package lists... Done
Building dependency tree
Reading state information... Done
147 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  502  Bad Gateway [IP: 51.210.253.116 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@Jeedom:~# sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 148 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
Setting up python3-pip (18.1-5) ...
/usr/bin/python3.7: No module named py_compile
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in <module>
    main()
  File "/usr/bin/py3compile", line 270, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/py3compile", line 187, in compile
    pipe.send(fn)
  File "/usr/bin/py3compile", line 138, in py_compile
    stdin.write(filename.encode('utf-8') + b'\n')
BrokenPipeError: [Errno 32] Broken pipe
dpkg: error processing package python3-pip (--configure):
 installed python3-pip package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-pip
 python3-urllib3
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Jeedom:~# sudo dpkg --configure -a
Setting up python3-pkg-resources (40.8.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-pkg-resources (--configure):
 installed python3-pkg-resources package post-installation script subprocess returned error exit status 1
Setting up python3-six (1.12.0-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-six (--configure):
 installed python3-six package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-chardet:
 python3-chardet depends on python3-pkg-resources; however:
  Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure):
 dependency problems - leaving unconfigured
Setting up python3-certifi (2018.8.24-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-certifi (--configure):
 installed python3-certifi package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3-certifi; however:
  Package python3-certifi is not configured yet.
 python3-requests depends on python3-chardet (<< 3.1.0); however:
  Package python3-chardet is not configured yet.
 python3-requests depends on python3-chardet (>= 3.0.2); however:
  Package python3-chardet is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
Setting up python3-idna (2.6-1) ...
/usr/bin/python3.7: No module named py_compile
dpkg: error processing package python3-idna (--configure):
 installed python3-idna package post-installation script subprocess returned error exit status 1
Setting up python3-pip (18.1-5) ...
/usr/bin/python3.7: No module named py_compile
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in <module>
    main()
  File "/usr/bin/py3compile", line 270, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/py3compile", line 187, in compile
    pipe.send(fn)
  File "/usr/bin/py3compile", line 138, in py_compile
    stdin.write(filename.encode('utf-8') + b'\n')
BrokenPipeError: [Errno 32] Broken pipe
dpkg: error processing package python3-pip (--configure):
 installed python3-pip package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-pyudev:
 python3-pyudev depends on python3-six; however:
  Package python3-six is not configured yet.

dpkg: error processing package python3-pyudev (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-pkg-resources
 python3-six
 python3-chardet
 python3-certifi
 python3-requests
 python3-idna
 python3-pip
 python3-urllib3
 python3-pyudev

Vous n’avez pas lancé les autres commandes ?