Je viens de réactiver le port serial ttyAMA0 via raspi-config et je le retrouve bien dans la liste déroulante. Quand je le sélectionne, je vois qu’il détecte le module radio EnOcean Pi mais cela ne résout pas le problème du démon. J’ai l’impression que mon problème rejoint celui de @trifly posté ici.
J’ai essayé les 2 commandes qu’il propose mais sans succès. Pour info j’ai désactivé le bluetooth, et dans le fichier /boot/cmdline.txt il est marqué console=tty1
Il y a plusieurs points que je ne comprends pas :
- ça semble dire que le soupsieve n’est pas installé alors que soupsieve 1.8 est bien installé et que python et pip pointent vers Python2
- Il y marqué « Fatal error : Could not configure port: (5, ‹ Input/output error ›) » : comment corriger ça ?
Si vous voyez une solution je suis preneur.
[2022-01-19 17:00: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
[2022-01-19 17:00:05][INFO] : Lancement démon openenocean : sudo /usr/bin/python /var/www/html/plugins/openenocean/resources/openenoceand/openenoceand.py --device /dev/ttyS0 --loglevel debug --socketport 55006 --callback http://127.0.0.1:80/plugins/openenocean/core/php/jeeOpenEnOcean.php --apikey t28FLfwdE0SaPLZIkYyx6qrMYhKr1GSr --cycle 0.3 --pid /tmp/jeedom/openenocean/deamon.pid
[2022-01-19 17:00:05][INFO] : Start openenoceand
[2022-01-19 17:00:05][INFO] : Log level : debug
[2022-01-19 17:00:05][INFO] : Socket port : 55006
[2022-01-19 17:00:05][INFO] : Socket host : 127.0.0.1
[2022-01-19 17:00:05][INFO] : PID file : /tmp/jeedom/openenocean/deamon.pid
[2022-01-19 17:00:05][INFO] : Apikey : t28FLfwdE0SaPLZIkYyx6qrMYhKr1GSr
[2022-01-19 17:00:05][INFO] : Callback : http://127.0.0.1:80/plugins/openenocean/core/php/jeeOpenEnOcean.php
[2022-01-19 17:00:05][INFO] : Cycle : 0.3
/usr/local/lib/python2.7/dist-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
'The soupsieve package is not installed. CSS selectors cannot be used.'
###
[2022-01-19 17:00:07][INFO] : Successfully loaded 95 profiles !
[2022-01-19 17:00:07][DEBUG] : Writing PID 9608 to /tmp/jeedom/openenocean/deamon.pid
[2022-01-19 17:00:07][DEBUG] : Init request module v2.21.0
[2022-01-19 17:00:07][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-01-19 17:00:07][DEBUG] : http://127.0.0.1:80 "GET /plugins/openenocean/core/php/jeeOpenEnOcean.php?apikey=t28FLfwdE0SaPLZIkYyx6qrMYhKr1GSr HTTP/1.1" 200 0
[2022-01-19 17:00:07][DEBUG] : Socket interface started
[2022-01-19 17:00:07][DEBUG] : Start listening...
[2022-01-19 17:00:07][DEBUG] : LoopNetServer Thread started
[2022-01-19 17:00:07][DEBUG] : Listening on: [127.0.0.1:55006]
[2022-01-19 17:00:07][ERROR] : Fatal error : Could not configure port: (5, 'Input/output error')
[2022-01-19 17:00:07][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/openenocean/resources/openenoceand/openenoceand.py", line 242, in <module>
listen()
File "/var/www/html/plugins/openenocean/resources/openenoceand/openenoceand.py", line 49, in listen
globals.COMMUNICATOR = SerialCommunicator(port=_device)
File "/var/www/html/plugins/openenocean/resources/openenoceand/enocean/communicators/serialcommunicator.py", line 17, in __init__
self.__ser = serial.Serial(port, 57600, timeout=0.1)
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 240, in __init__
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 272, in open
self._reconfigure_port(force_update=True)
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 326, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
SerialException: Could not configure port: (5, 'Input/output error')
[2022-01-19 17:00:07][DEBUG] : Shutdown
[2022-01-19 17:00:07][DEBUG] : Removing PID file /tmp/jeedom/openenocean/deamon.pid
[2022-01-19 17:00:07][DEBUG] : LoopNetServer Thread stopped
[2022-01-19 17:00:07][DEBUG] : Exit 0
[2022-01-19 17:00:36][ERROR] : Impossible de lancer le démon openenocean, vérifiez le port
Quand je refais l’installation des dépendances, c’est marqué que soupsieve est bien installé dans la lib python2 (cf avant dernière ligne :
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/dist-packages (4.9.3) Requirement already satisfied: soupsieve<2.0,>1.2; python_version < "3.0" in /usr/local/lib/python2.7/dist-packages (from beautifulsoup4) (1.8)
)
Le log complet de l’installation des dépendances :
********************************************************
* Installation des dépendances *
********************************************************
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Fetched 15.0 kB in 1s (14.4 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python-enum' is not installed, so not removed
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python-pyudev is already the newest version (0.21.0-1).
python-requests is already the newest version (2.21.0-1).
python-serial is already the newest version (3.4-4).
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in /usr/lib/python2.7/dist-packages (40.8.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: wheel in /usr/lib/python2.7/dist-packages (0.32.3)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: enum-compat in /usr/local/lib/python2.7/dist-packages (0.0.3)
Requirement already satisfied: enum34; python_version < "3.4" in /usr/lib/python2.7/dist-packages (from enum-compat) (1.1.6)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python-bs4' is not installed, so not removed
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/dist-packages (4.9.3)
Requirement already satisfied: soupsieve<2.0,>1.2; python_version < "3.0" in /usr/local/lib/python2.7/dist-packages (from beautifulsoup4) (1.8)
Requirement already satisfied: backports.functools-lru-cache; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from soupsieve<2.0,>1.2; python_version < "3.0"->beautifulsoup4) (1.6.4)
********************************************************
* Installation terminée *
********************************************************