STOP les gars.
pas la peine de devenir chauve.
Mips, ton dernier post en mode « dernier recours » a permis de fixer le problème de VERSION :
pi@raspberrypi:~ $ python3 -c "import serial; print(serial.__dict__.keys()); print(serial.VERSION)"
dict_keys(['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', '__path__'])
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'serial' has no attribute 'VERSION'
pi@raspberrypi:~ $ sudo python3 -m pip install --force-reinstall --ignore-installed --no-cache-dir pyserial
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyserial
Downloading https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl (90kB)
100% |████████████████████████████████| 92kB 2.7MB/s
Installing collected packages: pyserial
Successfully installed pyserial-3.5
pi@raspberrypi:~ $ python3 -c "import serial; print(serial.__dict__.keys()); print(serial.VERSION)"
dict_keys(['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__path__', '__file__', '__cached__', '__builtins__', 'absolute_import', 'sys', 'importlib', 'serialutil', 'io', 'time', 'unicode', 'basestring', 'iterbytes', 'to_bytes', 'XON', 'XOFF', 'CR', 'LF', 'PARITY_NONE', 'PARITY_EVEN', 'PARITY_ODD', 'PARITY_MARK', 'PARITY_SPACE', 'STOPBITS_ONE', 'STOPBITS_ONE_POINT_FIVE', 'STOPBITS_TWO', 'FIVEBITS', 'SIXBITS', 'SEVENBITS', 'EIGHTBITS', 'PARITY_NAMES', 'SerialException', 'SerialTimeoutException', 'PortNotOpenError', 'Timeout', 'SerialBase', '__version__', 'VERSION', 'os', 'serialposix', 'Serial', 'PosixPollSerial', 'VTIMESerial', 'protocol_handler_packages', 'serial_for_url'])
3.5
Et maintenant, je retrouve des bugs « cohérents » déjà cités sur divers posts :
2020-11-30 11:13:11][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-11-30 10:13:17][ERROR] : Error: unrecognizable packet (0d0100010253f80000270001031c) : index out of range
[2020-11-30 10:13:43][ERROR] : Timeout waiting status
[2020-11-30 11:15:09][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-11-30 10:15:15][ERROR] : Error: unrecognizable packet (0d0100010253f80000270001031c) : index out of range
Vous avez vu cette bizarrerie dans les timestamps des logs? Bref… J’ai un index out of range, comme d’autres…