Bonjour,
Environnement :
Jeedom V4 installé sur une VM avec accès direct aux ports USB du système dont l’OS est :
root@JEEDOM:/usr/lib/python2.7/dist-packages# uname -a
Linux JEEDOM 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
root@JEEDOM:/usr/lib/python2.7/dist-packages# cat /etc/debian_version
10.6
1 -Suite à un upgrade du plugin hier avec la dernière version de code vers 19h, j’ai eu le souci évoqué module ‹ serial › has no attribute ‹ VERSION ›.
2 - J’ai alors lancé la mise ç jour des dépendance que vous avez conseillé, le démon s’est lancé.
3 - J’ai redémarré le serveur Jeedom pour un autre plugin qui me pose de soucis mais pas lià a celui-ci.
4 - Une fois Jeedom redémarré, le démon ne veut plus se lancer.
→ Check des dépendances : OK
********************************************************
* Installation des dépendances *
********************************************************
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://ftp.fr.debian.org/debian buster InRelease
Ign:3 http://deb.debian.org/debian/stretch stretch-updates InRelease
Hit:4 http://ftp.fr.debian.org/debian buster-updates InRelease
Hit:5 http://phoscon.de/apt/deconz buster InRelease
Err:6 http://deb.debian.org/debian/stretch stretch-updates Release
404 Not Found [IP: 151.101.114.132 80]
Reading package lists...
E: The repository 'http://deb.debian.org/debian/stretch stretch-updates Release' does not have a Release file.
Skipping serial as it is not installed.
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
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
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).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
**Requirement already up-to-date: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)**
********************************************************
* Installation terminée *
********************************************************
→ Démarrage du démon :
[2020-11-27 09:16:00][DEBUG] : Shutdown
[2020-11-27 09:16:00][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2020-11-27 09:16:00][DEBUG] : Exit 0
[2020-11-27 09:16:30][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd
[2020-11-27 09:26:33][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 6,11,12,13,16,18,19,23 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey mvdZSR0m1wCbn4uCK5MIRuS8XxPXD5um --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2020-11-27 09:26:33][INFO] : Start rfxcomd
[2020-11-27 09:26:33][INFO] : Log level : debug
[2020-11-27 09:26:33][INFO] : Socket port : 55000
[2020-11-27 09:26:33][INFO] : Socket host : 127.0.0.1
[2020-11-27 09:26:33][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2020-11-27 09:26:33][INFO] : Device : /dev/ttyUSB0
[2020-11-27 09:26:33][INFO] : Apikey : *****************************************
[2020-11-27 09:26:33][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2020-11-27 09:26:33][INFO] : Cycle : 0.3
[2020-11-27 09:26:33][INFO] : Serial rate : 38400
[2020-11-27 09:26:33][INFO] : Serial timeout : 9
[2020-11-27 09:26:33][INFO] : Protocol : 6,11,12,13,16,18,19,23
[2020-11-27 09:26:33][INFO] : Find device : /dev/ttyUSB0
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x01 : Interface Response Message
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x10 : Lighting1 (X10, ARC, ELRO, Waveman, EMW200, IMPULS,RisingSun, Philips, Energenie, GDR2, HQ, Oase)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x11 : Lighting2 (AC, HomeEasy EU, ANSLUT, Kambrook)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x13 : Lighting4 (PT2262)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x14 : Lighting5 ( LightwaveRF, Siemens, EMW100, BBSB, MDREMOTE,RSL2, OTIO, Livolo, RGB, Aoke relay, Eurodomest, RGB432W, Legrand,Avantek, IT, Kangtai)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x15 : Lighting6 (Blyss (AE), Cuveo)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x16 : Chime (Byron SX, Byron MP001, SelectPlus, Envivo, Alfawise)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x17 : Fan (Siemens SF01, Itho, LucciAir, SEAV,Westinghouse,Casafan,FT1211R,Novy)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x19 : Blinds1 (RollerTrol,Hasta,A-OK,Raex, Media Mount, DC)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x1C : Edisio
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x1D : Honeywell ActivLink
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x1E : FunkBus
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x1F : Hunter Fan
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x20 : Security1 (X10, KD101, Visonic, Meiantech, SA30, SA33, RM174RF)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x21 : Security2 (KeeLoq)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x28 : Camera1 (Ninja/Robocam)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x30 : Remote control and IR (ATI, Medion, PC Remote)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x40 : Thermostat1 (Digimax)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x42 : Thermostat3 (Mertik-Maxitrol G6R-H4 type)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x4E : BBQ Temperature sensors (BBQ1)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x4F : Temperature and rain sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x50 : Temperature sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x51 : Humidity sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x52 : Temperature and humidity sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x53 : Barometric sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x54 : Temperature, humidity and barometric sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x55 : Rain sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x56 : Wind sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x57 : UV sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x58 : Date/time sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x59 : Current sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x5A : Current sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x5B : Current + ENERGY sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x5C : Power sensors
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x5D : Weighting scale
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x60 : CARTELECTRONIC
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x70 : RFXsensor
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x71 : RFXMeter
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x72 : FS20 (FS20, FHT 8V, FHT80)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x76 : Weather stations (WEATHER1-WEATHER2)
[2020-11-27 09:26:33][DEBUG] : Load decoder packet type 0x77 : SOLAR1
[2020-11-27 09:26:33][DEBUG] : Writing PID 18938 to /tmp/jeedom/rfxcom/deamon.pid
[2020-11-27 09:26:33][DEBUG] : Init request module v2.21.0
[2020-11-27 09:26:33][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-11-27 09:26:33][DEBUG] : null
[2020-11-27 09:26:33][DEBUG] : http://127.0.0.1:80 "GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=*****************************************HTTP/1.1" 200 0
[2020-11-27 09:26:33][ERROR] : Fatal error : module 'serial' has no attribute 'VERSION'
[2020-11-27 09:26:33][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py", line 394, in <module>
shared.JEEDOM_SERIAL = jeedom_serial(device=_device,rate=_serial_rate,timeout=_serial_timeout)
File "/var/www/html/plugins/rfxcom/resources/rfxcomd/jeedom/jeedom.py", line 231, in __init__
logging.debug('Init serial module v%s' % (str(serial.VERSION),))
**AttributeError: module 'serial' has no attribute 'VERSION'**
[2020-11-27 09:26:33][DEBUG] : Shutdown
[2020-11-27 09:26:33][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2020-11-27 09:26:33][DEBUG] : Exit 0
[2020-11-27 09:27:04][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd
Je suis bloqué.
Petite info utile, j’ai chercher à regarder si il ne restait pas de résidus de l’ancienne version 3.4 car j’avais des messages comme ceci lors des désinstallation de pyserial pour tenter de sollutionner le souci :
root@JEEDOM:/var/www/html/plugins/rfxcom/resources/rfxcomd/jeedom# pip install pyserial --upgrade
Collecting pyserial
Using cached https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyse rial-3.5-py2.py3-none-any.whl
Installing collected packages: pyserial
**Found existing installation: pyserial 3.4**
Not uninstalling pyserial at /usr/lib/python2.7/dist-packages, outside environment /usr
Can't uninstall 'pyserial'. No files were found to uninstall.
Successfully installed pyserial-3.5
root@JEEDOM:/var/www/html/plugins/rfxcom/resources/rfxcomd/jeedom# pip install pyserial
**Requirement already satisfied: pyserial in /usr/lib/python2.7/dist-packages (3.4)**
J’ai du faire ceci :
sudo pip install -U pyserial
sudo pip3 install -U pyserial
=> Maintenant je suis bloqué … SI je n’arrive pas à me débloquer, est-ce qu’il y a une façon de remettre l’ancienne version de plugin?
Merci d’avance.