Boxio passage debian 11 jeedom 4.4.X

Pour le passage en debian11 il faut faire quelque manip :

Dans le fichier class / boxio.php
Modifier la ligne 44 (selections | grep python-serial | grep) par (selections | grep python3-serial | grep).

Dans le fichier le fichier ressources /install.sh
Modifier la 8 (apt-get install -y python-serial)
par (apt-get install -y python3-serial)
Et pour finir le plus dur
Fichier ressources /boxiocmd/boxiocommand.py
Rajouter ceci à la ligne 71

# 3 rd party modules # These might not be needed, depended on usage import site site.addsitedir('/usr/lib/python3/dist-packages') # Serial try: 	import serial except ImportError: 	pass 

Et Normalement ça devrait marcher.

2 « J'aime »

@Mips

Merci pour la modification je n’arrivai pas a la faire.

Bonjour

Je viens de refaire l’install debian 11.10 qui a installé Python 3.9.2 tout seul.

J’ai bien fait les modifs ci dessus, du coup je ne bloque pas au niveaux des dépendances mais le démon veut pas se lancer à cause de différentes erreurs de syntaxes Python 2 python 3 dans le fichier plugins/boxio/ressources/boxiocmd/boxiocmd.py" :

D’abord erreur de print "" à corriger en print ("")
puis erreur de except IOError, e: à changer en except IOError as e:
J’ai fait tout çà mais maintenant je bloque sur

[2024-08-23 14:10:36] INFO  : Lancement démon boxiocmd : /usr/bin/python /var/www/html/plugins/boxio/ressources/boxiocmd/boxiocmd.py -l -o /tmp/config_boxio.xml -D
File "/var/www/html/plugins/boxio/ressources/boxiocmd/boxiocmd.py", line 387
logger.debug('Parse config XML data')
TabError: inconsistent use of tabs and spaces in indentation

ET la du coup je ne sais pas comment corriger

Ci joint mon fichier (à mettre en .py)
boxiocmd.pdf (23,4 Ko)

Il y a quelques jours j’ai fait un test en installant également debian 11.10 et chargé un backup jeedom et j’étais resté en Python 2.7.18.

J’ai refais la manip plusieurs fois mais quand j’install debian 11.10 je suis maintenant toujours en python 3

Comment faire pour rendre compatible le fichier à la syntaxe Python 3 ou alors pour forcer mon systeme en python 2 ?

Merci par avance pour votre aide

1 « J'aime »

Page santé jeedom
les logs boxio cmd
logs boxio update


Toggle navigation
 Boxio (boxio) - stable
 Etat

StatutActifAction

CatégorieProtocole domotiqueSourcemarket
AuteurAurélien PAGES d'après le CODE de Michel TAVERNA - AGPLVersion 2021-06-25 01:00:16
Espace utilisé9.2 MBPrérequis 3.0
 Logs et surveillance

Niveau log
AucunDefautDebugInfoWarningError
Logs


    
Heartbeat (min)
Redémarrer démon

 Dépendances
Nom	Statut	Installation	Gestion automatique	Dernière installation
Local	OK			2017-05-23 00:53:28
 Démon
Nom	Statut	Configuration	(Re)Démarrer	Arrêter	Gestion automatique	Dernier lancement
Local	OK	OK				2024-08-17 13:52:02
 Configuration
 Général
 Gestion avancée
Options avancées
Démon local
Port Boxio

Btcino_Terraneo Mod._SFERA_Tele_Loop (/dev/serial/by-id/usb-Btcino_Terraneo_Mod._SFERA_Tele_Loop-if00)
Enregistrer tous les messages (cela peut ralentir le système)

Vitesse du port

115200
Port socket interne (modification dangereuse : entrer la même valeur sur tous les Jeedom déportés avec Boxio)
55002
 Fonctionnalités

interactNon
cronNon
cron5Non
cron10Non
cron15Non
cron30Non
cronHourlyNon
cronDailyOuiActiver
deadcmdNon
healthNon
Log du plugin boxio.update
Log brut  
Rechercher
 

********************************************************
*             Installation des dépendances             *
********************************************************
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
python3-wxgtk3.0 | python3-wxgtk
The following NEW packages will be installed:
python3-serial
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 88.8 kB of archives.
After this operation, 469 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python3-serial all 3.5~b0-1 [88.8 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 88.8 kB in 1s (161 kB/s)
Selecting previously unselected package python3-serial.
(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 ... 74375 files and directories currently installed.)
Preparing to unpack .../python3-serial_3.5~b0-1_all.deb ...
Unpacking python3-serial (3.5~b0-1) ...
Setting up python3-serial (3.5~b0-1) ...
********************************************************
*             Installation terminée                    *
********************************************************

Merci d’utiliser l’utilitaire du forum pour mettre les logs comme ceci texte preformate et copier vos logs comme indiqué merci .
Et s’ils vous plaît créé un nouveau sujet afin de ne pas saturer cette page .

Bonjour

La suite ici

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