Py3compile:183: cannot create directory

Bonsoir,

J’ai installé la version beta. Lors de la réinstallation des dépendances, j’obtient une erreur. Je pense que cela ne vient pas du plugin en lui même mais de mon jeedom.
Je suis sous une VM en débian 10. Voici les logs de l’installation des dépendances`:

======================================================================
== 15/03/2024 20:02:44 == Dependencies installation for arlo
======================================================================

[  5% ] : Clean apt...
[  9% ] : Clean apt : [  OK  ]
[ 10% ] : Update apt...
[ 19% ] : Update apt : [  OK  ]
[ 20% ] : Install apt packages...
[ 99% ] : Install apt packages : [ERROR]
[100% ] : Finished !

======================================================================
== KO == Installation Error 
======================================================================
== ANALYSING ERRORS...
== NO KNOWN ERROR DETECTED
== Error in step : Install apt packages
== Line 158
== Command `apt-get install -y python3 python3-pip python3-dev python3-venv ffmpeg' have an issue
== Return code is 100
== Error message :
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-dev is already the newest version (3.7.3-1).
python3-venv is already the newest version (3.7.3-1).
ffmpeg is already the newest version (7:4.1.11-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-pyudev (0.21.0-1) ...
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/pyudev/__pycache__: FileNotFoundError(2, 'No such file or directory')
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/pyudev/_ctypeslib/__pycache__: FileNotFoundError(2, 'No such file or directory')
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/pyudev/_os/__pycache__: FileNotFoundError(2, 'No such file or directory')
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/pyudev/device/__pycache__: FileNotFoundError(2, 'No such file or directory')
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_compat.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_ctypeslib/_errorcheckers.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_ctypeslib/libc.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_ctypeslib/libudev.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_ctypeslib/utils.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_os/pipe.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_os/poll.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_qt_base.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/_util.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/core.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/device/_device.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/device/_errors.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/discover.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/glib.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/monitor.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/pyqt4.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/pyqt5.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/pyside.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/version.py'
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pyudev/wx.py'
dpkg: error processing package python3-pyudev (--configure):
 installed python3-pyudev package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 python3-pyudev
E: Sub-process /usr/bin/dpkg returned an error code (1)

======================================================================


Merci de votre aide.

Bonjour,

Aucun rapport avec l’autre sujet => post déplacé.


Et jamais vu cette erreur qui effectivement est hors contrôle du plugin; faudrait chercher sur internet. J’essaierai de chercher ce week-end.

Il faudrait une capture d’écran de la page santé jeedom aussi.

The "Sub-process /usr/bin/dpkg returned an error code (1) " error message indicates a problem with the dpkg package installer. The error occurs in Ubuntu and other Debian-based systems after a failed software installation or if the installer becomes corrupted.

Method 1: Reconfigure dpkg Database

sudo dpkg --configure -a

Method 2: Fix Broken Dependencies

sudo apt install -f

Method 3: Remove Bad Package and Associated Files

sudo apt remove --purge [package_name]

The /var/lib/dpkg/info directory contains information files for installed packages managed by dpkg, including details such as package names, versions, dependencies, and installation scripts.

Replace [package_name] with the name of the package in question. For example:

Listing all Apache packages on the system.

2 « J'aime »

Bonjour,

Impeccable merci beaucoup :slight_smile:

J’ai lancé cette commande et tout est rentré dans l’ordre

apt remove --purge python3-pyudev 

Même si j’en était presque sûr, le problème venait bien de chez moi et non pas du plugin.

1 « J'aime »

Pas de stress hein :wink:
Je n’ai aucun soucis avec ça, pas de problème à poser une question

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.