-
Notifications
You must be signed in to change notification settings - Fork 1k
umqtt cannot import MQTTClient #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I had exactly the same problem.
Probably the installation silently failed in any strange way... |
Came across this issue today while using f/w esp32-20180511-v1.9.4.bin. This solved the problem. So I thought I had stuffed up the firmware or mqtt install but went through the Solution....Use ampy to copy a version of simple.py from the micropython-lib - and continue with installation. "import network sta_if = network.WLAN(network.STA_IF) upip.install('micropython-umqtt.simple') PS - Followed this procedure to install BME280 and mqtt on esp32. https://github.com/gloveboxes/ESP32-MicroPython-BME280-MQTT-Sample |
I am Using NodeMCU esp board with newest version of micropython firmware and my solution to this problem is to load uos.mkdir() and uos.rename() to put this file to |
Using the latest esp32 micropython build. Dowloaded the latest umqtt with these commands:
upip.install('micropython-umqtt.simple')
upip.install('micropython-umqtt.robust')
But as soon as i want to follow even the simplest of examples and try this:
from umqtt.simple import MQTTClient
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name MQTTClient
but if i put the umqtt.simple lib just onto the main memomry of the esp32
and use simple.py import MQTTClient it works.
so somehow something seems broken.
The text was updated successfully, but these errors were encountered: