Problème rfxcom: module 'serial' has no attribute 'VERSION'

Bonjour à Tous,

D’habitude si j’ai un soucis avec un plugin, je passe par une restauration sur la sauvegarde précédente, mais cela ne résout pas non plus mon problème :frowning:

J’ai essayé ce que j’ai vu sur d’autres cas similaire, réinstallation des dépendances etc, mais rien n’y fait.

log du démon:

[2022-02-04 09:40:03][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 18 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey ROVuKxFD9PmS4ywvZx1XRDn9N7lvSnweEPHvDmx7MFPKBxcf --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2022-02-04 09:40:04][INFO] : Start rfxcomd
[2022-02-04 09:40:04][INFO] : Log level : debug
[2022-02-04 09:40:04][INFO] : Socket port : 55000
[2022-02-04 09:40:04][INFO] : Socket host : 127.0.0.1
[2022-02-04 09:40:04][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2022-02-04 09:40:04][INFO] : Device : /dev/ttyUSB0
[2022-02-04 09:40:04][INFO] : Apikey : ROVuKxFD9PmS4ywvZx1XRDn9N7lvSnweEPHvDmx7MFPKBxcf
[2022-02-04 09:40:04][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2022-02-04 09:40:04][INFO] : Cycle : 0.3
[2022-02-04 09:40:04][INFO] : Serial rate : 38400
[2022-02-04 09:40:04][INFO] : Serial timeout : 9
[2022-02-04 09:40:04][INFO] : Protocol : 18
[2022-02-04 09:40:04][INFO] : Find device : /dev/ttyUSB0
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x01 : Interface Response Message
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x02 : Receiver/Transmitter Message
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x10 : Lighting1 (X10, ARC, ELRO, Waveman, EMW200, IMPULS,RisingSun, Philips, Energenie, GDR2, HQ, Oase)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x11 : Lighting2 (AC, HomeEasy EU, ANSLUT, Kambrook)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x13 : Lighting4 (PT2262)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x14 : Lighting5 ( LightwaveRF, Siemens, EMW100, BBSB, MDREMOTE,RSL2, OTIO, Livolo, RGB, Aoke relay, Eurodomest, RGB432W, Legrand,Avantek, IT, Kangtai)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x15 : Lighting6 (Blyss (AE), Cuveo)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x16 : Chime (Byron SX, Byron MP001, SelectPlus, Envivo, Alfawise)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x17 : Fan (Siemens SF01, Itho, LucciAir, SEAV,Westinghouse,Casafan,FT1211R,Novy)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x19 : Blinds1 (RollerTrol,Hasta,A-OK,Raex, Media Mount, DC)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x1C : Edisio
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x1D : Honeywell ActivLink
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x1E : FunkBus
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x1F : Hunter Fan
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x20 : Security1 (X10, KD101, Visonic, Meiantech, SA30, SA33, RM174RF)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x21 : Security2 (KeeLoq)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x28 : Camera1 (Ninja/Robocam)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x30 : Remote control and IR (ATI, Medion, PC Remote)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x40 : Thermostat1 (Digimax)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x42 : Thermostat3 (Mertik-Maxitrol G6R-H4 type)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x4E : BBQ Temperature sensors (BBQ1)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x4F : Temperature and rain sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x50 : Temperature sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x51 : Humidity sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x52 : Temperature and humidity sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x53 : Barometric sensors 
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x54 : Temperature, humidity and barometric sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x55 : Rain sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x56 : Wind sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x57 : UV sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x58 : Date/time sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x59 : Current sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x5A : Current sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x5B : Current + ENERGY sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x5C : Power sensors
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x5D : Weighting scale
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x60 : CARTELECTRONIC
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x70 : RFXsensor
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x71 : RFXMeter
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x72 : FS20 (FS20, FHT 8V, FHT80)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x76 : Weather stations (WEATHER1-WEATHER2)
[2022-02-04 09:40:04][DEBUG] : Load decoder packet type 0x77 : SOLAR1
[2022-02-04 09:40:04][DEBUG] : Writing PID 779 to /tmp/jeedom/rfxcom/deamon.pid
[2022-02-04 09:40:04][DEBUG] : Init request module v2.27.1
[2022-02-04 09:40:04][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-02-04 09:40:04][DEBUG] : null
[2022-02-04 09:40:04][DEBUG] : http://127.0.0.1:80 "GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=ROVuKxFD9PmS4ywvZx1XRDn9N7lvSnweEPHvDmx7MFPKBxcf HTTP/1.1" 200 0
[2022-02-04 09:40:04][ERROR] : Fatal error : module 'serial' has no attribute 'VERSION'
[2022-02-04 09:40:04][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'

[2022-02-04 09:40:04][DEBUG] : Shutdown
[2022-02-04 09:40:04][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2022-02-04 09:40:04][DEBUG] : Exit 0
[2022-02-04 09:40:34][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd

log dépedances:

********************************************************
*             Installation des dépendances             *
********************************************************
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Hit:2 http://deb.debian.org/debian buster InRelease
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Get:5 http://security.debian.org/debian-security buster/updates/main Sources [202 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [308 kB]
Fetched 628 kB in 1s (759 kB/s)
Reading package lists...
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 244 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 244 not upgraded.
Collecting pyserial
  Downloading https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl (90kB)
Installing collected packages: pyserial
Successfully installed pyserial-3.5
********************************************************
*             Installation terminée                    *
********************************************************

Une petite idée, mon chauffage en dépend :expressionless:

merci !

Bonjour,

En faisant une recherche sur l’erreur: https://community.jeedom.com/search?q=%20module%20’serial’%20has%20no%20attribute%20’VERSION’

je retrouve plusieurs anciens posts avec cette solution que j’avais proposée et qui avait fonctionné :wink:

A executer en ssh ou via l’outils administration système.

sudo python3 -m pip install --force-reinstall  --ignore-installed --no-cache-dir pyserial
2 « J'aime »

woaa je l’avais pas vu !

Merci ca marche !!!

Pfiouuu un gros stress en moins !

Merci Merci Merci !!!

1 « J'aime »

Bonsoir,

La version du plugin du 20220204 corrige le problème d’installation des dépendances.

Bonsoir,

ça n’a rien corrigé chez moi… :frowning:

Alors ouvrez un nouveau post du fournissez toutes les informations habituelles demandées:

  • capture d’écran de la page santé
  • version du plug-in
  • tous les logs du plugin

Ainsi que ce que vous avez fait pour essayer de résoudre et le résultat de la commande.

Voir point 3 de ce post Comment nous aider à vous aider - ou Comment poser une bonne question?

Bonjour,

c’est ce que j’ai tenté de faire hier, mais on m’a renvoyé vers ce post. :slight_smile:

OK je vois le post :wink:
Et donc oui c’était normal de d’abord tester cette solution avant de créer un nouveau post.

Maintenant vous pouvez répondre sur votre post précédent en précisant que vous avez testez cette solution et en donnant le résultat de la commande plus les logs comme je demandais sur ma réponse précédente.

Veuillez copier/coller le contenu des logs dans un Texte préformaté et ne pas faire une capture d’écran pour qu’on puisse les lire facilement.
Redonnez la version du plug-in que vous avez aussi.

Merci, votre réponse est plus agréable à lire que celle que l’on m’a donnée hier. :slight_smile:

Je suis l’auteur de la réponse hier et j’ai pourtant l’impression d’avoir écrit sur le même ton.

Comme quoi la perception de chacun dépend vraiment du contexte :wink:

Comme quoi. :slight_smile:

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