HotNoob / PythonProtocolGateway

Python Protocol Gateway reads data via Modbus RTU or other protocols and translates the data for MQTT. In the long run, Python Protocol Gateway will become a general purpose protocol gateway to translate between more than just modbus and mqtt. Growatt, EG4, Sigineer, SOK, PACE
Apache License 2.0
4 stars 0 forks source link

Requires Python 3.10 but does not check for version #13

Closed jaketgardner closed 3 months ago

jaketgardner commented 4 months ago

If run with Python 3.9 (for example) the following error occurs. TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

This is a problem for Raspberry Pi OS (at least 32-bit)

HotNoob commented 4 months ago

give me a few minutes to double check / test things. i've removed the offending type hinting to make it compatible with 3.9

i'll have to add a version check later

HotNoob commented 4 months ago

pushed update. works for me on 3.9. im running on ubuntu so can't confirm if it works on raspberry pi's 3.9 ... but probably does now