Closed akx closed 9 months ago
Please stop using python 2.7. It is no longer supported, It has not had a security update since 1 jan 2020. Python page for more information
@Sunderfield I'm well aware of that (as you can see from the SO issue I linked, and in fact the issue text here). The problem is that paho.mqtt.python claims to be compatible with it, but is not.
The documentation says Paho should be compatible with Python 2.7, but in reality it is not quite. Commit 4910b785a49b989e150eb11e87f7ca5aad38992a added a reference to
ConnectionError
, which is documented to have been added in Python 3.3 (see the relevant PEP: https://peps.python.org/pep-3151/).Since Python 2.7 has been end-of-life for three years, maybe one more 1.6.x series bugfix release (with #714) to make it compatible with Python 2.7 again, and then actually dropping support for it?
(Related Stack Overflow issue)