Open Helios06 opened 4 months ago
I solved the problem by installing python 3.12
I checked (under Docker) using the basic example app and:
typing_extensions
(e.g. pip install typing_extensions
) or you will get a ImportError: cannot import name 'Literal' from 'typing' (/usr/local/lib/python3.7/typing.py)
.I suspect you may have had an older version of the library installed in your environment?
Under PyCharm a simple project using python 3.8.5 and venv leads to this error even so the package installed is paho-mqtt v2.0.0
coding this
import paho.mqtt.client as mqtt ...... mqtt.CallbackAPIVersion.VERSION2 ..... leads to "cannot find reference 'CallbackAPIVersion'"