suite à mon problème de dépendance sur la version beta.
j’ai vu ce matin une mise à jour !
j’ai donc retenté ma chance…dépendance toujours NOK
mais je persiste et je suis parti sur le problème pyserial qui ressortait des logs
Installing collected packages: pyserial, pyModbus
Attempting uninstall: pyserial
Found existing installation: pyserial 3.2.1
ERROR: Cannot uninstall ‹ pyserial ›. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall
j’ai suivi les indication de ce site: (pour mon raspberry pi 3)
https://raspberrypi.stackexchange.com/questions/68837/pyserial-error-on-raspberry-3
J’ai donc fait:
sudo apt-get remove python-serial
sudo apt-get remove python3-serial
puis
sudo pip install --upgrade pyserial
et
pip install pyserial
et relancé mon raspberry !
Miracle ! les dépendances sont au vert !
bon ! (ça serait trop beau sinon)
Maintenant c’est le Démon qui reste NOK malgré mon équipement « arduino test » qui d’ailleurs est pilotable (commande action)
[2020-06-25 15:03:50][ERROR] : Attention je pense qu’il y a un soucis avec le démon que j’ai relancé plus de 3 fois consecutivement
[2020-06-25 15:03:50][INFO] : coils trouvées :500
[2020-06-25 15:03:50][INFO] : Lancement du démon mymodbus : nice -n 19 /usr/bin/python3 /var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py -h 192.168.31.161 -p 502 --unit_id=1 --polling=5 --keepopen=0 --protocol=tcpip --eqid=1119 --coils=500
Exception in thread Thread-1:
Traceback (most recent call last):
File « /usr/lib/python3.5/threading.py », line 914, in _bootstrap_inner
self.run()
File « /usr/lib/python3.5/threading.py », line 862, in run
self._target(*self._args, **self._kwargs)
File « /var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py », line 149, in polling_thread
subprocess.Popen([‹ /usr/bin/php ›,mymodbus,‹ add= ›+host,‹ unit= ›+str(unit_id),‹ eqid= ›+str(eq_id),‹ type=coils ›,‹ sortie=1 ›,‹ inputs= ›+str(int(coil_start)),‹ values= ›+str(rr.bits[:i])])
AttributeError: ‹ ExceptionResponse › object has no attribute ‹ bits ›
Version de python ok
Traceback (most recent call last):
File « /var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py », line 269, in
raise ParameterException(‹ Thread en d\xe9faut ›)
NameError: name ‹ ParameterException › is not defined
voila ce que j’ai dans les logs.